diff options
-rw-r--r-- | generic/Item.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/Item.h b/generic/Item.h index d5b3eb0..68e7466 100644 --- a/generic/Item.h +++ b/generic/Item.h @@ -36,6 +36,7 @@ #include "List.h" #include <X11/Xlib.h> +#include <libart_lgpl/libart.h> #define DEFAULT_TRACK_PRIORITY 5 @@ -149,6 +150,7 @@ typedef int (*ItemQueryMethod)(Item item, int argc, Tcl_Obj *CONST args[]); typedef void (*ItemCloneMethod)(Item item); typedef void (*ItemDestroyMethod)(Item item); typedef void (*ItemDrawMethod)(Item item); +typedef void (*ItemRenderMethod)(Item item); typedef void (*ItemComputeCoordinatesMethod)(Item item, ZnBool force); typedef int (*ItemToAreaMethod)(Item item, ZnBBox *area, Tk_Uid tag_uid, int enclosed, ZnBool report); @@ -200,6 +202,7 @@ typedef struct _ItemClassStruct { ItemComputeCoordinatesMethod ComputeCoordinates; ItemToAreaMethod ToArea; ItemDrawMethod Draw; + ItemRenderMethod Render; ItemIsSensitiveMethod IsSensitive; ItemPickMethod Pick; ItemPickVertexMethod PickVertex; @@ -267,6 +270,7 @@ extern struct _ITEM_P { void (*CloneFields)(FieldSet field_set); void (*FreeFields)(FieldSet field_set); void (*DrawFields)(FieldSet field_set); + void (*RenderFields)(FieldSet field_set); int (*FieldsToArea)(FieldSet field_set, ZnBBox *area); ZnBool (*IsFieldSensitive)(FieldSet field_set, int part); double (*FieldsPick)(FieldSet field_set, ZnPoint *p, int *part); @@ -287,6 +291,8 @@ extern struct _ITEM_P { void (*PopClip)(struct _WidgetInfo *wi, ZnBool set_gc); ZnBool (*CurrentClip)(struct _WidgetInfo *wi, Region *reg, ZnBBox **clip_box, ZnBool *simple); + void (*RenderSVP)(struct _WidgetInfo *wi, ArtSVP *svp, int r, int g, + int b, int a, int tile_x, int tile_y, ArtPixBuf *tile); } ITEM_P; |