Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Zinc Class Reference

#include <Zinc.hpp>

List of all members.


Detailed Description

This class contains a zinc widget and members to create and modify items


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)
ZincFontgetFont ()
void bbox (ZincItem *item, double bbox[4])
void relativeBbox (ZincItem *item, double bbox[4])
void chggroup (ZincItem *item, ZincItem *parentGroup)
ZincItemclone (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)
ZincItemgroup (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)
ZincItemcreateTag (String tag)
void itemRemove (ZincItem *item)
ZincItemitemCreateGroup (ZincItem *parentGroup)
ZincItemitemCreateRectangle (ZincItem *parentGroup, double x, double y, double width, double height)
ZincItemitemCreateArc (ZincItem *parentGroup, double x, double y, double width, double height)
ZincItemitemCreateText (ZincItem *parentGroup)
ZincItemitemCreateCurve (ZincItem *parentGroup, ZincPath *path)
ZincItemitemCreateIcon (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)
ZincBitmapitemGetFillpattern (ZincItem *item)
void itemSetLinecolor (ZincItem *item, String value)
String itemGetLinecolor (ZincItem *item)
void itemSetLinepattern (ZincItem *item, ZincBitmap *value)
ZincBitmapitemGetLinepattern (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)
ZincBitmapitemGetTile (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)
ZincItemitemGetClip (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)
ZincItemitemGetConnecteditem (ZincItem *item)
void itemSetConnectionanchor (ZincItem *item, anchor value)
anchor itemGetConnectionanchor (ZincItem *item)
void itemSetImage (ZincItem *item, ZincImage *value)
ZincImageitemGetImage (ZincItem *item)
void itemSetMask (ZincItem *item, ZincBitmap *value)
ZincBitmapitemGetMask (ZincItem *item)
void itemSetAlignment (ZincItem *item, alignment value)
alignment itemGetAlignment (ZincItem *item)
void itemSetFont (ZincItem *item, ZincFont *value)
ZincFontitemGetFont (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)
ZincImagecreateImageFromFile (String image)
ZincImagecreateImageFromData (String image)
ZincBitmapcreateBitmapFromFile (String image)
ZincBitmapcreateBitmapFromData (String image)
ZincBitmapcreateBitmapFromName (String image)
ZincImagecreateImageFromAGGBuffer (int width, int height, unsigned char *aggBuffer)
ZincFontcreateFont (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


Constructor & Destructor Documentation

Zinc::Zinc int  renderingMode  ) 
 

The public constructor

Parameters:
renderingMode ZINC_BACKEND_X11 or ZINC_BACKEND_OPENGL

Zinc::~Zinc  ) 
 

The public destructor


Member Function Documentation

void Zinc::addTag ZincItem item,
String  tag
 

Add a tag to an item

Parameters:
item the item to add tag to
tag a tag to add

void Zinc::bbox ZincItem item,
double  bbox[4]
 

Get the bounding box of an item

Parameters:
item the item to get bbox
bbox a table where we'll put the bounding box bbox[0] = x0, bbox[1] = y0, bbox[2] = xc, bbox[3] = yc

void Zinc::bind String  eventSpecification,
ZincWidgetCallback  callBack,
void *  userData,
bool  add = false
 

Bind a function to an event on the zinc widget

Parameters:
eventSpecification tcl style event specicication
callBack the function which will be called back
userData data we will give back to the callback when called
add false to replace existing bind or true to add

void Zinc::chggroup ZincItem item,
ZincItem parentGroup
 

Change the group of an item

Parameters:
item the item to move
parentGroup new group for the item

ZincItem * Zinc::clone ZincItem item  ) 
 

Clone an item

Parameters:
item the item to clone
Returns:
the cloned item

int Zinc::contour ZincItem item,
bool  add,
ZincPath contour
 

Set the contour of an item

Parameters:
item the item on which we set the contour
add true to add a path, false to remove
reference the new contour
Returns:
the number of contour

int Zinc::contour ZincItem item,
itemOperator  flag,
ZincItem reference
 

Set the contour of an item to the one of an other

Parameters:
item the item on which we set the contour
flag the operation to do on the contour
reference the item to set contour from
Returns:
the number of contour

int Zinc::contour ZincItem item  ) 
 

Get the number of contour of an item

Returns:
number of contour

void Zinc::coords ZincItem item,
ZincPath contour,
bool  add,
int  contourIndex = -1,
int  coordIndex = -1
 

Set or modify the coordinates of an item

Parameters:
item the item to modify
contour new coords for the item
add true to add coords, false to replace
contourIndex the contour do modify
coordIndex the coordinate to modify (WARNING, path must be one point if the is not the default)

void Zinc::coordsRemove ZincItem item,
int  coordIndex,
int  contourIndex = -1
 

Remove coords of an item

Parameters:
item the item to modify
coordIndex the coordinate to rmove
contourIndex the contour on which we remove

ZincBitmap * Zinc::createBitmapFromData String  image  ) 
 

Create a bitmap object base64 data

Parameters:
image the bitmap reference (a base64 String or binary data)

ZincBitmap * Zinc::createBitmapFromFile String  image  ) 
 

Create a bitmap object from a file

Parameters:
image the bitmap reference (a file name)

ZincBitmap * Zinc::createBitmapFromName String  image  ) 
 

Create a bitmap object using a predefined name

Parameters:
image the bitmap reference (a name)

ZincFont * Zinc::createFont String  family,
int  size,
int  bold = -1,
int  italic = -1,
int  underline = -1,
int  overstrike = -1
 

Create a font object

Parameters:
family the font mamily
size if a positive number, it is in points, if a negative number, its absolute value is a size in pixels.
bold 1 for a bold font, 0 for a normal font, -1 for unspecified
italic 1 an italic font, 0 for a roman font, -1 for unspecified
underline 1 for an underlined, 0 for a normal font, -1 for unspecified
overstrike 1 for an overstriked font, 0 for a normal font, -1 for unspecified

ZincImage * Zinc::createImageFromAGGBuffer int  width,
int  height,
unsigned char *  aggBuffer
 

Create an image object

Parameters:
width Width of image
height Height of image
aggBuffer An AGG buffer

ZincImage * Zinc::createImageFromData String  image  ) 
 

Create an image object using base64 data

Parameters:
image the image reference (a base64 String or binary data)

ZincImage * Zinc::createImageFromFile String  image  ) 
 

Create an image object from a file

Parameters:
image the image reference (a file name)

ZincItem * Zinc::createTag String  tag  ) 
 

Create a Zinc Tag that can be used in place of any item for zinc functions that must be called using tagOrId

Parameters:
tag the text of the tag
Returns:
a tag item

void Zinc::dTag ZincItem item,
String  tag = String("")
 

Remove a tag from an item

Parameters:
item the item to remove tag from
tag a tag to remove (nothing to remove all tags)

void Zinc::focus ZincItem item  ) 
 

Set the focus to an item

Parameters:
item the item to set the focus to

String Zinc::getBackcolor  ) 
 

Call zinc->cget ( -backcolor )

Returns:
backcolor value

int Zinc::getBorderwidth  ) 
 

Call zinc->cget ( -borderwidth )

Returns:
borderwidth value

ZincFont * Zinc::getFont  ) 
 

Call zinc->cget ( -font )

Returns:
font value

int Zinc::getFontAscent ZincFont font  ) 
 

Get font ascent

Parameters:
font the font
Returns:
the font ascent

String Zinc::getForecolor  ) 
 

Call zinc->cget ( -forecolor )

Returns:
forecolor value

int Zinc::getHeight  ) 
 

Call zinc->cget ( -height )

Returns:
height value

int Zinc::getImageHeight ZincImage image  ) 
 

Get Image height

Parameters:
ZincImage the image to get height from
Returns:
the height of the image

int Zinc::getImageWidth ZincImage image  ) 
 

Get Image width

Parameters:
ZincImage the image to get width from
Returns:
the width of the image

int Zinc::getTags ZincItem item,
String ***  tagList
 

List all tags of an item It's up to the caller to delete the resulting table and strings

Parameters:
item the item to list tag from
lagList a pointer to a table of String containing tags
Returns:
the number of tags

int Zinc::getWidth  ) 
 

Call zinc->cget ( -width )

Returns:
width value

void Zinc::gname String  gradient,
String  gname
 

Create a named gradient

Parameters:
gradient a gradient
gname a gradient name

ZincItem * Zinc::group ZincItem item  ) 
 

Retreive the group of an item

Parameters:
item the item to get the group from
Returns:
the group

bool Zinc::isGname String  gname  ) 
 

Tell if the name is a gradient name

Parameters:
gname a gradient name
Returns:
true if the name is a gradient name, false otherwise

void Zinc::itemBind ZincItem item,
String  eventSpecification,
ZincItemCallback  callBack,
void *  userData,
bool  add = false
 

Bind a function to an event on an item

Parameters:
item the item on which to bind
eventSpecification tcl style event specicication
callBack the function which will be called back
userData data we will give back to the callback when called
add false to replace existing bind or true to add

ZincItem * Zinc::itemCreateArc ZincItem parentGroup,
double  x,
double  y,
double  width,
double  height
 

Create an arc item

Parameters:
parentGroup group where we'll put it
x y width height the coordinates of the new rectangle
Returns:
the arc item

ZincItem * Zinc::itemCreateCurve ZincItem parentGroup,
ZincPath path
 

Create a curve item

Parameters:
parentGroup group where we'll put it
path the path to display
Returns:
the curve item

ZincItem * Zinc::itemCreateGroup ZincItem parentGroup  ) 
 

Create a group item

Parameters:
parentGroup group where we'll put the new group, if NULL we create in the defaults group
Returns:
the group item

ZincItem * Zinc::itemCreateIcon ZincItem parentGroup,
ZincImage image
 

Create an icon item

Parameters:
parentGroup group where we'll put it
image a zincImage to display
Returns:
the icon item

ZincItem * Zinc::itemCreateRectangle ZincItem parentGroup,
double  x,
double  y,
double  width,
double  height
 

Create a rectangle item

Parameters:
parentGroup group where we'll put it
x y width height the coordinates of the new rectangle
Returns:
the rectangle item

ZincItem * Zinc::itemCreateText ZincItem parentGroup  ) 
 

Create a text item

Parameters:
parentGroup group where we'll put it
Returns:
the text item

alignment Zinc::itemGetAlignment ZincItem item  ) 
 

Call zinc->itemcget ( -alignment )

Parameters:
item the item to get alignment from
Returns:
alignment value

unsigned int Zinc::itemGetAlpha ZincItem item  ) 
 

Call zinc->itemcget ( -alpha )

Parameters:
item the item to get alpha from
Returns:
alpha value

anchor Zinc::itemGetAnchor ZincItem item  ) 
 

Call zinc->itemcget ( -anchor )

Parameters:
item the item to get anchor from
Returns:
anchor value

bool Zinc::itemGetAtomic ZincItem item  ) 
 

Call zinc->itemcget ( -atomic )

Parameters:
item the item to get atomic from
Returns:
atomic value

capStyle Zinc::itemGetCapstyle ZincItem item  ) 
 

Call zinc->itemcget ( -capstyle )

Parameters:
item the item to get capstyle from
Returns:
capstyle value

ZincItem * Zinc::itemGetClip ZincItem item  ) 
 

Call zinc->itemcget ( -clip )

Parameters:
item the item to get clip from
Returns:
clip value

bool Zinc::itemGetClosed ZincItem item  ) 
 

Call zinc->itemcget ( -closed )

Parameters:
item the item to get closed from
Returns:
closed value

String Zinc::itemGetColor ZincItem item  ) 
 

Call zinc->itemcget ( -color )

Parameters:
item the item to get color from
Returns:
color value

bool Zinc::itemGetComposealpha ZincItem item  ) 
 

Call zinc->itemcget ( -composealpha )

Parameters:
item the item to get composealpha from
Returns:
composealpha value

bool Zinc::itemGetComposerotation ZincItem item  ) 
 

Call zinc->itemcget ( -composerotation )

Parameters:
item the item to get composerotation from
Returns:
composerotation value

bool Zinc::itemGetComposescale ZincItem item  ) 
 

Call zinc->itemcget ( -composescale )

Parameters:
item the item to get composescale from
Returns:
composescale value

ZincItem * Zinc::itemGetConnecteditem ZincItem item  ) 
 

Call zinc->itemcget ( -connecteditem )

Parameters:
item the item to get connecteditem from
Returns:
connecteditem value

anchor Zinc::itemGetConnectionanchor ZincItem item  ) 
 

Call zinc->itemcget ( -connectionanchor )

Parameters:
item the item to get connectionanchor from
Returns:
connectionanchor value

unsigned int Zinc::itemGetExtent ZincItem item  ) 
 

Call zinc->itemcget ( -extent )

Parameters:
item the item to get extent from
Returns:
extent value

String Zinc::itemGetFillcolor ZincItem item  ) 
 

Call zinc->itemcget ( -fillcolor )

Parameters:
item the item to get fillcolor from
Returns:
fillcolor value

bool Zinc::itemGetFilled ZincItem item  ) 
 

Call zinc->itemcget ( -filled )

Parameters:
item the item to get filled from
Returns:
filled value

ZincBitmap * Zinc::itemGetFillpattern ZincItem item  ) 
 

Call zinc->itemcget ( -fillpattern )

Parameters:
item the item to get fillpattern from
Returns:
fillpattern value

fillRule Zinc::itemGetFillrule ZincItem item  ) 
 

Call zinc->itemcget ( -fillrule )

Parameters:
item the item to get fillrule from
Returns:
fillrule value

void Zinc::itemGetFirstend ZincItem item,
double *  a,
double *  b,
double *  c
 

Call zinc->itemcget ( -firstend )

Parameters:
item the item to get firstend from
a,b,c values used to sedwhere we'll put end

ZincFont * Zinc::itemGetFont ZincItem item  ) 
 

Call zinc->itemcget ( -font )

Parameters:
item the item to get font from
Returns:
font value

ZincImage * Zinc::itemGetImage ZincItem item  ) 
 

Call zinc->itemcget ( -image )

Parameters:
item the item to get image from
Returns:
image value

joinStyle Zinc::itemGetJoinstyle ZincItem item  ) 
 

Call zinc->itemcget ( -joinstyle )

Parameters:
item the item to get joinstyle from
Returns:
joinstyle value

void Zinc::itemGetLastend ZincItem item,
double *  a,
double *  b,
double *  c
 

Call zinc->itemcget ( -lastend )

Parameters:
item the item to get lastend from
a,b,c values used to sedwhere we'll put end

String Zinc::itemGetLinecolor ZincItem item  ) 
 

Call zinc->itemcget ( -linecolor )

Parameters:
item the item to get linecolor from
Returns:
linecolor value

ZincBitmap * Zinc::itemGetLinepattern ZincItem item  ) 
 

Call zinc->itemcget ( -linepattern )

Parameters:
item the item to get linepattern from
Returns:
linepattern value

lineStyle Zinc::itemGetLinestyle ZincItem item  ) 
 

Call zinc->itemcget ( -linestyle )

Parameters:
item the item to get linestyle from
Returns:
linestyle value

double Zinc::itemGetLinewidth ZincItem item  ) 
 

Call zinc->itemcget ( -linewidth )

Parameters:
item the item to get linewidth from
Returns:
linewidth value

ZincBitmap * Zinc::itemGetMask ZincItem item  ) 
 

Call zinc->itemcget ( -mask )

Parameters:
item the item to get mask from
Returns:
mask value

bool Zinc::itemGetOverstriked ZincItem item  ) 
 

Call zinc->itemcget ( -overstriked )

Parameters:
item the item to get overstriked from
Returns:
overstriked value

bool Zinc::itemGetPieslice ZincItem item  ) 
 

Call zinc->itemcget ( -pieslice )

Parameters:
item the item to get pieslice from
Returns:
pieslice value

void Zinc::itemGetPosition ZincItem item,
double *  x,
double *  y
 

Call zinc->itemcget ( -position )

Parameters:
item the item to get position from
x,y position

unsigned int Zinc::itemGetPriority ZincItem item  ) 
 

Call zinc->itemcget ( -priority )

Parameters:
item the item to get priority from
Returns:
priority value

relief Zinc::itemGetRelief ZincItem item  ) 
 

Call zinc->itemcget ( -relief )

Parameters:
item the item to get relief from
Returns:
relief value

bool Zinc::itemGetSensitive ZincItem item  ) 
 

Call zinc->itemcget ( -sensitive )

Parameters:
item the item to get sensitive from
Returns:
sensitive value

bool Zinc::itemGetSmoothrelief ZincItem item  ) 
 

Call zinc->itemcget ( -smoothrelief )

Parameters:
item the item to get smoothrelief from
Returns:
smoothrelief value

short Zinc::itemGetSpacing ZincItem item  ) 
 

Call zinc->itemcget ( -spacing )

Parameters:
item the item to get spacing from
Returns:
spacing value

unsigned int Zinc::itemGetStartangle ZincItem item  ) 
 

Call zinc->itemcget ( -startangle )

Parameters:
item the item to get startangle from
Returns:
startangle value

String Zinc::itemGetText ZincItem item  ) 
 

Call zinc->itemcget ( -text )

Parameters:
item the item to get text from
Returns:
text value

ZincBitmap * Zinc::itemGetTile ZincItem item  ) 
 

Call zinc->itemcget ( -tile )

Parameters:
item the item to get tile from
Returns:
tile value

void Zinc::itemGetTransformation ZincItem item,
double *  a,
double *  b,
double *  c,
double *  d,
double *  e,
double *  f
 

Get current transform matrix

Parameters:
item the item to which we apply the transform
a,b,c,d,e,f places where we'll put the transform matrix

bool Zinc::itemGetUnderlined ZincItem item  ) 
 

Call zinc->itemcget ( -underlined )

Parameters:
item the item to get underlined from
Returns:
underlined value

bool Zinc::itemGetVisible ZincItem item  ) 
 

Call zinc->itemcget ( -visible )

Parameters:
item the item to get visible from
Returns:
visible value

unsigned short Zinc::itemGetWidth ZincItem item  ) 
 

Call zinc->itemcget ( -width )

Parameters:
item the item to get width from
Returns:
width value

void Zinc::itemMatrix ZincItem item,
double  a,
double  b,
double  c,
double  d,
double  e,
double  f
 

Multiply current transform by a matrix

Parameters:
item the item to which we apply the transform
a,b,c,d,e,f the new transform matrix

void Zinc::itemRemove ZincItem item  ) 
 

Suppress an item

Parameters:
item the item to suppress

void Zinc::itemResetTransformation ZincItem item  ) 
 

Reset all transformations associated with the item

Parameters:
item the item to which we apply the transform

void Zinc::itemRotate ZincItem item,
double  angle,
double  x,
double  y,
bool  degree
 

Rotate an item

Parameters:
item the item to which we apply the transform
angle the angle to rotate in radian
x y the center of the rotation
degree true for an angle in degree, false for an angle in radians

void Zinc::itemRotate ZincItem item,
double  angle,
bool  degree
 

Rotate an item

Parameters:
item the item to which we apply the transform
angle the angle to rotate
degree true for an angle in degree, false for an angle in radians

void Zinc::itemRotate ZincItem item,
double  angle,
double  x,
double  y
 

Rotate an item

Parameters:
item the item to which we apply the transform
angle the angle to rotate in radian
x y the center of the rotation

void Zinc::itemRotate ZincItem item,
double  angle
 

Rotate an item

Parameters:
item the item to which we apply the transform
angle the angle to rotate in radian

void Zinc::itemScale ZincItem item,
double  ax,
double  ay,
double  cx,
double  cy
 

Scale an item using a specified center

Parameters:
item the item to which we apply the transform
ax horizontal scale
ay vertical scale
cx cy center of the scale

void Zinc::itemScale ZincItem item,
double  ax,
double  ay
 

Scale an item

Parameters:
item the item to which we apply the transform
ax horizontal scale
ay vertical scale

void Zinc::itemSetAlignment ZincItem item,
alignment  value
 

Call zinc->itemconfigure ( -alignment )

Parameters:
item the item to configure
value the alignment to set

void Zinc::itemSetAlpha ZincItem item,
unsigned int  value
 

Call zinc->itemconfigure ( -alpha )

Parameters:
item the item to configure
value the alpha to set

void Zinc::itemSetAnchor ZincItem item,
anchor  value
 

Call zinc->itemconfigure ( -anchor )

Parameters:
item the item to configure
value the anchor to set

void Zinc::itemSetAtomic ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -atomic )

Parameters:
item the item to configure
value the atomic to set

void Zinc::itemSetCapstyle ZincItem item,
capStyle  value
 

Call zinc->itemconfigure ( -capstyle )

Parameters:
item the item to configure
value the capstyle to set

void Zinc::itemSetClip ZincItem item,
ZincItem value
 

Call zinc->itemconfigure ( -clip )

Parameters:
item the item to configure
value the clip to set

void Zinc::itemSetClosed ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -closed )

Parameters:
item the item to configure
value the closed to set

void Zinc::itemSetColor ZincItem item,
String  value
 

Call zinc->itemconfigure ( -color )

Parameters:
item the item to configure
value the color to set

void Zinc::itemSetComposealpha ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -composealpha )

Parameters:
item the item to configure
value the composealpha to set

void Zinc::itemSetComposerotation ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -composerotation )

Parameters:
item the item to configure
value the composerotation to set

void Zinc::itemSetComposescale ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -composescale )

Parameters:
item the item to configure
value the composescale to set

void Zinc::itemSetConnecteditem ZincItem item,
ZincItem value
 

Call zinc->itemconfigure ( -connecteditem )

Parameters:
item the item to configure
value the connecteditem to set

void Zinc::itemSetConnectionanchor ZincItem item,
anchor  value
 

Call zinc->itemconfigure ( -connectionanchor )

Parameters:
item the item to configure
value the connectionanchor to set

void Zinc::itemSetExtent ZincItem item,
unsigned int  value
 

Call zinc->itemconfigure ( -extent )

Parameters:
item the item to configure
value the extent to set

void Zinc::itemSetFillcolor ZincItem item,
String  value
 

Call zinc->itemconfigure ( -fillcolor )

Parameters:
item the item to configure
value the fillcolor to set

void Zinc::itemSetFilled ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -filled )

Parameters:
item the item to configure
value the filled to set

void Zinc::itemSetFillpattern ZincItem item,
ZincBitmap value
 

Call zinc->itemconfigure ( -fillpattern )

Parameters:
item the item to configure
value the fillpattern to set

void Zinc::itemSetFillrule ZincItem item,
fillRule  value
 

Call zinc->itemconfigure ( -fillrule )

Parameters:
item the item to configure
value the fillrule to set

void Zinc::itemSetFirstend ZincItem item,
double  a,
double  b,
double  c
 

Call zinc->itemconfigure ( -firstend )

Parameters:
item the item to set firstend to
a,b,c values used to set end

void Zinc::itemSetFont ZincItem item,
ZincFont value
 

Call zinc->itemconfigure ( -font )

Parameters:
item the item to configure
value the font to set

void Zinc::itemSetImage ZincItem item,
ZincImage value
 

Call zinc->itemconfigure ( -image )

Parameters:
item the item to configure
value the image to set

void Zinc::itemSetJoinstyle ZincItem item,
joinStyle  value
 

Call zinc->itemconfigure ( -joinstyle )

Parameters:
item the item to configure
value the joinstyle to set

void Zinc::itemSetLastend ZincItem item,
double  a,
double  b,
double  c
 

Call zinc->itemconfigure ( -lastend )

Parameters:
item the item to set lastend to
a,b,c values used to set end

void Zinc::itemSetLinecolor ZincItem item,
String  value
 

Call zinc->itemconfigure ( -linecolor )

Parameters:
item the item to configure
value the linecolor to set

void Zinc::itemSetLinepattern ZincItem item,
ZincBitmap value
 

Call zinc->itemconfigure ( -linepattern )

Parameters:
item the item to configure
value the linepattern to set

void Zinc::itemSetLinestyle ZincItem item,
lineStyle  value
 

Call zinc->itemconfigure ( -linestyle )

Parameters:
item the item to configure
value the linestyle to set

void Zinc::itemSetLinewidth ZincItem item,
double  value
 

Call zinc->itemconfigure ( -linewidth )

Parameters:
item the item to configure
value the linewidth to set

void Zinc::itemSetMask ZincItem item,
ZincBitmap value
 

Call zinc->itemconfigure ( -mask )

Parameters:
item the item to configure
value the mask to set

void Zinc::itemSetOverstriked ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -overstriked )

Parameters:
item the item to configure
value the overstriked to set

void Zinc::itemSetPieslice ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -pieslice )

Parameters:
item the item to configure
value the pieslice to set

void Zinc::itemSetPosition ZincItem item,
double  x,
double  y
 

Call zinc->itemconfigure ( -position )

Parameters:
item the item to get width fromset position to
x,y position

void Zinc::itemSetPriority ZincItem item,
unsigned int  value
 

Call zinc->itemconfigure ( -priority )

Parameters:
item the item to configure
value the priority to set

void Zinc::itemSetRelief ZincItem item,
relief  value
 

Call zinc->itemconfigure ( -relief )

Parameters:
item the item to configure
value the relief to set

void Zinc::itemSetSensitive ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -sensitive )

Parameters:
item the item to configure
value the sensitive to set

void Zinc::itemSetSmoothrelief ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -smoothrelief )

Parameters:
item the item to configure
value the smoothrelief to set

void Zinc::itemSetSpacing ZincItem item,
short  value
 

Call zinc->itemconfigure ( -spacing )

Parameters:
item the item to configure
value the spacing to set

void Zinc::itemSetStartangle ZincItem item,
unsigned int  value
 

Call zinc->itemconfigure ( -startangle )

Parameters:
item the item to configure
value the startangle to set

void Zinc::itemSetText ZincItem item,
String  value
 

Call zinc->itemconfigure ( -text )

Parameters:
item the item to configure
value the text to set

void Zinc::itemSetTile ZincItem item,
ZincBitmap value
 

Call zinc->itemconfigure ( -tile )

Parameters:
item the item to configure
value the tile to set

void Zinc::itemSetTransformation ZincItem item,
double  a,
double  b,
double  c,
double  d,
double  e,
double  f
 

Replace current transform by a matrix

Parameters:
item the item to which we apply the transform
a,b,c,d,e,f the new transform matrix

void Zinc::itemSetUnderlined ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -underlined )

Parameters:
item the item to configure
value the underlined to set

void Zinc::itemSetVisible ZincItem item,
bool  value
 

Call zinc->itemconfigure ( -visible )

Parameters:
item the item to configure
value the visible to set

void Zinc::itemSetWidth ZincItem item,
unsigned short  value
 

Call zinc->itemconfigure ( -width )

Parameters:
item the item to configure
value the width to set

void Zinc::itemSkew ZincItem item,
double  sx,
double  sy
 

Skew an item

Parameters:
item the item to which we apply the transform
sx horizontal skew
sy vertical skew

void Zinc::itemSkewX ZincItem item,
double  sx
 

Skew an item horizontaly

Parameters:
item the item to which we apply the transform
sx horizontal skew

void Zinc::itemSkewY ZincItem item,
double  sy
 

Skew an item verticaly

Parameters:
item the item to which we apply the transform
sy vertical skew

void Zinc::itemTranslate ZincItem item,
double  x,
double  y,
bool  absolute
 

Translate the item

Parameters:
item the item to which we apply the transform
x y translation vector
absolute true if the translation is absolute

void Zinc::itemTranslate ZincItem item,
double  dx,
double  dy
 

Translate the item

Parameters:
item the item to which we apply the transform
dx dy translation vector

void Zinc::itemUnbind ZincItem item,
String  eventSpecification
 

Annulate a binding

Parameters:
item the item on which to unbind
eventSpecification tcl style event specicication

void Zinc::loadZinc char *  argv0  )  throw (ZincException) [static]
 

Loads the zinc library and initialize tcl and tk

Parameters:
argv0 the name of the execytable as passed in argv[0]

void Zinc::lower ZincItem item,
ZincItem belowThis
 

Reorder items to lower one

Parameters:
item the item to lower
belowThis and item that will be over item

void Zinc::lower ZincItem item  ) 
 

Reorder items to lower one

Parameters:
item the item to lower

void Zinc::raise ZincItem item,
ZincItem aboveThis
 

Reorder items to raise one

Parameters:
item the item to raise
aboveThis an item that will be under item

void Zinc::raise ZincItem item  ) 
 

Reorder items to raise one

Parameters:
item the item to raise

void Zinc::relativeBbox ZincItem item,
double  bbox[4]
 

Get the bounding box of an item in its parent group

Parameters:
item the item to get bbox in its parent group
bbox a table where we'll put the bounding box bbox[0] = x0, bbox[1] = y0, bbox[2] = xc, bbox[3] = yc

void Zinc::setBackcolor String  value  ) 
 

Call zinc->configure ( -backcolor )

Parameters:
value the backcolor to set

void Zinc::setBorderwidth int  value  ) 
 

Call zinc->configure ( -borderwidth )

Parameters:
value the borderwidth to set

void Zinc::setFont ZincFont value  ) 
 

Call zinc->configure ( -font )

Parameters:
value the font to set

void Zinc::setForecolor String  value  ) 
 

Call zinc->configure ( -forecolor )

Parameters:
value the forecolor to set

void Zinc::setHeight int  value  ) 
 

Call zinc->configure ( -height )

Parameters:
value the height to set

void Zinc::setTitle String  title  ) 
 

Change window title

Parameters:
title the title string

void Zinc::setWidth int  value  ) 
 

Call zinc->configure ( -width )

Parameters:
value the width to set

itemType Zinc::type ZincItem item  ) 
 

Return the type of an item

Parameters:
item an item
Returns:
the type of the item

void Zinc::unbind String  eventSpecification  ) 
 

Annulate a binding

Parameters:
eventSpecification tcl style event specicication

void Zinc::z_command int  count,
char *  p_msg
throw (ZincException)
 

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.

Parameters:
count the number of parameters in p1
msg the error message to throw in case of error

void Zinc::z_tcl_call int  result,
char *  p_msg
throw (ZincException) [static]
 

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.

Parameters:
fct the full function call
msg the error message to throw in case of error

void Zinc::zincMainLoop  )  [static]
 

Run tk mainloop and returns when there is no more Tk window


Friends And Related Function Documentation

friend class ZincPath [friend]
 


Member Data Documentation

Tcl_CmdInfo Zinc::bndCmdInfo [static]
 

the command associated with bind

Tcl_CmdInfo Zinc::fntCmdInfo [static]
 

the command associated with font

Tcl_CmdInfo Zinc::focCmdInfo [static]
 

the command associated with fous

Tcl_Obj* Zinc::id
 

the id of this object

Tcl_CmdInfo Zinc::imgCmdInfo [static]
 

the command associated with image

Tcl_Interp * Zinc::interp [static]
 

the tcl interpreter

WidgetObjCmd Zinc::objCmd
 

the command associated with this object

Tcl_Obj * Zinc::p1 [static]
 

table of pointeur use for parameters

Tcl_Obj * Zinc::p2 [static]
 

table of pointeur use for parameters

Tcl_Obj * Zinc::pool [static]
 

a pool of tclobj ready to be used

String Zinc::tclCb
 

name of the binding callback

ClientData Zinc::wi
 

the zinc object itself

String Zinc::window
 

the window which contains the widget

int Zinc::znCount = 0 [static]
 

count to create unique ids

int Zinc::znId
 

the znCount at creation time


The documentation for this class was generated from the following files:
Generated on Mon Apr 18 17:40:45 2005 for IntuiKit by doxygen 1.3.3