summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-04-08 17:51:31 (GMT)
committerjoye <joye>2014-04-08 17:51:31 (GMT)
commit48bc17d9aacca05c5ea150a487356d8f1d5f222f (patch)
treed8b3024ee976139a64dda130bbc7e8ddcb928ffa /src
parent75114fdca0a8c1ec5f10c102c62aca9631cb9d75 (diff)
downloadblt-48bc17d9aacca05c5ea150a487356d8f1d5f222f.zip
blt-48bc17d9aacca05c5ea150a487356d8f1d5f222f.tar.gz
blt-48bc17d9aacca05c5ea150a487356d8f1d5f222f.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrLegd.h137
1 files changed, 48 insertions, 89 deletions
diff --git a/src/bltGrLegd.h b/src/bltGrLegd.h
index 03b5e61..89af198 100644
--- a/src/bltGrLegd.h
+++ b/src/bltGrLegd.h
@@ -61,115 +61,74 @@ typedef enum {
struct _Legend {
Tk_OptionTable optionTable;
unsigned int flags;
- ClassId classId; /* Type: Element or Marker. */
-
- int nEntries; /* Number of element entries in
- * table. */
- short int nColumns, nRows; /* Number of columns and rows in
- * legend */
- short int width, height; /* Dimensions of the legend */
- short int entryWidth, entryHeight;
-
+ ClassId classId;
+ int nEntries;
+ int nColumns, nRows;
+ int width;
+ int height;
+ int entryWidth, entryHeight;
int site;
- short int xReq, yReq; /* User-requested site of legend, not
- * the final actual position. Used in
- * conjunction with the anchor below
- * to determine location of the
- * legend. */
-
- Tk_Anchor anchor; /* Anchor of legend. Used to interpret
- * the positioning point of the legend
- * in the graph*/
-
- int x, y; /* Computed origin of legend. */
-
+ int xReq;
+ int yReq;
+ Tk_Anchor anchor;
+ int x;
+ int y;
Graph* graphPtr;
- Tcl_Command cmdToken; /* Token for graph's widget command. */
- int reqColumns, reqRows;
-
- int ixPad, iyPad; /* # of pixels interior padding around
- * legend entries */
- int xPad, yPad; /* # of pixels padding to exterior of
- * legend */
- Tk_Window tkwin; /* If non-NULL, external window to draw
- * legend. */
+ Tcl_Command cmdToken;
+ int reqColumns;
+ int reqRows;
+ int ixPad;
+ int iyPad;
+ int xPad;
+ int yPad;
+ Tk_Window tkwin;
TextStyle style;
-
- int maxSymSize; /* Size of largest symbol to be
- * displayed. Used to calculate size
- * of legend */
+ int maxSymSize;
XColor* fgColor;
- Tk_3DBorder activeBg; /* Active legend entry background
- * color. */
+ Tk_3DBorder activeBg;
XColor* activeFgColor;
- int activeRelief; /* 3-D effect on active entry. */
- int entryBW; /* Border width around each entry in
- * legend. */
- Tk_3DBorder normalBg; /* 3-D effect of legend. */
- int borderWidth; /* Width of legend 3-D border */
- int relief; /* 3-d effect of border around the
- * legend: TK_RELIEF_RAISED etc. */
-
+ int activeRelief;
+ int entryBW;
+ Tk_3DBorder normalBg;
+ int borderWidth;
+ int relief;
Blt_BindTable bindTable;
-
int selRelief;
int selBW;
-
- XColor* selInFocusFgColor; /* Text color of a selected entry. */
+ XColor* selInFocusFgColor;
XColor* selOutFocusFgColor;
-
Tk_3DBorder selInFocusBg;
Tk_3DBorder selOutFocusBg;
-
XColor* focusColor;
- Blt_Dashes focusDashes; /* Dash on-off value. */
- GC focusGC; /* Graphics context for the active
- * label. */
-
+ Blt_Dashes focusDashes;
+ GC focusGC;
const char *takeFocus;
- int focus; /* Position of the focus entry. */
-
- int cursorX, cursorY; /* Position of the insertion cursor in
- * the textbox window. */
- short int cursorWidth; /* Size of the insertion cursor
- * symbol. */
+ int focus;
+ int cursorX;
+ int cursorY;
+ short int cursorWidth;
short int cursorHeight;
- Element *focusPtr; /* Element that currently has the
- * focus. If NULL, no legend entry has
- * the focus. */
- Element *selAnchorPtr; /* Fixed end of selection. Used to
- * extend the selection while
- * maintaining the other end of the
- * selection. */
+ Element *focusPtr;
+ Element *selAnchorPtr;
Element *selMarkPtr;
- Element *selFirstPtr; /* First element selected in current
- * pick. */
- Element *selLastPtr; /* Last element selected in current
- * pick. */
+ Element *selFirstPtr;
+ Element *selLastPtr;
int hide;
int raised;
int exportSelection;
int active;
- int cursorOn; /* Indicates if the cursor is
- * displayed. */
- int onTime, offTime; /* Time in milliseconds to wait before
- * changing the cursor from off-to-on
- * and on-to-off. Setting offTime to 0
- * makes the * cursor steady. */
- Tcl_TimerToken timerToken; /* Handle for a timer event called
- * periodically to blink the cursor. */
- const char *selectCmd; /* TCL script that's invoked whenever
- * the selection changes. */
- SelectMode selectMode; /* Mode of selection: single or
- * multiple. */
- Tcl_HashTable selectTable; /* Table of selected elements. Used to
- * quickly determine whether an element
- * is selected. */
- Blt_Chain selected; /* List of selected elements. */
-
+ int cursorOn;
+ int onTime;
+ int offTime;
+ Tcl_TimerToken timerToken;
+ const char *selectCmd;
+ SelectMode selectMode;
+ Tcl_HashTable selectTable;
+ Blt_Chain selected;
const char *title;
- unsigned int titleWidth, titleHeight;
- TextStyle titleStyle; /* Legend title attributes */
+ unsigned int titleWidth;
+ unsigned int titleHeight;
+ TextStyle titleStyle;
};
extern int Blt_CreateLegend(Graph *graphPtr);