Scroll to navigation

XMBUF(3X11) X FUNCTIONS XMBUF(3X11)

̾??

XmbufQueryExtension, XmbufGetVersion, XmbufCreateBuffers, XmbufDestroyBuffers, XmbufDisplayBuffers, XmbufGetWindowAttributes, XmbufChangeWindowAttributes, XmbufGetBufferAttributes, XmbufChangeBufferAttributes, XmbufGetScreenInfo, XmbufCreateStereoWindow - X ?ޥ????Хåե????󥰴ؿ???

????

#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,
Visual *visual,
unsigned long valuemask,
XSetWindowAttributes *attributes,
Multibuffer *left_return,
Multibuffer *right_return);

??¤??

???٥???:
typedef struct {

int type;
unsigned long serial;
int send_event;
Display *display;
Multibuffer buffer;
int state; } XmbufClobberNotifyEvent;
typedef struct {

int type;
unsigned long serial;
int send_event;
Display *display;
Multibuffer buffer; } XmbufUpdateNotifyEvent;
??????ǽ?ʥ??????ɥ??̤?°??:
typedef struct {

int displayed_index;
int update_action;
int update_hint;
int window_mode;
int nbuffers;
Multibuffer *buffers; } XmbufWindowAttributes;
??????ǽ?ʥ??????ɥ??̤?°??:
typedef struct {

int update_hint; } XmbufSetWindowAttributes;
??????ǽ?ʥХåե??̤?°??:
typedef struct {

Window window;
unsigned long event_mask;
int buffer_index;
int side; } XmbufBufferAttributes;
??????ǽ?ʥХåե??̤?°??:
typedef struct {

unsigned long event_mask; } XmbufSetBufferAttributes;
?????꡼???̤ΥХåե?????(???????Υꥹ?Ȥ?????):
typedef struct {

VisualID visualid;
int max_buffers;
int depth; } XmbufBufferInfo;

????

X11 ???֥??Хåե????󥰡??ޥ????Хåե????󥰡????ƥ쥪??ĥ?? ?Ф??륢?ץꥱ?????????ץ??????ߥ󥰥饤?֥????ϡ??ʲ??˽Ҥ٤? ???󥿥ե??????????ġ? ?㳰?Ǥ??? XmbufQueryExtension ???????????γ?ĥ?򥵥ݡ??Ȥ??Ƥ??ʤ??ǥ????ץ쥤???Ф??Ƥ??δؿ????Ƥ? ?Ф??ȡ?ExtensionErrorHandler(?????? XSetExtensionErrorHandler ?ȴؿ????Ȥ??? XSetErrorHandler ??Ʊ???褦?????ꤹ?뤳?Ȥ??Ǥ???)???ƤФ졢???줫???ؿ??????äƤ??롣

XmbufQueryExtension ?ϡ????ꤵ?줿?ǥ????ץ쥤?ǥޥ????Хåե???????/???ƥ쥪??ĥ?????Ѳ? ǽ?ʾ????? True ???֤??????γ?ĥ??¸?ߤ??????硢?ǽ??Υ??٥??ȥ????ɤ???(?ºݤ??ͤ??? ?뤿???ˤϡ??????򥤥٥??ȷ????? MultibufferClobberNotify ?? MultibufferUpdateNotify ???ɲä??ʤ????Фʤ??ʤ?) ?? event_base_return ?˳?Ǽ???졢?ǽ??Υ??顼?????ɤΤ???(?ºݤ??ͤ??? ?뤿???ˤϡ??????򥨥顼?????? MultibufferBadBuffer ???ɲä??ʤ????Фʤ??ʤ?)?? error_base_return ?˳?Ǽ?????롣

XmbufGetVersion ?ϳ?ĥ?Υ᥸?㡼?С????????ֹ??ȥޥ??ʡ??С????????ֹ??????????롣 ???δؿ??ϥ??顼??ȯ???????????? 0 ???֤??????顼??ȯ?????ʤ??ä????? ?ˤ? 0 ?Ǥʤ??ͤ??֤???

XmbufCreateBuffers ?ϡ??֥??????ȡץХåե??????ꤷ?? update_action ?? update_hint ???Ȥ? ???????????뤳?Ȥȡ????줬???ꤷ?????????ɥ????б??Ť??????뤳?Ȥ??׵? ???롣???????줿?Хåե??ο????֤???(???顼???????ä??????? 0)?? buffer_update ?Ϥ???¿???Υޥ????Хåե????̻Ҥ??????????롣

XmbufDestroyBuffers ?ϻ??ꤷ?????????ɥ????б??????Хåե????˴????롣

XmbufDisplayBuffers ?ϡ?min_delay ?ߥ??ä??᤮?????? max_delay ?????ˡ????ꤷ???Хåե??? Ŭ?ڤʥ??????ɥ???ɽ?????롣 Ʊ?????????ɥ??ˤ?2?ĤΥХåե????б??Ť??뤳?ȤϤǤ??????????Ǥʤ??? ???ˤϡ????顼 Matc ???????????롣

XmbufGetWindowAttributes ?ϡ????ꤷ???ǥ????ץ쥤???б??Ť??????Ƥ??????ƤΥХåե???Ŭ?Ѥ????? ?ޥ????Хåե???????°???????????롣 ?֤??줿?Хåե??Υꥹ?Ȥ? XFree ?Dz??????뤳?Ȥ??Ǥ??롣 ?????????????ˤ? 0 ?Ǥʤ??ͤ??֤??졢???顼???????ä??????ˤ? 0 ???? ?????롣

XmbufChangeWindowAttributes ?ϡ?Ϳ?????줿???????ɥ????б??Ť??????Ƥ??????ƤΥХåե???Ŭ?Ѥ????? ?ޥ????Хåե???????°???????ꤹ?롣?????ϸ??ߤΤȤ?????update_hint ?? ???ꤵ???Ƥ??롣

XmbufGetBufferAttributes ?ϻ??ꤷ???Хåե????Ф???°???????????롣 ?????????????ˤ? 0 ?Ǥʤ??ͤ??֤??졢???顼?????????????ˤ? 0 ???֤? ???롣

XmbufChangeBufferAttributes ?ϻ??ꤷ???Хåե????Ф???°???????ꤹ?롣 ???줬???ߤΤȤ?????event_mask ?˸??ꤵ???Ƥ??롣

XmbufGetScreenInfo ?ϡ????ꤷ???ɥ??????֥??Υ????꡼???ˤ????????Υ????ȥ??ƥ쥪?Υ????? ?ɥ?????????ˡ?????椹???ѥ??᡼???????????롣?ӥ??奢???ȿ??????Ȥο? ?? nmono_return ?? nstereo_return ???֤????롣nmono_return ?? 0 ???? ?礭?????С?mono_info_return ?ˤ? ???ѤǤ????͡??ʥӥ??奢???ȿ????򵭽Ҥ??Ƥ??? XmbufBufferInfo ??¤?Τ??????Υ??ɥ쥹?????åȤ????Ƥ??롣Ʊ?ͤˡ?stereo_info_return ?? nstereo_return ?˽??äƥ??åȤ????롣mono_info_return ?? stereo_info_return ???֤????????????ϡ? XFree ???ȤäƲ??????뤳?Ȥ??Ǥ??롣 ???顼???????ʤ??ä??????ϡ?0 ?Ǥʤ??ͤ??֤????롣

XmbufCreateStereoWindow ?ϡ? XCreateWindow ?????Υ????Υ??????ɥ????????????Τ?Ʊ???褦?˥??ƥ쥪???????ɥ??????? ???롣???ȱ??ΥХåե????Ф??? ID ?Ϥ??줾?졢left_return ?? right_return ???֤????롣??ĥ?????Υǥ????ץ쥤?????ѤǤ??ʤ????硢???? ?Ƥ?????ĥ???顼?ϥ??ɥ餬???󥹥ȡ??뤵???Ƥ????ʤ??? None ???֤????롣

??????

update_action ?ե???????(XmbufWindowAttributes ??¤??):

MultibufferUpdateActionUndefined	
MultibufferUpdateActionBackground
MultibufferUpdateActionUntouched
MultibufferUpdateActionCopied

update_hint ?ե???????(XmbufWindowAttributes??¤?Ρ? XmbufSetWindowAttributes ??¤??):

MultibufferUpdateHintFrequent		
MultibufferUpdateHintIntermittent
MultibufferUpdateHintStatic	

?????? valuemask:

MultibufferWindowUpdateHint
MultibufferBufferEventMask

???Υ????Х??ƥ쥪?????б?:

MultibufferModeMono	
MultibufferModeStereo
MultibufferSideMono
MultibufferSideLeft
MultibufferSideRight		

state ?ե???????(XmbufClobberNotifyEvent ??¤??):

MultibufferUnclobbered	
MultibufferPartiallyClobbered
MultibufferFullyClobbered	

???٥??ȴط?:

MultibufferClobberNotifyMask
MultibufferUpdateNotifyMask
MultibufferClobberNotify
MultibufferUpdateNotify
MultibufferNumberEvents
MultibufferBadBuffer
MultibufferNumberErrors

?Х?

???Υޥ˥奢???ڡ????ϲ?????ɬ?פǤ??롣

??Ϣ????

Extending X for Double Buffering, Multi-Buffering, and Stereo

Release 6.4 X Version 11