![]() |
DrawCaml
|
#include <window.h>
Public Member Functions | |
SWindow (string name, int posX, int posY, int width, int height, int borderSize) | |
void | close () |
void | draw () |
void | listener () |
value | keyEventToCaml (int keycode, bool is_pressed) |
Public Attributes | |
string | mName |
int | mPosX |
int | mPosY |
int | mWidth |
int | mHeight |
int | mBorderSize |
thread * | mThread |
mutex | mActionMutex |
queue< Action > | mSharedQueue |
bool | mClosed = false |
SContainer * | mContainer |
Window | mWindow |
Display * | mDisplay |
int | mScreen |
XEvent | mEvent |
Atom | mDeleteWindow |
unsigned long | mValuemask = 0 |
XGCValues | mValues |
GC | mGC |
Colormap | mColormap |
XdbeBackBuffer | mBackBuffer |
value | mEventHandler |
bool | is_Xlib = false |
Class for printing the window and its graphical elements by calling X11 library.
void SWindow::close | ( | ) |
Clean closure of X window.
void SWindow::draw | ( | ) |
Create the "Xlib" thread that will listen to events and draw the window.
value SWindow::keyEventToCaml | ( | int | keycode, |
bool | is_pressed | ||
) |
Method that construct the right Ocaml type for an event by making an ocaml callback
void SWindow::listener | ( | ) |
Loop for listening X11 events.
XdbeBackBuffer SWindow::mBackBuffer |
Back buffer used for clean redraw operations using XDoubleBufferExtension.
queue<Action> SWindow::mSharedQueue |
Queue of actions to perform on the window.