diff options
author | joye <joye> | 2014-04-22 20:03:27 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-22 20:03:27 (GMT) |
commit | 9151d2e9af0fa1d6dd6000a792f37e34babf00bf (patch) | |
tree | a7d3db4916e4df52f630cf5d94c45c18e0d1ec94 /src/bltGrXAxisOp.C | |
parent | aabaad3e8de1dcbb7f64af59e864ef2638b06bf8 (diff) | |
download | blt-9151d2e9af0fa1d6dd6000a792f37e34babf00bf.zip blt-9151d2e9af0fa1d6dd6000a792f37e34babf00bf.tar.gz blt-9151d2e9af0fa1d6dd6000a792f37e34babf00bf.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrXAxisOp.C')
-rw-r--r-- | src/bltGrXAxisOp.C | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/bltGrXAxisOp.C b/src/bltGrXAxisOp.C index 0bb573c..cdde564 100644 --- a/src/bltGrXAxisOp.C +++ b/src/bltGrXAxisOp.C @@ -33,6 +33,7 @@ extern "C" { }; #include "bltGraph.h" +#include "bltGrXAxisOp.h" #include "bltGrAxis.h" #include "bltGrAxisOp.h" @@ -148,6 +149,35 @@ static int UseOp(Tcl_Interp* interp, Axis* axisPtr, return TCL_OK; } +static int CgetOp(ClientData clientData,Tcl_Interp* interp, + int objc, Tcl_Obj* const objv[]) +{ + Graph* graphPtr = (Graph*)clientData; + GraphOptions* gops = (GraphOptions*)graphPtr->ops_; + int margin = (gops->inverted) ? MARGIN_LEFT : MARGIN_BOTTOM; + Axis* axisPtr = Blt_GetFirstAxis(gops->margins[margin].axes); + + return AxisCgetOp(interp, axisPtr, objc, objv); +} + +static int ConfigureOp(ClientData clientData, Tcl_Interp* interp, + int objc, Tcl_Obj* const objv[]) +{ + Graph* graphPtr = (Graph*)clientData; + GraphOptions* gops = (GraphOptions*)graphPtr->ops_; + int margin = (gops->inverted) ? MARGIN_LEFT : MARGIN_BOTTOM; + Axis* axisPtr = Blt_GetFirstAxis(gops->margins[margin].axes); + + return AxisConfigureOp(interp, axisPtr, objc, objv); +} + +const BltEnsemble xaxisEnsemble[] = { + { "cget", CgetOp,0 }, + { "configure", ConfigureOp,0 }, + { 0,0,0 } +}; + +/* static Blt_OpSpec axisOps[] = { {"activate", 1, (void*)AxisActivateOp, 3, 3, "",}, {"bind", 1, (void*)BindOp, 2, 5, "sequence command",}, @@ -185,4 +215,4 @@ int Blt_XAxisOp(Tcl_Interp* interp, Graph* graphPtr, int margin, return (*proc)(interp, axisPtr, objc, objv); } } - +*/ |