YggdrasilWM  0.1.1
A tiny window manager coded in C++
BaseX11Wrapper Class Referenceabstract

#include <baseX11Wrapper.hpp>

Inheritance diagram for BaseX11Wrapper:
Inheritance graph
Collaboration diagram for BaseX11Wrapper:
Collaboration graph

Public Member Functions

virtual ~BaseX11Wrapper ()=default
 
virtual Display * openDisplay ()=0
 
virtual Display * openDisplay (const char *display_name)=0
 
virtual void closeDisplay (Display *display)=0
 
virtual int defaultScreen (Display *display)=0
 
virtual Window rootWindow (Display *display, int screen)=0
 
virtual Atom internAtom (Display *display, const char *atomName, bool onlyIfExists)=0
 
virtual int displayWidth (Display *display, int screen)=0
 
virtual int displayHeight (Display *display, int screen)=0
 
virtual int grabServer (Display *display)=0
 
virtual int ungrabServer (Display *display)=0
 
virtual int flush (Display *display)=0
 
virtual XErrorHandler setErrorHandler (XErrorHandler handler)=0
 
virtual int selectInput (Display *display, Window window, long eventMask)=0
 
virtual int sync (Display *display, bool discard)=0
 
virtual int queryTree (Display *display, Window window, Window *rootReturn, Window *parentReturn, Window **childrenReturn, unsigned int *nChildrenReturn)=0
 
virtual int freeX (void *data)=0
 
virtual int nextEvent (Display *display, XEvent *event_return)=0
 
virtual int sendEvent (Display *display, Window window, bool propagate, long eventMask, XEvent *event_send)=0
 
virtual int changeProperty (Display *display, Window window, Atom property, Atom type, int format, int mode, const unsigned char *data, int nelements)=0
 
virtual int getProperty (Display *display, Window window, 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)=0
 
virtual int setInputFocus (Display *display, Window focus, int revertTo, Time time)=0
 
virtual int getErrorText (Display *display, int code, char *buffer_return, int length)=0
 
virtual int mapWindow (Display *display, Window window)=0
 
virtual int unmapWindow (Display *display, Window window)=0
 
virtual int configureWindow (Display *display, Window window, unsigned valueMask, XWindowChanges *changes)=0
 
virtual int setInputFocus (Display *display, Window focus, int revertTo)=0
 
virtual int raiseWindow (Display *display, Window window)=0
 
virtual int lowerWindow (Display *display, Window window)=0
 
virtual int setWindowBorder (Display *display, Window window, unsigned long border)=0
 
virtual int getWindowProperty (Display *display, Window window, 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)=0
 
virtual int destroyWindow (Display *display, Window window)=0
 
virtual int getWindowAttributes (Display *display, Window window, XWindowAttributes *window_attributes_return)=0
 
virtual int addToSaveSet (Display *display, Window window)=0
 
virtual int removeFromSaveSet (Display *display, Window window)=0
 
virtual int reparentWindow (Display *display, Window window, Window parent, int x, int y)=0
 
virtual int grabButton (Display *display, unsigned int button, unsigned int modifiers, Window grab_window, bool owner_events, unsigned int event_mask, int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor)=0
 
virtual int ungrabButton (Display *display, unsigned int button, unsigned int modifiers, Window grab_window)=0
 
virtual int grabKey (Display *display, int keycode, unsigned int modifiers, Window grab_window, bool owner_events, int pointer_mode, int keyboard_mode)=0
 
virtual int ungrabKey (Display *display, int keycode, unsigned int modifiers, Window grab_window)=0
 
virtual int moveWindow (Display *display, Window window, int x, int y)=0
 
virtual int resizeWindow (Display *display, Window window, unsigned int width, unsigned int height)=0
 
virtual int keysymToKeycode (Display *display, int keysym)=0
 
virtual KeySym stringToKeysym (const char *string)=0
 
virtual Window createWindow (Display *display, 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)=0
 
virtual int clearWindow (Display *display, Window window)=0
 
virtual int drawString (Display *display, Window window, GC gc, int x, int y, const char *string, int length)=0
 
virtual Window createSimpleWindow (Display *display, Window parent, int x, int y, unsigned int width, unsigned int height, unsigned int border_width, unsigned long border, unsigned long background)=0
 

Constructor & Destructor Documentation

◆ ~BaseX11Wrapper()

virtual BaseX11Wrapper::~BaseX11Wrapper ( )
virtualdefault

Member Function Documentation

◆ addToSaveSet()

virtual int BaseX11Wrapper::addToSaveSet ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ changeProperty()

virtual int BaseX11Wrapper::changeProperty ( Display *  display,
Window  window,
Atom  property,
Atom  type,
int  format,
int  mode,
const unsigned char *  data,
int  nelements 
)
pure virtual

Implemented in X11Wrapper.

◆ clearWindow()

virtual int BaseX11Wrapper::clearWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ closeDisplay()

virtual void BaseX11Wrapper::closeDisplay ( Display *  display)
pure virtual

Implemented in X11Wrapper.

◆ configureWindow()

virtual int BaseX11Wrapper::configureWindow ( Display *  display,
Window  window,
unsigned  valueMask,
XWindowChanges *  changes 
)
pure virtual

Implemented in X11Wrapper.

◆ createSimpleWindow()

virtual Window BaseX11Wrapper::createSimpleWindow ( Display *  display,
Window  parent,
int  x,
int  y,
unsigned int  width,
unsigned int  height,
unsigned int  border_width,
unsigned long  border,
unsigned long  background 
)
pure virtual

Implemented in X11Wrapper.

◆ createWindow()

virtual Window BaseX11Wrapper::createWindow ( Display *  display,
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 
)
pure virtual

Implemented in X11Wrapper.

◆ defaultScreen()

virtual int BaseX11Wrapper::defaultScreen ( Display *  display)
pure virtual

Implemented in X11Wrapper.

◆ destroyWindow()

virtual int BaseX11Wrapper::destroyWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ displayHeight()

virtual int BaseX11Wrapper::displayHeight ( Display *  display,
int  screen 
)
pure virtual

Implemented in X11Wrapper.

◆ displayWidth()

virtual int BaseX11Wrapper::displayWidth ( Display *  display,
int  screen 
)
pure virtual

Implemented in X11Wrapper.

◆ drawString()

virtual int BaseX11Wrapper::drawString ( Display *  display,
Window  window,
GC  gc,
int  x,
int  y,
const char *  string,
int  length 
)
pure virtual

Implemented in X11Wrapper.

◆ flush()

virtual int BaseX11Wrapper::flush ( Display *  display)
pure virtual

Implemented in X11Wrapper.

◆ freeX()

virtual int BaseX11Wrapper::freeX ( void *  data)
pure virtual

Implemented in X11Wrapper.

◆ getErrorText()

virtual int BaseX11Wrapper::getErrorText ( Display *  display,
int  code,
char *  buffer_return,
int  length 
)
pure virtual

Implemented in X11Wrapper.

◆ getProperty()

virtual int BaseX11Wrapper::getProperty ( Display *  display,
Window  window,
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 
)
pure virtual

Implemented in X11Wrapper.

◆ getWindowAttributes()

virtual int BaseX11Wrapper::getWindowAttributes ( Display *  display,
Window  window,
XWindowAttributes *  window_attributes_return 
)
pure virtual

Implemented in X11Wrapper.

◆ getWindowProperty()

virtual int BaseX11Wrapper::getWindowProperty ( Display *  display,
Window  window,
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 
)
pure virtual

Implemented in X11Wrapper.

◆ grabButton()

virtual int BaseX11Wrapper::grabButton ( Display *  display,
unsigned int  button,
unsigned int  modifiers,
Window  grab_window,
bool  owner_events,
unsigned int  event_mask,
int  pointer_mode,
int  keyboard_mode,
Window  confine_to,
Cursor  cursor 
)
pure virtual

Implemented in X11Wrapper.

◆ grabKey()

virtual int BaseX11Wrapper::grabKey ( Display *  display,
int  keycode,
unsigned int  modifiers,
Window  grab_window,
bool  owner_events,
int  pointer_mode,
int  keyboard_mode 
)
pure virtual

Implemented in X11Wrapper.

◆ grabServer()

virtual int BaseX11Wrapper::grabServer ( Display *  display)
pure virtual

Implemented in X11Wrapper.

◆ internAtom()

virtual Atom BaseX11Wrapper::internAtom ( Display *  display,
const char *  atomName,
bool  onlyIfExists 
)
pure virtual

Implemented in X11Wrapper.

◆ keysymToKeycode()

virtual int BaseX11Wrapper::keysymToKeycode ( Display *  display,
int  keysym 
)
pure virtual

Implemented in X11Wrapper.

Referenced by Binding::init_keycode().

Here is the caller graph for this function:

◆ lowerWindow()

virtual int BaseX11Wrapper::lowerWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ mapWindow()

virtual int BaseX11Wrapper::mapWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ moveWindow()

virtual int BaseX11Wrapper::moveWindow ( Display *  display,
Window  window,
int  x,
int  y 
)
pure virtual

Implemented in X11Wrapper.

◆ nextEvent()

virtual int BaseX11Wrapper::nextEvent ( Display *  display,
XEvent *  event_return 
)
pure virtual

Implemented in X11Wrapper.

◆ openDisplay() [1/2]

virtual Display* BaseX11Wrapper::openDisplay ( )
pure virtual

Implemented in X11Wrapper.

◆ openDisplay() [2/2]

virtual Display* BaseX11Wrapper::openDisplay ( const char *  display_name)
pure virtual

Implemented in X11Wrapper.

◆ queryTree()

virtual int BaseX11Wrapper::queryTree ( Display *  display,
Window  window,
Window *  rootReturn,
Window *  parentReturn,
Window **  childrenReturn,
unsigned int *  nChildrenReturn 
)
pure virtual

Implemented in X11Wrapper.

◆ raiseWindow()

virtual int BaseX11Wrapper::raiseWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ removeFromSaveSet()

virtual int BaseX11Wrapper::removeFromSaveSet ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.

◆ reparentWindow()

virtual int BaseX11Wrapper::reparentWindow ( Display *  display,
Window  window,
Window  parent,
int  x,
int  y 
)
pure virtual

Implemented in X11Wrapper.

◆ resizeWindow()

virtual int BaseX11Wrapper::resizeWindow ( Display *  display,
Window  window,
unsigned int  width,
unsigned int  height 
)
pure virtual

Implemented in X11Wrapper.

◆ rootWindow()

virtual Window BaseX11Wrapper::rootWindow ( Display *  display,
int  screen 
)
pure virtual

Implemented in X11Wrapper.

◆ selectInput()

virtual int BaseX11Wrapper::selectInput ( Display *  display,
Window  window,
long  eventMask 
)
pure virtual

Implemented in X11Wrapper.

◆ sendEvent()

virtual int BaseX11Wrapper::sendEvent ( Display *  display,
Window  window,
bool  propagate,
long  eventMask,
XEvent *  event_send 
)
pure virtual

Implemented in X11Wrapper.

◆ setErrorHandler()

virtual XErrorHandler BaseX11Wrapper::setErrorHandler ( XErrorHandler  handler)
pure virtual

Implemented in X11Wrapper.

◆ setInputFocus() [1/2]

virtual int BaseX11Wrapper::setInputFocus ( Display *  display,
Window  focus,
int  revertTo 
)
pure virtual

Implemented in X11Wrapper.

◆ setInputFocus() [2/2]

virtual int BaseX11Wrapper::setInputFocus ( Display *  display,
Window  focus,
int  revertTo,
Time  time 
)
pure virtual

Implemented in X11Wrapper.

◆ setWindowBorder()

virtual int BaseX11Wrapper::setWindowBorder ( Display *  display,
Window  window,
unsigned long  border 
)
pure virtual

Implemented in X11Wrapper.

◆ stringToKeysym()

virtual KeySym BaseX11Wrapper::stringToKeysym ( const char *  string)
pure virtual

Implemented in X11Wrapper.

Referenced by Binding::init_keycode().

Here is the caller graph for this function:

◆ sync()

virtual int BaseX11Wrapper::sync ( Display *  display,
bool  discard 
)
pure virtual

Implemented in X11Wrapper.

◆ ungrabButton()

virtual int BaseX11Wrapper::ungrabButton ( Display *  display,
unsigned int  button,
unsigned int  modifiers,
Window  grab_window 
)
pure virtual

Implemented in X11Wrapper.

◆ ungrabKey()

virtual int BaseX11Wrapper::ungrabKey ( Display *  display,
int  keycode,
unsigned int  modifiers,
Window  grab_window 
)
pure virtual

Implemented in X11Wrapper.

◆ ungrabServer()

virtual int BaseX11Wrapper::ungrabServer ( Display *  display)
pure virtual

Implemented in X11Wrapper.

◆ unmapWindow()

virtual int BaseX11Wrapper::unmapWindow ( Display *  display,
Window  window 
)
pure virtual

Implemented in X11Wrapper.


The documentation for this class was generated from the following file: