Drawable Class Reference

Inheritance diagram for Drawable:

ObjectG GLPixmap GLWindow Pixmap WindowG List of all members.

Detailed Description

Drawable.


Public Member Functions

 this (GObject *gObject)
 Creates a ObjectG from a GTK GObject.

 this (Widget widget)
 Creates a drawable from a widget.

 this (Widget widget, GdkDrawable *window)
 Creates a drawable from a widget.

public GC getGC ()
 Gets the GC of this drawable.

public void setDrawable (Widget widget)
 Sets this drawable GdkDrawable and GdkGC from a widget.

GdkDrawable * gDraw ()
 Gets this drawable GdkDrawable.

void drawPoint (GC gc, gint x, gint y)
 Draws a point.

void drawPoint (gint x, gint y)
 Draws a point using the current GC.

void getSize (gint *width, gint *height)
 Gets the size of this drawable.

void drawLine (GC gc, gint x1, gint y1, gint x2, gint y2)
 Draws a line.

void drawLine (gint x1, gint y1, gint x2, gint y2)
 Draws a line using the current GC.

void drawRectangle (GC gc, bit filled, gint x, gint y, gint width, gint height)
 Draws a rectangle.

void drawRectangle (bit filled, gint x, gint y, gint width, gint height)
 Draws a rectangle using the current GC.

void drawArc (bit filled, gint x, gint y, gint width, gint height, gint angle1, gint angle2)
 Draws an arc using the current GC.

void drawArc (GC gc, bit filled, gint x, gint y, gint width, gint height, gint angle1, gint angle2)
 Draws an arc.

void drawDrawable (GC gc, Drawable drawable, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)
 Draws a Drawable into this drawable.


Member Function Documentation

void Drawable.drawArc GC  gc,
bit  filled,
gint  x,
gint  y,
gint  width,
gint  height,
gint  angle1,
gint  angle2
 

Draws an arc.

Parameters:
gc 
filled 
x 
y 
width 
height 
angle1 the start angle
angle2 the end angle

void Drawable.drawArc bit  filled,
gint  x,
gint  y,
gint  width,
gint  height,
gint  angle1,
gint  angle2
 

Draws an arc using the current GC.

Parameters:
filled 
x 
y 
width 
height 
angle1 the start angle
angle2 the end angle

void Drawable.drawDrawable GC  gc,
Drawable  drawable,
gint  xsrc,
gint  ysrc,
gint  xdest,
gint  ydest,
gint  width,
gint  height
 

Draws a Drawable into this drawable.

Copies a portion of a drawable.

Parameters:
gc 
drawable 
xsrc 
ysrc 
xdest 
ydest 
width 
height 

void Drawable.drawLine gint  x1,
gint  y1,
gint  x2,
gint  y2
 

Draws a line using the current GC.

Parameters:
x1 
y1 
x2 
y2 

void Drawable.drawLine GC  gc,
gint  x1,
gint  y1,
gint  x2,
gint  y2
 

Draws a line.

Parameters:
gc 
x1 
y1 
x2 
y2 

void Drawable.drawPoint gint  x,
gint  y
 

Draws a point using the current GC.

Parameters:
x 
y 

void Drawable.drawPoint GC  gc,
gint  x,
gint  y
 

Draws a point.

Parameters:
gc 
x 
y 

void Drawable.drawRectangle bit  filled,
gint  x,
gint  y,
gint  width,
gint  height
 

Draws a rectangle using the current GC.

Parameters:
filled 
x 
y 
width 
height 

void Drawable.drawRectangle GC  gc,
bit  filled,
gint  x,
gint  y,
gint  width,
gint  height
 

Draws a rectangle.

Parameters:
gc 
filled 
x 
y 
width 
height 

GdkDrawable* Drawable.gDraw  ) 
 

Gets this drawable GdkDrawable.

Returns:
the GdkDrawable

public GC Drawable.getGC  ) 
 

Gets the GC of this drawable.

Returns:
the GC

void Drawable.getSize gint *  width,
gint *  height
 

Gets the size of this drawable.

Parameters:
width 
height 

public void Drawable.setDrawable Widget  widget  ) 
 

Sets this drawable GdkDrawable and GdkGC from a widget.

Parameters:
widget 

Drawable.this Widget  widget,
GdkDrawable *  window
 

Creates a drawable from a widget.

No GdkDrawable is created, just the DUI wrapper on the widget drawable.

Parameters:
widget the widget
window the widget drawable

Drawable.this Widget  widget  ) 
 

Creates a drawable from a widget.

No GdkDrawable is created, just the DUI wrapper on the widget drawable.

Parameters:
widget the widget

Drawable.this GObject *  gObject  ) 
 

Creates a ObjectG from a GTK GObject.

This will set a pointer to the ObjectG on the GTK GObject all the new widget will end up executing this contructor.

Reimplemented from ObjectG.

Reimplemented in WindowG.


SourceForge.net Logo