comp • gb.gtk • draw

Draw (gb.gtk)

This class is used for drawing on a Picture, or a DrawingArea object.

Before starting drawing anything, you must call the Begin method by passing it the object where you want to draw.

Then you can call any of the drawing methods to draw points, lines, texts, pictures...

When your drawing is finished, you must call the End method.

You cannot draw on a DrawingArea outside of its Draw event handler, unless its Cached property is set. In that case, the DrawingArea acts like a Picture.

Since 3.4

The Draw class is deprecated since Gambas 3.4. It is now emulated through the Paint class.

This class is static.

Static properties

Static methods Constants
Background   Clip   ClipRect   Device   FillColor   FillStyle   FillX   FillY   Font   Foreground   H   Height   Invert   LineStyle   LineWidth   Style   Transparent   W   Width   Arc  
Begins a new drawing. The device can be one of the following objects:
Circle   Clear   Ellipse  
Ends a drawing.
FillRect   Image   Line   Picture   Point   PolyLine   Polygon   Rect   Reset   Restore   RichText   RichTextHeight   RichTextWidth   Save   Scale   Text   TextHeight   TextWidth   Tile   Translate   Zoom  
Disabled   Focus   Hover   Normal