vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKDrawTool Class Reference

This class and subclasses provid customized drawing tools for VDKDrawingArea widget. More...

#include <vdkdrawarea.h>

Inheritance diagram for VDKDrawTool:
Inheritance graph
[legend]
Collaboration diagram for VDKDrawTool:
Collaboration graph
[legend]

Public Member Functions

 VDKDrawTool (VDKDrawingArea *owner)
 
virtual ~VDKDrawTool ()
 
void SetTile (const char *tfile)
 
void SetTile (char **tdata)
 
void SetTile (GdkPixmap *tile)
 
GdkPixmap * Tile (char **tdata)
 
GdkPixmap * Tile (const char *tfile)
 

Public Attributes

VDKReadWriteValueProp< VDKDrawTool, GdkFill > Fill
 
VDKReadWriteValueProp< VDKDrawTool, GdkFunction > Function
 

Detailed Description

This class and subclasses provid customized drawing tools for VDKDrawingArea widget.

Constructor & Destructor Documentation

◆ VDKDrawTool()

VDKDrawTool::VDKDrawTool ( VDKDrawingArea owner)

Constructor

◆ ~VDKDrawTool()

VDKDrawTool::~VDKDrawTool ( )
virtual

Destructor

Member Function Documentation

◆ SetTile() [1/3]

void VDKDrawTool::SetTile ( const char *  tfile)

Sets tile pixmap, valid only on GDK_TILED mode

  • tfile a file containing a pixmap

◆ SetTile() [2/3]

void VDKDrawTool::SetTile ( char **  tdata)

Sets tile pixmap, valid only on GDK_TILED fill mode

  • tdata a string array of pixmap data

◆ SetTile() [3/3]

void VDKDrawTool::SetTile ( GdkPixmap *  tile)

Sets tile pixmap, valid only on GDK_TILED fill mode

◆ Tile() [1/2]

GdkPixmap * VDKDrawTool::Tile ( char **  tdata)

Returns a tile

  • tdata a string array of pixmap data

◆ Tile() [2/2]

GdkPixmap * VDKDrawTool::Tile ( const char *  tfile)

Returns a tile

  • tfile a file containing a pixmap

Member Data Documentation

◆ Fill

VDKReadWriteValueProp<VDKDrawTool, GdkFill> VDKDrawTool::Fill

Set how your drawing is filled, following modes are supported:

  • GDK_SOLID draw with the foreground color
  • GDK_TILED draw with a tiled pixmap

◆ Function

VDKReadWriteValueProp<VDKDrawTool, GdkFunction> VDKDrawTool::Function

Determines how the bit values for the source pixels are combined with the bit values for destination pixels to produce the final result. Only a few of these values are usually useful: for colored images, only GDK_COPY, GDK_XOR and GDK_INVERT are generally useful. For bitmaps, GDK_AND and GDK_OR are also useful. Supported modes: GDK_COPY, GDK_INVERT, GDK_XOR, GDK_CLEAR, GDK_AND, GDK_AND_REVERSE, GDK_AND_INVERT, GDK_NOOP, GDK_OR, GDK_EQUIV, GDK_OR_REVERSE, GDK_COPY_INVERT, GDK_OR_INVERT, GDK_NAND, GDK_NOR, GDK_SET


The documentation for this class was generated from the following files: