gtk.DrawingArea.DrawingArea Class Reference

Inheritance diagram for gtk.DrawingArea.DrawingArea:

gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.Curve.Curve List of all members.

Public Member Functions

GtkDrawingAreagetDrawingAreaStruct ()
 this (GtkDrawingArea *gtkDrawingArea)
 Sets our main struct and passes it to the parent class.
 this (int width, int height)
 Create a new DrawingArea and sets the SizeRequest Params: width = height = Returns:.
 this ()
 Creates a new drawing area.
void size (int width, int height)
 Warning gtk_drawing_area_size is deprecated and should not be used in newly-written code.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkDrawingAreagtkDrawingArea
 the main Gtk struct

Constructor & Destructor Documentation

gtk.DrawingArea.DrawingArea.this ( GtkDrawingArea gtkDrawingArea  ) 

Sets our main struct and passes it to the parent class.

gtk.DrawingArea.DrawingArea.this ( int  width,
int  height 
)

Create a new DrawingArea and sets the SizeRequest Params: width = height = Returns:.

gtk.DrawingArea.DrawingArea.this (  ) 

Creates a new drawing area.

Returns: a new GtkDrawingArea


Member Function Documentation

GtkDrawingArea* gtk.DrawingArea.DrawingArea.getDrawingAreaStruct (  ) 

void* gtk.DrawingArea.DrawingArea.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Widget.Widget.

Reimplemented in gtk.Curve.Curve.

void gtk.DrawingArea.DrawingArea.size ( int  width,
int  height 
)

Warning gtk_drawing_area_size is deprecated and should not be used in newly-written code.

(Use gtk_widget_set_size_request() instead.) Sets the size that the drawing area will request in response to a "size_request" signal. The drawing area may actually be allocated a size larger than this depending on how it is packed within the enclosing containers. darea: a GtkDrawingArea. width: the width to request. height: the height to request. See Also Sometimes GtkImage is a useful alternative to a drawing area. You can put a GdkPixmap in the GtkImage and draw to the GdkPixmap, calling gtk_widget_queue_draw() on the GtkImage when you want to refresh to the screen.


Member Data Documentation

GtkDrawingArea* gtk.DrawingArea.DrawingArea.gtkDrawingArea [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo