XMBUF
NAMESYNTAX
STRUCTURES
DESCRIPTION
PREDEFINED VALUES
BUGS
SEE ALSO
NAME
XmbufQueryExtension, XmbufGetVersion, XmbufCreateBuffers, XmbufDestroyBuffers, XmbufDisplayBuffers, XmbufGetWindowAttributes, XmbufChangeWindowAttributes, XmbufGetBufferAttributes, XmbufChangeBufferAttributes, XmbufGetScreenInfo, XmbufCreateStereoWindow - X multibuffering functions
SYNTAX
#include <X11/extensions/multibuf.h>
Bool
XmbufQueryExtension(
Display *dpy,
Display *dpy,
int *event_base_return,
int *error_base_return);
Status
XmbufGetVersion(
Display *dpy,
int *major_version_return,
int *minor_version_return);
int
XmbufCreateBuffers(
Display *dpy,
Window window,
int count,
int update_action,
int update_hint,
Multibuffer *buffers_update);
void
XmbufDestroyBuffers(
Display *dpy,
Window window);
void
XmbufDisplayBuffers(
Display *dpy,
int count,
Multibuffer *buffers,
int min_delay,
int max_delay);
Status
XmbufGetWindowAttributes(
Display *dpy,
Window window,
XmbufWindowAttributes *attributes);
void
XmbufChangeWindowAttributes(
Display *dpy,
Window window,
unsigned long valuemask,
XmbufSetWindowAttributes *attributes);
Status
XmbufGetBufferAttributes(
Display *dpy,
Multibuffer buffer,
XmbufBufferAttributes *attributes);
void
XmbufChangeBufferAttributes(
Display *dpy,
Multibuffer buffer,
unsigned long valuemask,
XmbufSetBufferAttributes *attributes);
Status
XmbufGetScreenInfo(
Display *dpy,
Drawable drawable,
int *nmono_return,
XmbufBufferInfo **mono_info_return,
int *nstereo_return,
XmbufBufferInfo **stereo_info_return);
Window
XmbufCreateStereoWindow(
Display *dpy,
Window parent,
int x,
int y,
unsigned int width,
unsigned int height,
unsigned int border_width,
int depth,
unsigned int class, /* InputOutput, InputOnly*/
Visual *visual,
unsigned long valuemask,
XSetWindowAttributes *attributes,
Multibuffer *left_return,
Multibuffer *right_return);
STRUCTURES
Events:
typedef struct {
int type; /td> |
/* of event */ | |
/* # of last request processed by server */ | ||
/* true if this came from a SendEvent request */ | ||
/* Display the event was read from */ | ||
/* buffer of event */ | ||
/* see Clobbered constants above */ |
} XmbufClobberNotifyEvent;
typedef struct {
int type; /td> |
/* of event */ | |
/* # of last request processed by server */ | ||
/* true if this came from a SendEvent request */ | ||
/* Display the event was read from */ | ||
/* buffer of event */ |
} XmbufUpdateNotifyEvent;
Per-window
attributes that can be got:
typedef struct {
int displayed_index; /td> |
/* which buffer is being displayed */ | |
/* Undefined, Background, Untouched, Copied */ | ||
/* Frequent, Intermittent, Static */ | ||
/* Mono, Stereo */ | ||
/* Number of buffers */ | ||
/* Buffers */ |
} XmbufWindowAttributes;
Per-window
attributes that can be set:
typedef struct {
int update_hint; /td> |
/* Frequent, Intermittent, Static */ |
} XmbufSetWindowAttributes;
Per-buffer
attributes that can be got:
typedef struct {
Window window; /td> |
/* which window this belongs to */ | |
/* events that have been selected */ | ||
/* which buffer is this */ | ||
/* Mono, Left, Right */ |
} XmbufBufferAttributes;
Per-buffer
attributes that can be set:
typedef struct {
unsigned long event_mask; /td> |
/* events that have been selected */ |
} XmbufSetBufferAttributes;
Per-screen
buffer info (there will be lists of them):
typedef struct {
VisualID visualid; /td> |
/* visual usable at this depth */ | |
/* most buffers for this visual */ | ||
/* depth of buffers to be created */ |
} XmbufBufferInfo;
DESCRIPTION
The application programming library for the X11 Double-Buffering, Multi-Buffering, and Stereo Extension contains the interfaces described below. With the exception of XmbufQueryExtension, if any of these routines are called with a display that does not support the extension, the ExtensionErrorHandler (which can be set with XSetExtensionErrorHandler and functions the same way as XSetErrorHandler) will be called and the function will then return.
XmbufQueryExtension returns True if the multibuffering/stereo extension is available on the given display. If the extension exists, the value of the first event code (which should be added to the event type constants MultibufferClobberNotify and MultibufferUpdateNotify to get the actual values) is stored into event_base_return and the value of the first error code (which should be added to the error type constant MultibufferBadBuffer to get the actual value) is stored into error_base_return.
XmbufGetVersion gets the major and minor version numbers of the extension. The return value is zero if an error occurs or non-zero if no error happens.
XmbufCreateBuffers requests that "count" buffers be created with the given update_action and update_hint and be associated with the indicated window. The number of buffers created is returned (zero if an error occurred) and buffers_update is filled in with that many Multibuffer identifiers.
XmbufDestroyBuffers destroys the buffers associated with the given window.
XmbufDisplayBuffers displays the indicated buffers their appropriate windows within max_delay milliseconds after min_delay milliseconds have passed. No two buffers may be associated with the same window or else a Match error is generated.
XmbufGetWindowAttributes gets the multibuffering attributes that apply to all buffers associated with the given window. The list of buffers returns may be freed with XFree. Returns non-zero on success and zero if an error occurs.
XmbufChangeWindowAttributes sets the multibuffering attributes that apply to all buffers associated with the given window. This is currently limited to the update_hint.
XmbufGetBufferAttributes gets the attributes for the indicated buffer. Returns non-zero on success and zero if an error occurs.
XmbufChangeBufferAttributes sets the attributes for the indicated buffer. This is currently limited to the event_mask.
XmbufGetScreenInfo gets the parameters controlling how mono and stereo windows may be created on the screen of the given drawable. The numbers of sets of visual and depths are returned in nmono_return and nstereo_return. If nmono_return is greater than zero, then mono_info_return is set to the address of an array of XmbufBufferInfo structures describing the various visuals and depths that may be used. Otherwise, mono_info_return is set to NULL. Similarly, stereo_info_return is set according to nstereo_return. The storage returned in mono_info_return and stereo_info_return may be released by XFree. If no errors are encounted, non-zero will be returned.
XmbufCreateStereoWindow creates a stereo window in the same way that XCreateWindow creates a mono window. The buffer ids for the left and right buffers are returned in left_return and right_return, respectively. If an extension error handler that returns is installed, None will be returned if the extension is not available on this display.
PREDEFINED VALUES
Update_action field:
MultibufferUpdateActionUndefined
MultibufferUpdateActionBackground
MultibufferUpdateActionUntouched
MultibufferUpdateActionCopied
Update_hint field:
MultibufferUpdateHintFrequent
MultibufferUpdateHintIntermittent
MultibufferUpdateHintStatic
Valuemask fields:
MultibufferWindowUpdateHint
MultibufferBufferEventMask
Mono vs. stereo and left vs. right:
MultibufferModeMono
MultibufferModeStereo
MultibufferSideMono
MultibufferSideLeft
MultibufferSideRight
Clobber state:
MultibufferUnclobbered
MultibufferPartiallyClobbered
MultibufferFullyClobbered
Event stuff:
MultibufferClobberNotifyMask
MultibufferUpdateNotifyMask
MultibufferClobberNotify
MultibufferUpdateNotify
MultibufferNumberEvents
MultibufferBadBuffer
MultibufferNumberErrors
BUGS
This manual page needs more work.
SEE ALSO
Extending X for Double Buffering, Multi-Buffering, and Stereo
More Linux Commands
manpages/Tcl_Access.3.html
Tcl_Access(3) - check file permissions and other attributes
As of Tcl 8.4, the object-based APIs Tcl_FSAccess and Tcl_FSStat should be used in preference to Tcl_Access and Tcl_Stat, wherever possible. There are two reaso
manpages/SDL_Flip.3.html
SDL_Flip(3) - Swaps screen buffers - Linux manual page......
On hardware that supports double-buffering, this function sets up a flip and returns. The hardware will wait for vertical retrace, and then swap video buffers b
manpages/XML::DOM::CDATASection.3pm.html
XML::DOM::CDATASection(3pm) - Escaping XML text blocks in XM
XML::DOM::CDATASection extends XML::DOM::CharacterData which extends XML::DOM::Node. CDATA sections are used to escape blocks of text containing characters that
manpages/SDL_CondSignal.3.html
SDL_CondSignal(3) - Restart a thread wait on a condition var
Restart one of the threads that are waiting on the condition variable, cond. Returns 0 on success of -1 on an error. SEE ALSO SDL_CondWait, SDL_CondBroadcast SD
manpages/adjtime.3.html
adjtime(3) - correct the time to synchronize the system cloc
The adjtime() function gradually adjusts the system clock (as returned by gettimeofday(2)). The amount of time by which the clock is to be adjusted is specified
manpages/gnutls_openpgp_send_cert.3.html
gnutls_openpgp_send_cert(3) - API function - Linux man page
This function will order gnutls to send the key fingerprint instead of the key in the initial handshake procedure. This should be used with care and only when t
manpages/cpuid.4.html
cpuid(4) - x86 CPUID access device - Linux manual page......
CPUID provides an interface for querying information about the x86 CPU. This device is accessed by lseek(2) or pread(2) to the appropriate CPUID level and readi
manpages/gnutls_x509_crq_get_key_usage.3.html
gnutls_x509_crq_get_key_usage(3) - API function (Man Page)
This function will return certificates key usage, by reading the keyUsage X.509 extension (2.5.29.15). The key usage value will ORED VALUES OF THE GNUTLS_KEY_DI
manpages/gnutls_pkcs7_get_crt_raw.3.html
gnutls_pkcs7_get_crt_raw(3) - API function - Linux man page
This function will return a certificate of the PKCS7 or RFC2630 certificate set. After the last certificate has been read GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
manpages/ber_get_boolean.3.html
ber_get_boolean(3) - OpenLDAP LBER simplified Basic Encoding
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is
manpages/RootWindow.3.html
RootWindow(3) - Display macros and functions (Man Page).....
The AllPlanes macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure. The BlackPixel macro returns the black pixel val
manpages/setresuid.2.html
setresuid(2) - set real, effective and saved user or group I
setresuid() sets the real user ID, the effective user ID, and the saved set-user-ID of the calling process. Unprivileged user processes may change the real UID,
