aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/WidgetInfo.h')
-rw-r--r--generic/WidgetInfo.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 3220611..51e957b 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -1,5 +1,5 @@
/*
- * WidgetInfo.h -- Radar Widget record.
+ * WidgetInfo.h -- Zinc Widget record.
*
* Authors : Patrick Lecoanet.
* Creation date : Mon Feb 1 12:13:24 1999
@@ -52,13 +52,13 @@
typedef struct _WidgetInfo {
Tcl_Interp *interp; /* Interpreter associated with widget. */
- Tcl_Command cmd; /* Token for radar widget command. */
+ Tcl_Command cmd; /* Token for zinc widget command. */
Tcl_HashTable *tag_table; /* Hash table for object tags. */
Tcl_HashTable *id_table; /* Hash table for object ids. */
Tcl_HashTable *t_table; /* Hash table for transformations. */
unsigned long obj_id; /* Id for the next new object. */
Tk_BindingTable binding_table; /* Table of all bindings currently defined
- * for this radar. NULL means that no
+ * for this widget. NULL means that no
* bindings exist, so the table hasn't been
* created. Each "object" used for this
* table is either a Tk_Uid for a tag or
@@ -72,9 +72,9 @@ typedef struct _WidgetInfo {
int new_part;
XEvent pick_event; /* Event used to forge fake events and to do
* repicks. */
- RadarBool update_pending; /* True means there is a pending graphic
+ ZnBool update_pending; /* True means there is a pending graphic
* update. */
- RadarBBox exposed_area; /* Window area that need to be rexposed.
+ ZnBBox exposed_area; /* Window area that need to be rexposed.
* It is distinct from redraw_area which
* is updated when items are changed. */
Pixmap alpha_stipples[NUM_ALPHA_STEPS];
@@ -90,7 +90,7 @@ typedef struct _WidgetInfo {
/* Tracks global resources */
int track_managed_history_size; /* Size of history for tracks */
- RadarBool track_manage_history; /* Tell if the tracks manage their */
+ ZnBool track_manage_history; /* Tell if the tracks manage their */
/* histories. */
int speed_vector_length; /* How long (in time) are speedvectors*/
#ifdef OM
@@ -99,55 +99,55 @@ typedef struct _WidgetInfo {
#endif
/* Maps global resources */
- RadarFont map_text_font; /* Font for texts in Map items */
+ ZnFont map_text_font; /* Font for texts in Map items */
Pixmap map_distance_symbol;
/* display distance marks along Map */
/* lines. */
/* Transformer */
- RadarTransfo *current_transfo;
- RadarList transfo_stack;
+ ZnTransfo *current_transfo;
+ ZnList transfo_stack;
ClipState *current_clip;
- RadarList clip_stack;
+ ZnList clip_stack;
/* Others */
- RadarColor fore_color; /* Default foreground used in new items */
- RadarColor back_color; /* Color of the radar background. */
- RadarColor bbox_color; /* Color used to draw bboxes (debug). */
- Cursor cursor; /* Cursor displayed in radar window. */
- RadarBool draw_bboxes; /* Draw item's bboxes (debug). */
+ ZnColor fore_color; /* Default foreground used in new items */
+ ZnColor back_color; /* Color of the widget background. */
+ ZnColor bbox_color; /* Color used to draw bboxes (debug). */
+ Cursor cursor; /* Cursor displayed in zinc window. */
+ ZnBool draw_bboxes; /* Draw item's bboxes (debug). */
int pick_aperture; /* size of pick aperture in pixels */
- RadarFont font; /* Default font used in new items */
- RadarBool reshape; /* Use the Shape Extension on the window.*/
- RadarBool full_reshape; /* Use it on the top level window. */
+ ZnFont font; /* Default font used in new items */
+ ZnBool reshape; /* Use the Shape Extension on the window.*/
+ ZnBool full_reshape; /* Use it on the top level window. */
char *tile_name;
- RadarImage tile;
+ ZnImage tile;
- /* Radar private resources */
+ /* Zinc private resources */
int width; /* Actual window dimension. */
int height;
/* Graphic variables */
Display *dpy; /* The display of the widget window. */
Screen *screen;
- RadarWindow win; /* The window of the widget. */
- RadarBool realized;
+ ZnWindow win; /* The window of the widget. */
+ ZnBool realized;
Pixmap draw_buffer; /* Pixmap for double buffering */
- RadarBBox damaged_area; /* The current damaged rectangle */
+ ZnBBox damaged_area; /* The current damaged rectangle */
Region damaged_region;
GC gc;
- RadarBool has_x_shm; /* Tell if the SHM X11 ext is avail. */
- RadarBool has_x_shape; /* Tell if she Shape X ext. is avail. */
- RadarBool has_x_input; /* Tell if she X input ext. is avail. */
+ ZnBool has_x_shm; /* Tell if the SHM X11 ext is avail. */
+ ZnBool has_x_shape; /* Tell if she Shape X ext. is avail. */
+ ZnBool has_x_input; /* Tell if she X input ext. is avail. */
int events_flags; /* NEED_REPICK et al */
Window real_top;
Item top_group;
- RadarList work_item_list; /* Temporary item list used in internal
+ ZnList work_item_list; /* Temporary item list used in internal
* works. */
- RadarList work_pts; /* Temporary point list. */
+ ZnList work_pts; /* Temporary point list. */
/* Perf measurement variables. */
- RadarBool monitoring;
+ ZnBool monitoring;
int num_updates;
int last_time;
int total_time;