GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Pixmap Class Reference

#include <Pixmap.H>

Inheritance diagram for Pixmap:
Inheritance graph
[legend]
Collaboration diagram for Pixmap:
Collaboration graph
[legend]

Public Member Functions

 Pixmap ()
 
 Pixmap (int width, int height)
 
virtual ~Pixmap (void)
 
GtkWidget * getWidget (void)
 
GdkPixmap * getPixmap (void)
 
void setPixmap (GdkPixmap *pixmap_)
 

Protected Member Functions

GtkWidget * show (void)
 
GtkWidget * hide (void)
 
void destroyPixmap (void)
 
void init (int width, int height)
 

Static Protected Member Functions

static gboolean configure_event (GtkWidget *widget, GdkEventConfigure *event, gpointer data)
 
static gboolean expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
 

Protected Attributes

GtkWidget * widget
 The drawing area widget. More...
 
GdkPixmap * pixmap
 Backing pixmap for drawing area. More...
 

Detailed Description

Definition at line 22 of file Pixmap.H.

Constructor & Destructor Documentation

Pixmap::Pixmap ( )
inline

Default constructor of size 200 by 200

Definition at line 83 of file Pixmap.H.

Here is the call graph for this function:

Pixmap::Pixmap ( int  width,
int  height 
)
inline
Construct a pixmap
Parameters
widththe width of the pixmap
heightthe height of the pixmap

Definition at line 90 of file Pixmap.H.

Here is the call graph for this function:

virtual Pixmap::~Pixmap ( void  )
inlinevirtual

Destructor

Definition at line 96 of file Pixmap.H.

Here is the call graph for this function:

Member Function Documentation

static gboolean Pixmap::configure_event ( GtkWidget *  widget,
GdkEventConfigure *  event,
gpointer  data 
)
inlinestaticprotected

Create a new backing pixmap of the appropriate size

Definition at line 44 of file Pixmap.H.

Here is the call graph for this function:

Here is the caller graph for this function:

void Pixmap::destroyPixmap ( void  )
inlineprotected

Method to dereference and set the pixmap to null

Definition at line 62 of file Pixmap.H.

Here is the caller graph for this function:

static gboolean Pixmap::expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  data 
)
inlinestaticprotected

Redraw the screen from the backing pixmap

Definition at line 53 of file Pixmap.H.

Here is the call graph for this function:

Here is the caller graph for this function:

GdkPixmap* Pixmap::getPixmap ( void  )
inline
Get the backing pixmap
Returns
The backing pixmap

Definition at line 108 of file Pixmap.H.

Here is the caller graph for this function:

GtkWidget* Pixmap::getWidget ( void  )
inline
Get the drawing area widget
Returns
The drawing area widget

Definition at line 103 of file Pixmap.H.

Here is the caller graph for this function:

GtkWidget* Pixmap::hide ( void  )
inlineprotected

Method to hide the box.

Returns
box the GtkWidget* to the box

Definition at line 37 of file Pixmap.H.

void Pixmap::init ( int  width,
int  height 
)
inlineprotected

Definition at line 69 of file Pixmap.H.

Here is the call graph for this function:

Here is the caller graph for this function:

void Pixmap::setPixmap ( GdkPixmap *  pixmap_)
inline
Set the backing pixmap
Parameters
Thenew backing pixmap

Definition at line 113 of file Pixmap.H.

Here is the call graph for this function:

Here is the caller graph for this function:

GtkWidget* Pixmap::show ( void  )
inlineprotected

Method to show the box.

Returns
box the GtkWidget* to the box

Definition at line 30 of file Pixmap.H.

Here is the caller graph for this function:

Member Data Documentation

GdkPixmap* Pixmap::pixmap
protected

Backing pixmap for drawing area.

Definition at line 25 of file Pixmap.H.

GtkWidget* Pixmap::widget
protected

The drawing area widget.

Definition at line 24 of file Pixmap.H.


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