VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GX::Context Class Reference

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.
 

Detailed Description

An Xlib GC wrapper.

Definition at line 37 of file gxcontext.h.

Constructor & Destructor Documentation

GX::Context::Context ( Display display,
Drawable drawable 
)

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.


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