cmGrPlot.h/c Added cmGrPlotObjParent/XAnchor/YAnchor().
This commit is contained in:
parent
9e62a78a59
commit
fdf1a7c15a
27
cmGrPlot.c
27
cmGrPlot.c
@ -847,6 +847,33 @@ cmGrObjH_t cmGrPlotObjHandle( cmGrPlObjH_t oh )
|
||||
return op->grObjH;
|
||||
}
|
||||
|
||||
cmGrPlObjH_t cmGrPlotObjParent( cmGrPlObjH_t oh )
|
||||
{
|
||||
cmGrPlObjH_t p_oh;
|
||||
cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
|
||||
|
||||
p_oh.h = op->parent;
|
||||
return p_oh;
|
||||
}
|
||||
|
||||
cmGrPlObjH_t cmGrPlotObjXAnchor( cmGrPlObjH_t oh )
|
||||
{
|
||||
cmGrPlObjH_t p_oh;
|
||||
cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
|
||||
|
||||
p_oh.h = op->xAnchor;
|
||||
return p_oh;
|
||||
}
|
||||
|
||||
cmGrPlObjH_t cmGrPlotObjYAnchor( cmGrPlObjH_t oh )
|
||||
{
|
||||
cmGrPlObjH_t p_oh;
|
||||
cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
|
||||
|
||||
p_oh.h = op->yAnchor;
|
||||
return p_oh;
|
||||
}
|
||||
|
||||
|
||||
void cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id )
|
||||
{
|
||||
|
@ -140,6 +140,10 @@ extern "C" {
|
||||
cmGrPlH_t cmGrPlotObjMgrHandle( cmGrPlObjH_t oh );
|
||||
cmGrObjH_t cmGrPlotObjHandle( cmGrPlObjH_t oh );
|
||||
|
||||
cmGrPlObjH_t cmGrPlotObjParent( cmGrPlObjH_t oh );
|
||||
cmGrPlObjH_t cmGrPlotObjXAnchor( cmGrPlObjH_t oh );
|
||||
cmGrPlObjH_t cmGrPlotObjYAnchor( cmGrPlObjH_t oh );
|
||||
|
||||
void cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id );
|
||||
unsigned cmGrPlotObjId( cmGrPlObjH_t oh );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user