summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-02-12 16:59:41 (GMT)
committerjoye <joye>2014-02-12 16:59:41 (GMT)
commit692655975623c099ae18e463c6ff2e386c2bc18c (patch)
treeafb042b69e6eee27f7b99488519af93a11a1dcbf /src
parentb6ceb4fad7349af3398c1d076221662aa05ede47 (diff)
downloadblt-692655975623c099ae18e463c6ff2e386c2bc18c.zip
blt-692655975623c099ae18e463c6ff2e386c2bc18c.tar.gz
blt-692655975623c099ae18e463c6ff2e386c2bc18c.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrLegd.C7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index 1bf0f6e..bd7aea7 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -158,6 +158,7 @@ struct _Legend {
Element *selLastPtr; /* Last element selected in current
* pick. */
int hide;
+ int raised;
int exportSelection;
int active;
int cursorOn; /* Indicates if the cursor is
@@ -201,6 +202,7 @@ struct _Legend {
#define DEF_LEGEND_PADX "1"
#define DEF_LEGEND_PADY "1"
#define DEF_LEGEND_POSITION "rightmargin"
+#define DEF_LEGEND_RAISED "no"
#define DEF_LEGEND_RELIEF "flat"
#define DEF_LEGEND_ROWS "0"
#define DEF_LEGEND_SELECTBACKGROUND skyblue4
@@ -421,6 +423,9 @@ static Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_CUSTOM, "-position", "position", "Position",
DEF_LEGEND_POSITION,
-1, 0, 0, &positionObjOption, 0},
+ {TK_OPTION_BOOLEAN, "-raised", "raised", "Raised",
+ DEF_LEGEND_RAISED,
+ -1, Tk_Offset(Legend, raised), 0, NULL, 0},
{TK_OPTION_RELIEF, "-relief", "relief", "Relief",
DEF_LEGEND_RELIEF,
-1, Tk_Offset(Legend, relief), 0, NULL, 0},
@@ -2280,7 +2285,7 @@ int Blt_Legend_IsHidden(Graph *graphPtr)
int Blt_Legend_IsRaised(Graph *graphPtr)
{
- return 0;
+ return (graphPtr->legend->raised);
}
int Blt_Legend_X(Graph *graphPtr)