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.

Desde 3.4

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

Esta classe é estática.

Constantes
Disabled  
Focus  
Hover  
Normal  

Propriedades estáticas
Background  
Clip  
ClipRect  
Device  
FillColor  
FillStyle  
FillX  
FillY  
Font  
Foreground  
H  
Height  
Invert  
LineStyle  
LineWidth  
Style  
Transparent  
W  
Width  

Métodos estáticos
Arc  
Begin   Begins a new drawing. The device can be one of the following objects:
Circle  
Clear  
Ellipse  
End   Ends a drawing.
FillRect  
Image  
Line  
Picture  
Point  
PolyLine  
Polygon  
Rect  
Reset  
Restore  
RichText  
RichTextHeight  
RichTextWidth  
Save  
Scale  
Text  
TextHeight  
TextWidth  
Tile  
Translate  
Zoom