|
VideoTools
|
An Xlib GC wrapper. More...
#include <gxcontext.h>
Public Member Functions | |
| Context (Display &, Drawable &) | |
| Constructor for a new graphics context. More... | |
| Context (Display &,::GC gc) | |
| Constructor for an existing graphics context. More... | |
| ~Context () | |
| Destructor. | |
| void | setForeground (unsigned long cc) |
| Sets the foreground drawing colour. | |
| void | setLineWidth (unsigned long) |
| Sets the line width. | |
| ::GC | x () |
| Returns the X object. | |
| Context (const Context &) | |
| Copy constructor. The new object refers to the same underlying context. | |
An Xlib GC wrapper.
Definition at line 37 of file gxcontext.h.
Constructor for a new graphics context.
The display reference is kept.
Definition at line 28 of file gxcontext.cpp.
| GX::Context::Context | ( | Display & | display, |
| ::GC | gc | ||
| ) |
Constructor for an existing graphics context.
The display reference is kept. The context is not freed in the destructor.
Definition at line 37 of file gxcontext.cpp.