#include <Zinc.hpp>
Public Member Functions | |
Zinc (int renderingMode) | |
~Zinc () | |
void | setTitle (String title) |
void | setBackcolor (String value) |
String | getBackcolor () |
void | setForecolor (String value) |
String | getForecolor () |
void | setWidth (int value) |
int | getWidth () |
void | setHeight (int value) |
int | getHeight () |
void | setBorderwidth (int value) |
int | getBorderwidth () |
void | setFont (ZincFont *value) |
ZincFont * | getFont () |
void | bbox (ZincItem *item, double bbox[4]) |
void | relativeBbox (ZincItem *item, double bbox[4]) |
void | chggroup (ZincItem *item, ZincItem *parentGroup) |
ZincItem * | clone (ZincItem *item) |
int | contour (ZincItem *item) |
int | contour (ZincItem *item, itemOperator flag, ZincItem *reference) |
int | contour (ZincItem *item, bool add, ZincPath *contour) |
void | coords (ZincItem *item, ZincPath *contour, bool add, int contourIndex=-1, int coordIndex=-1) |
void | coordsRemove (ZincItem *item, int coordIndex, int contourIndex=-1) |
void | addTag (ZincItem *item, String tag) |
void | dTag (ZincItem *item, String tag=String("")) |
int | getTags (ZincItem *item, String ***tagList) |
void | focus (ZincItem *item) |
bool | isGname (String gname) |
void | gname (String gradient, String gname) |
ZincItem * | group (ZincItem *item) |
void | lower (ZincItem *item) |
void | lower (ZincItem *item, ZincItem *belowThis) |
void | raise (ZincItem *item) |
void | raise (ZincItem *item, ZincItem *aboveThis) |
itemType | type (ZincItem *item) |
ZincItem * | createTag (String tag) |
void | itemRemove (ZincItem *item) |
ZincItem * | itemCreateGroup (ZincItem *parentGroup) |
ZincItem * | itemCreateRectangle (ZincItem *parentGroup, double x, double y, double width, double height) |
ZincItem * | itemCreateArc (ZincItem *parentGroup, double x, double y, double width, double height) |
ZincItem * | itemCreateText (ZincItem *parentGroup) |
ZincItem * | itemCreateCurve (ZincItem *parentGroup, ZincPath *path) |
ZincItem * | itemCreateIcon (ZincItem *parentGroup, ZincImage *image) |
void | bind (String eventSpecification, ZincWidgetCallback callBack, void *userData, bool add=false) |
void | unbind (String eventSpecification) |
void | itemBind (ZincItem *item, String eventSpecification, ZincItemCallback callBack, void *userData, bool add=false) |
void | itemUnbind (ZincItem *item, String eventSpecification) |
void | itemTranslate (ZincItem *item, double dx, double dy) |
void | itemTranslate (ZincItem *item, double x, double y, bool absolute) |
void | itemRotate (ZincItem *item, double angle) |
void | itemRotate (ZincItem *item, double angle, double x, double y) |
void | itemRotate (ZincItem *item, double angle, bool degree) |
void | itemRotate (ZincItem *item, double angle, double x, double y, bool degree) |
void | itemScale (ZincItem *item, double ax, double ay) |
void | itemScale (ZincItem *item, double ax, double ay, double cx, double cy) |
void | itemSkew (ZincItem *item, double sx, double sy) |
void | itemSkewX (ZincItem *item, double sx) |
void | itemSkewY (ZincItem *item, double sy) |
void | itemResetTransformation (ZincItem *item) |
void | itemSetTransformation (ZincItem *item, double a, double b, double c, double d, double e, double f) |
void | itemGetTransformation (ZincItem *item, double *a, double *b, double *c, double *d, double *e, double *f) |
void | itemMatrix (ZincItem *item, double a, double b, double c, double d, double e, double f) |
void | itemSetClosed (ZincItem *item, bool value) |
bool | itemGetClosed (ZincItem *item) |
void | itemSetComposealpha (ZincItem *item, bool value) |
bool | itemGetComposealpha (ZincItem *item) |
void | itemSetComposerotation (ZincItem *item, bool value) |
bool | itemGetComposerotation (ZincItem *item) |
void | itemSetComposescale (ZincItem *item, bool value) |
bool | itemGetComposescale (ZincItem *item) |
void | itemSetExtent (ZincItem *item, unsigned int value) |
unsigned int | itemGetExtent (ZincItem *item) |
void | itemSetFillcolor (ZincItem *item, String value) |
String | itemGetFillcolor (ZincItem *item) |
void | itemSetFilled (ZincItem *item, bool value) |
bool | itemGetFilled (ZincItem *item) |
void | itemSetFillpattern (ZincItem *item, ZincBitmap *value) |
ZincBitmap * | itemGetFillpattern (ZincItem *item) |
void | itemSetLinecolor (ZincItem *item, String value) |
String | itemGetLinecolor (ZincItem *item) |
void | itemSetLinepattern (ZincItem *item, ZincBitmap *value) |
ZincBitmap * | itemGetLinepattern (ZincItem *item) |
void | itemSetLinestyle (ZincItem *item, lineStyle value) |
lineStyle | itemGetLinestyle (ZincItem *item) |
void | itemSetLinewidth (ZincItem *item, double value) |
double | itemGetLinewidth (ZincItem *item) |
void | itemSetPieslice (ZincItem *item, bool value) |
bool | itemGetPieslice (ZincItem *item) |
void | itemSetPriority (ZincItem *item, unsigned int value) |
unsigned int | itemGetPriority (ZincItem *item) |
void | itemSetSensitive (ZincItem *item, bool value) |
bool | itemGetSensitive (ZincItem *item) |
void | itemSetStartangle (ZincItem *item, unsigned int value) |
unsigned int | itemGetStartangle (ZincItem *item) |
void | itemSetTile (ZincItem *item, ZincBitmap *value) |
ZincBitmap * | itemGetTile (ZincItem *item) |
void | itemSetVisible (ZincItem *item, bool value) |
bool | itemGetVisible (ZincItem *item) |
void | itemSetCapstyle (ZincItem *item, capStyle value) |
capStyle | itemGetCapstyle (ZincItem *item) |
void | itemSetFillrule (ZincItem *item, fillRule value) |
fillRule | itemGetFillrule (ZincItem *item) |
void | itemSetJoinstyle (ZincItem *item, joinStyle value) |
joinStyle | itemGetJoinstyle (ZincItem *item) |
void | itemSetRelief (ZincItem *item, relief value) |
relief | itemGetRelief (ZincItem *item) |
void | itemSetSmoothrelief (ZincItem *item, bool value) |
bool | itemGetSmoothrelief (ZincItem *item) |
void | itemSetAlpha (ZincItem *item, unsigned int value) |
unsigned int | itemGetAlpha (ZincItem *item) |
void | itemSetAtomic (ZincItem *item, bool value) |
bool | itemGetAtomic (ZincItem *item) |
void | itemSetClip (ZincItem *item, ZincItem *value) |
ZincItem * | itemGetClip (ZincItem *item) |
void | itemSetAnchor (ZincItem *item, anchor value) |
anchor | itemGetAnchor (ZincItem *item) |
void | itemSetColor (ZincItem *item, String value) |
String | itemGetColor (ZincItem *item) |
void | itemSetConnecteditem (ZincItem *item, ZincItem *value) |
ZincItem * | itemGetConnecteditem (ZincItem *item) |
void | itemSetConnectionanchor (ZincItem *item, anchor value) |
anchor | itemGetConnectionanchor (ZincItem *item) |
void | itemSetImage (ZincItem *item, ZincImage *value) |
ZincImage * | itemGetImage (ZincItem *item) |
void | itemSetMask (ZincItem *item, ZincBitmap *value) |
ZincBitmap * | itemGetMask (ZincItem *item) |
void | itemSetAlignment (ZincItem *item, alignment value) |
alignment | itemGetAlignment (ZincItem *item) |
void | itemSetFont (ZincItem *item, ZincFont *value) |
ZincFont * | itemGetFont (ZincItem *item) |
void | itemSetOverstriked (ZincItem *item, bool value) |
bool | itemGetOverstriked (ZincItem *item) |
void | itemSetSpacing (ZincItem *item, short value) |
short | itemGetSpacing (ZincItem *item) |
void | itemSetText (ZincItem *item, String value) |
String | itemGetText (ZincItem *item) |
void | itemSetUnderlined (ZincItem *item, bool value) |
bool | itemGetUnderlined (ZincItem *item) |
void | itemSetWidth (ZincItem *item, unsigned short value) |
unsigned short | itemGetWidth (ZincItem *item) |
void | itemSetFirstend (ZincItem *item, double a, double b, double c) |
void | itemGetFirstend (ZincItem *item, double *a, double *b, double *c) |
void | itemSetLastend (ZincItem *item, double a, double b, double c) |
void | itemGetLastend (ZincItem *item, double *a, double *b, double *c) |
void | itemSetPosition (ZincItem *item, double x, double y) |
void | itemGetPosition (ZincItem *item, double *x, double *y) |
ZincImage * | createImageFromFile (String image) |
ZincImage * | createImageFromData (String image) |
ZincBitmap * | createBitmapFromFile (String image) |
ZincBitmap * | createBitmapFromData (String image) |
ZincBitmap * | createBitmapFromName (String image) |
ZincImage * | createImageFromAGGBuffer (int width, int height, unsigned char *aggBuffer) |
ZincFont * | createFont (String family, int size, int bold=-1, int italic=-1, int underline=-1, int overstrike=-1) |
int | getFontAscent (ZincFont *font) |
int | getImageWidth (ZincImage *image) |
int | getImageHeight (ZincImage *image) |
void | z_command (int count, char *p_msg) throw (ZincException) |
Static Public Member Functions | |
void | loadZinc (char *argv0) throw (ZincException) |
void | zincMainLoop () |
void | z_tcl_call (int result, char *p_msg) throw (ZincException) |
Public Attributes | |
Tcl_Obj * | id |
the id of this object | |
WidgetObjCmd | objCmd |
the command associated with this object | |
ClientData | wi |
the zinc object itself | |
String | tclCb |
name of the binding callback | |
int | znId |
the znCount at creation time | |
String | window |
the window which contains the widget | |
Static Public Attributes | |
int | znCount = 0 |
count to create unique ids | |
Tcl_CmdInfo | imgCmdInfo |
the command associated with image | |
Tcl_CmdInfo | fntCmdInfo |
the command associated with font | |
Tcl_CmdInfo | focCmdInfo |
the command associated with fous | |
Tcl_CmdInfo | bndCmdInfo |
the command associated with bind | |
Tcl_Obj * | pool [ZINC_POOL_COUNT] |
a pool of tclobj ready to be used | |
Tcl_Obj * | p1 [ZINC_PARAM_COUNT] |
table of pointeur use for parameters | |
Tcl_Obj * | p2 [ZINC_PARAM_COUNT] |
table of pointeur use for parameters | |
Tcl_Interp * | interp |
the tcl interpreter | |
Friends | |
class | ZincPath |
|
The public constructor
|
|
The public destructor |
|
Add a tag to an item
|
|
Get the bounding box of an item
|
|
Bind a function to an event on the zinc widget
|
|
Change the group of an item
|
|
Clone an item
|
|
Set the contour of an item
|
|
Set the contour of an item to the one of an other
|
|
Get the number of contour of an item
|
|
Set or modify the coordinates of an item
|
|
Remove coords of an item
|
|
Create a bitmap object base64 data
|
|
Create a bitmap object from a file
|
|
Create a bitmap object using a predefined name
|
|
Create a font object
|
|
Create an image object
|
|
Create an image object using base64 data
|
|
Create an image object from a file
|
|
Create a Zinc Tag that can be used in place of any item for zinc functions that must be called using tagOrId
|
|
Remove a tag from an item
|
|
Set the focus to an item
|
|
Call zinc->cget ( -backcolor )
|
|
Call zinc->cget ( -borderwidth )
|
|
Call zinc->cget ( -font )
|
|
Get font ascent
|
|
Call zinc->cget ( -forecolor )
|
|
Call zinc->cget ( -height )
|
|
Get Image height
|
|
Get Image width
|
|
List all tags of an item It's up to the caller to delete the resulting table and strings
|
|
Call zinc->cget ( -width )
|
|
Create a named gradient
|
|
Retreive the group of an item
|
|
Tell if the name is a gradient name
|
|
Bind a function to an event on an item
|
|
Create an arc item
|
|
Create a curve item
|
|
Create a group item
|
|
Create an icon item
|
|
Create a rectangle item
|
|
Create a text item
|
|
Call zinc->itemcget ( -alignment )
|
|
Call zinc->itemcget ( -alpha )
|
|
Call zinc->itemcget ( -anchor )
|
|
Call zinc->itemcget ( -atomic )
|
|
Call zinc->itemcget ( -capstyle )
|
|
Call zinc->itemcget ( -clip )
|
|
Call zinc->itemcget ( -closed )
|
|
Call zinc->itemcget ( -color )
|
|
Call zinc->itemcget ( -composealpha )
|
|
Call zinc->itemcget ( -composerotation )
|
|
Call zinc->itemcget ( -composescale )
|
|
Call zinc->itemcget ( -connecteditem )
|
|
Call zinc->itemcget ( -connectionanchor )
|
|
Call zinc->itemcget ( -extent )
|
|
Call zinc->itemcget ( -fillcolor )
|
|
Call zinc->itemcget ( -filled )
|
|
Call zinc->itemcget ( -fillpattern )
|
|
Call zinc->itemcget ( -fillrule )
|
|
Call zinc->itemcget ( -firstend )
|
|
Call zinc->itemcget ( -font )
|
|
Call zinc->itemcget ( -image )
|
|
Call zinc->itemcget ( -joinstyle )
|
|
Call zinc->itemcget ( -lastend )
|
|
Call zinc->itemcget ( -linecolor )
|
|
Call zinc->itemcget ( -linepattern )
|
|
Call zinc->itemcget ( -linestyle )
|
|
Call zinc->itemcget ( -linewidth )
|
|
Call zinc->itemcget ( -mask )
|
|
Call zinc->itemcget ( -overstriked )
|
|
Call zinc->itemcget ( -pieslice )
|
|
Call zinc->itemcget ( -position )
|
|
Call zinc->itemcget ( -priority )
|
|
Call zinc->itemcget ( -relief )
|
|
Call zinc->itemcget ( -sensitive )
|
|
Call zinc->itemcget ( -smoothrelief )
|
|
Call zinc->itemcget ( -spacing )
|
|
Call zinc->itemcget ( -startangle )
|
|
Call zinc->itemcget ( -text )
|
|
Call zinc->itemcget ( -tile )
|
|
Get current transform matrix
|
|
Call zinc->itemcget ( -underlined )
|
|
Call zinc->itemcget ( -visible )
|
|
Call zinc->itemcget ( -width )
|
|
Multiply current transform by a matrix
|
|
Suppress an item
|
|
Reset all transformations associated with the item
|
|
Rotate an item
|
|
Rotate an item
|
|
Rotate an item
|
|
Rotate an item
|
|
Scale an item using a specified center
|
|
Scale an item
|
|
Call zinc->itemconfigure ( -alignment )
|
|
Call zinc->itemconfigure ( -alpha )
|
|
Call zinc->itemconfigure ( -anchor )
|
|
Call zinc->itemconfigure ( -atomic )
|
|
Call zinc->itemconfigure ( -capstyle )
|
|
Call zinc->itemconfigure ( -clip )
|
|
Call zinc->itemconfigure ( -closed )
|
|
Call zinc->itemconfigure ( -color )
|
|
Call zinc->itemconfigure ( -composealpha )
|
|
Call zinc->itemconfigure ( -composerotation )
|
|
Call zinc->itemconfigure ( -composescale )
|
|
Call zinc->itemconfigure ( -connecteditem )
|
|
Call zinc->itemconfigure ( -connectionanchor )
|
|
Call zinc->itemconfigure ( -extent )
|
|
Call zinc->itemconfigure ( -fillcolor )
|
|
Call zinc->itemconfigure ( -filled )
|
|
Call zinc->itemconfigure ( -fillpattern )
|
|
Call zinc->itemconfigure ( -fillrule )
|
|
Call zinc->itemconfigure ( -firstend )
|
|
Call zinc->itemconfigure ( -font )
|
|
Call zinc->itemconfigure ( -image )
|
|
Call zinc->itemconfigure ( -joinstyle )
|
|
Call zinc->itemconfigure ( -lastend )
|
|
Call zinc->itemconfigure ( -linecolor )
|
|
Call zinc->itemconfigure ( -linepattern )
|
|
Call zinc->itemconfigure ( -linestyle )
|
|
Call zinc->itemconfigure ( -linewidth )
|
|
Call zinc->itemconfigure ( -mask )
|
|
Call zinc->itemconfigure ( -overstriked )
|
|
Call zinc->itemconfigure ( -pieslice )
|
|
Call zinc->itemconfigure ( -position )
|
|
Call zinc->itemconfigure ( -priority )
|
|
Call zinc->itemconfigure ( -relief )
|
|
Call zinc->itemconfigure ( -sensitive )
|
|
Call zinc->itemconfigure ( -smoothrelief )
|
|
Call zinc->itemconfigure ( -spacing )
|
|
Call zinc->itemconfigure ( -startangle )
|
|
Call zinc->itemconfigure ( -text )
|
|
Call zinc->itemconfigure ( -tile )
|
|
Replace current transform by a matrix
|
|
Call zinc->itemconfigure ( -underlined )
|
|
Call zinc->itemconfigure ( -visible )
|
|
Call zinc->itemconfigure ( -width )
|
|
Skew an item
|
|
Skew an item horizontaly
|
|
Skew an item verticaly
|
|
Translate the item
|
|
Translate the item
|
|
Annulate a binding
|
|
Loads the zinc library and initialize tcl and tk
|
|
Reorder items to lower one
|
|
Reorder items to lower one
|
|
Reorder items to raise one
|
|
Reorder items to raise one
|
|
Get the bounding box of an item in its parent group
|
|
Call zinc->configure ( -backcolor )
|
|
Call zinc->configure ( -borderwidth )
|
|
Call zinc->configure ( -font )
|
|
Call zinc->configure ( -forecolor )
|
|
Call zinc->configure ( -height )
|
|
Change window title
|
|
Call zinc->configure ( -width )
|
|
Return the type of an item
|
|
Annulate a binding
|
|
This is a inline because it is called frequently and needs to be optimized Use this to call the zinObjectCommand fuction. The call is made using the pre allocated table p1, it must contain Tcl_Obj thar are parameters to the zinObjectCommand function. A parameter indicate how many parameters are passed to the zinObjectCommand function.
|
|
This is inline because it is called frequently and needs to be optimized Use this when you need to call a function that can return a TCL error code.
|
|
Run tk mainloop and returns when there is no more Tk window |
|
|
|
the command associated with bind
|
|
the command associated with font
|
|
the command associated with fous
|
|
the id of this object
|
|
the command associated with image
|
|
the tcl interpreter
|
|
the command associated with this object
|
|
table of pointeur use for parameters
|
|
table of pointeur use for parameters
|
|
a pool of tclobj ready to be used
|
|
name of the binding callback
|
|
the zinc object itself
|
|
the window which contains the widget
|
|
count to create unique ids
|
|
the znCount at creation time
|