Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module ddi.Drawable

Class Drawable

dui.ObjectG.ObjectG
        ddi.Drawable.Drawable

Implemented interfaces:


public class

Drawable



Drawable

Constructor Summary
public (GObject* gObject)
          
public (Widget widget)
          Creates a drawable from a widget.
(Widget widget, GdkDrawable *window)
          Creates a drawable from a widget.

Methods Summary
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
gint getDepth()
          
Screen getScreen()
          
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 drawPolygon(GC gc, bit filled, GdkPoint* points, gint npoints)
          
void drawPolygon(bit filled, Point points)
          
void drawDrawable(GC gc, Drawable drawable, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)
          Draws a Drawable into this drawable.
void drawImage(GC gc, GdkImage* image, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)
          
void drawImage(Image image, gint xdest, gint ydest)
          
void drawPixbuf(GC gc, Pixbuf pixbuf, int x, int y)
          
void drawString(Font font, int x, int y, char string)
          
void drawString(Font font, int x, int y, String string)
          
void drawPoints(Point points)
          
void drawLines(Point points)
          




public ctor(Drawable)(GObject* gObject)



public ctor(Drawable)(Widget widget)
Creates a drawable from a widget.
No GdkDrawable is created, just the DUI wrapper on the widget drawable.

Parameters:
widget - the widget



ctor(Drawable)(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

getGC

public GC getGC()
Gets the GC of this drawable

Returns:
the GC

setDrawable

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

Parameters:
widget -

gDraw

GdkDrawable* gDraw()
Gets this drawable GdkDrawable

Returns:
the GdkDrawable

drawPoint

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

Parameters:
gc -
x -
y -

drawPoint

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

Parameters:
x -
y -

getSize

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

Parameters:
width -
height -

getDepth

gint getDepth()

getScreen

Screen getScreen()

drawLine

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

Parameters:
gc -
x1 -
y1 -
x2 -
y2 -

drawLine

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

Parameters:
x1 -
y1 -
x2 -
y2 -

drawRectangle

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

Parameters:
gc -
filled -
x -
y -
width -
height -

drawRectangle

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

Parameters:
filled -
x -
y -
width -
height -

drawArc

void 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

drawArc

void 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

drawPolygon

void drawPolygon(GC gc, bit filled, GdkPoint* points, gint npoints)

drawPolygon

void drawPolygon(bit filled, Point points)

drawDrawable

void 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 -

drawImage

void drawImage(GC gc, GdkImage* image, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)

drawImage

void drawImage(Image image, gint xdest, gint ydest)

drawPixbuf

void drawPixbuf(GC gc, Pixbuf pixbuf, int x, int y)

drawString

void drawString(Font font, int x, int y, char string)

drawString

void drawString(Font font, int x, int y, String string)

drawPoints

void drawPoints(Point points)

drawLines

void drawLines(Point points)