Linux Manuals session 3

Section 3: library functions

  • |

    XCirculateSubwindows (3) Linux Manual Page

    XRaiseWindow, XLowerWindow, XCirculateSubwindows, XCirculateSubwindowsUp, XCirculateSubwindowsDown, XRestackWindows – change window stacking order Syntaxint XRaiseWindow(Display *display, Window w); int XLowerWindow(Display *display, Window w); int XCirculateSubwindows(Display *display, Window w, int direction); int XCirculateSubwindowsUp(Display *display, Window w); int XCirculateSubwindowsDown(Display *display, Window w); int XRestackWindows(Display *display, Window windows[], int nwindows);Argumentsdirection Specifies the direction (up or down) that you want to…

  • |

    XCirculateRequestEvent (3) Linux Manual Page

    XCirculateRequestEvent – CirculateRequest event structure StructuresThe structure for CirculateRequest events contains: typedef struct {         int type;       /* CirculateRequest */         unsigned long serial;   /* # of last request processed by server */         Bool send_event;        /* true if this came from a SendEvent request */         Display *display;       /* Display the event was read from */         Window parent;         Window window;         int place;      /* PlaceOnTop, PlaceOnBottom */ } XCirculateRequestEvent; When you receive this event, the structure…

  • |

    XCirculateEvent (3) Linux Manual Page

    XCirculateEvent – CirculateNotify event structure StructuresThe structure for CirculateNotify events contains: typedef struct {         int type;       /* CirculateNotify */         unsigned long serial;   /* # of last request processed by server */         Bool send_event;        /* true if this came from a SendEvent request */         Display *display;       /* Display the event was read from */         Window event;         Window window;         int place;      /* PlaceOnTop, PlaceOnBottom */ } XCirculateEvent; When you receive this event, the structure…

  • |

    XCheckWindowEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntaxint XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent *event_return);…

  • |

    XCheckTypedWindowEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntaxint XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent *event_return);…

  • |

    XCheckTypedEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntaxint XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent *event_return);…

  • |

    XCheckMaskEvent (3) Linux Manual Page

    XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent – select events by type Syntaxint XNextEvent(Display *display, XEvent *event_return); int XPeekEvent(Display *display, XEvent *event_return); int XWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); Bool XCheckWindowEvent(Display *display, Window w, long event_mask, XEvent *event_return); int XMaskEvent(Display *display, long event_mask, XEvent *event_return); Bool XCheckMaskEvent(Display *display, long event_mask, XEvent *event_return);…

  • |

    XCheckIfEvent (3) Linux Manual Page

    XIfEvent, XCheckIfEvent, XPeekIfEvent – check the event queue with a predicate procedure Syntaxint XIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg); Bool XCheckIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg); int XPeekIfEvent(Display *display, XEvent *event_return, Bool (*predicate)(), XPointer arg);Argumentsarg Specifies the user-supplied argument that will be passed to the predicate procedure. display Specifies the connection…

  • |

    XCharStruct (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures SyntaxFont XLoadFont(Display *display, char *name); XFontStruct *XQueryFont(Display *display, XID font_ID); XFontStruct *XLoadQueryFont(Display *display, char *name); int XFreeFont(Display *display, XFontStruct *font_struct); Bool XGetFontProperty(XFontStruct *font_struct, Atom atom, unsigned long *value_return); int XUnloadFont(Display *display, Font font);Argumentsatom Specifies the atom…

  • |

    XChar2b (3) Linux Manual Page

    XLoadFont, XQueryFont, XLoadQueryFont, XFreeFont, XGetFontProperty, XUnloadFont, XCharStruct, XFontProp, XChar2b, XFontStruct – load or unload fonts and font metric structures SyntaxFont XLoadFont(Display *display, char *name); XFontStruct *XQueryFont(Display *display, XID font_ID); XFontStruct *XLoadQueryFont(Display *display, char *name); int XFreeFont(Display *display, XFontStruct *font_struct); Bool XGetFontProperty(XFontStruct *font_struct, Atom atom, unsigned long *value_return); int XUnloadFont(Display *display, Font font);Argumentsatom Specifies the atom…

  • |

    XChangeWindowAttributes (3) Linux Manual Page

    XChangeWindowAttributes, XSetWindowBackground, XSetWindowBackgroundPixmap, XSetWindowBorder, XSetWindowBorderPixmap, XSetWindowColormap – change window attributes Syntaxint XChangeWindowAttributes(Display *display, Window w, unsigned long valuemask, XSetWindowAttributes *attributes); int XSetWindowBackground(Display *display, Window w, unsigned long background_pixel); int XSetWindowBackgroundPixmap(Display *display, Window w, Pixmap background_pixmap); int XSetWindowBorder(Display *display, Window w, unsigned long border_pixel); int XSetWindowBorderPixmap(Display *display, Window w, Pixmap border_pixmap); int XSetWindowColormap(Display *display, Window w,…

  • |

    XChangeSaveSet (3) Linux Manual Page

    XChangeSaveSet, XAddToSaveSet, XRemoveFromSaveSet – change a client’s save set Syntaxint XChangeSaveSet(Display *display, Window w, int change_mode); int XAddToSaveSet(Display *display, Window w); int XRemoveFromSaveSet(Display *display, Window w);Argumentschange_mode Specifies the mode. You can pass SetModeInsert or SetModeDelete. display Specifies the connection to the X server. w Specifies the window that you want to add or delete from…

  • |

    XChangeProperty (3) Linux Manual Page

    XGetWindowProperty, XListProperties, XChangeProperty, XRotateWindowProperties, XDeleteProperty – obtain and change window properties Syntaxint XGetWindowProperty(Display *display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return); Atom *XListProperties(Display *display, Window w, int *num_prop_return); int XChangeProperty(Display *display, Window w, Atom property, Atom type,…

  • |

    XChangePointerDevice (3) Linux Manual Page

    XChangePointerDevice – change which device is the X pointer Synopsis#include <X11/extensions/XInput.h>Status XChangePointerDevice( Display *display, XDevice *device, int xaxis, int yaxis);display Specifies the connection to the X server.device Specifies the device to be used as the X pointer.xaxis Specifies the axis of the device to be used as the X pointer x-axis.yaxis Specifies the axis of…

  • |

    XChangePointerControl (3) Linux Manual Page

    XChangePointerControl, XGetPointerControl – control pointer Syntaxint XChangePointerControl(Display *display, Bool do_accel, Bool do_threshold, int accel_numerator, int accel_denominator, int threshold); int XGetPointerControl(Display *display, int *accel_numerator_return, int *accel_denominator_return, int *threshold_return);Argumentsaccel_denominator Specifies the denominator for the acceleration multiplier. accel_denominator_return Returns the denominator for the acceleration multiplier. accel_numerator Specifies the numerator for the acceleration multiplier. accel_numerator_return Returns the numerator for…

  • |

    XChangeKeyboardMapping (3) Linux Manual Page

    XChangeKeyboardMapping, XGetKeyboardMapping, XDisplayKeycodes, XSetModifierMapping, XGetModifierMapping, XNewModifiermap, XInsertModifiermapEntry, XDeleteModifiermapEntry, XFreeModifiermap, XModifierKeymap – manipulate keyboard encoding and keyboard encoding structure Syntaxint XChangeKeyboardMapping(Display *display, int first_keycode, int keysyms_per_keycode, KeySym *keysyms, int num_codes); KeySym *XGetKeyboardMapping(Display *display, KeyCode first_keycode, int keycode_count, int *keysyms_per_keycode_return); int XDisplayKeycodes(Display *display, int *min_keycodes_return, int *max_keycodes_return); int XSetModifierMapping(Display *display, XModifierKeymap *modmap); XModifierKeymap *XGetModifierMapping(Display *display); XModifierKeymap *XNewModifiermap(int…

  • |

    XChangeKeyboardDevice (3) Linux Manual Page

    XChangeKeyboardDevice – change which device is used as the X keyboard Synopsis#include <X11/extensions/XInput.h>Status XChangeKeyboardDevice( Display *display, XDevice *device);display Specifies the connection to the X server.device Specifies the device to be used as the X keyboard.DescriptionThe XChangeKeyboardDevice request causes the server to use the specified device as the X keyboard. The device must have been previously…

  • |

    XChangeKeyboardControl (3) Linux Manual Page

    XChangeKeyboardControl, XGetKeyboardControl, XAutoRepeatOn, XAutoRepeatOff, XBell, XQueryKeymap, XKeyboardControl – manipulate keyboard settings and keyboard control structure Syntaxint XChangeKeyboardControl(Display *display, unsigned long value_mask, XKeyboardControl *values); int XGetKeyboardControl(Display *display, XKeyboardState *values_return); int XAutoRepeatOn(Display *display); int XAutoRepeatOff(Display *display); int XBell(Display *display, int percent); int XQueryKeymap(Display *display, char keys_return[32]);Argumentsdisplay Specifies the connection to the X server. keys_return Returns an array…

  • |

    XChangeGC (3) Linux Manual Page

    XCreateGC, XCopyGC, XChangeGC, XGetGCValues, XFreeGC, XGContextFromGC, XGCValues – create or free graphics contexts and graphics context structure SyntaxGC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); int XCopyGC(Display *display, GC src, unsigned long valuemask, GC dest); int XChangeGC(Display *display, GC gc, unsigned long valuemask, XGCValues *values); Status XGetGCValues(Display *display, GC gc, unsigned long valuemask,…

  • |

    XChangeFeedbackControl (3) Linux Manual Page

    XGetFeedbackControl, XChangeFeedbackControl – query and change input device feedbacks Synopsis#include <X11/extensions/XInput.h>XFeedbackState *XGetFeedbackControl( Display *display, XDevice *device, int *num_feedbacks);int XChangeFeedbackControl( Display *display, XDevice *device, Mask mask, XFeedbackControl *control);display Specifies the connection to the X server.device Specifies the device whose feedbacks are to be queried or modified.num_feedbacks Specifies an address into which the number of feedbacks supported…