cmGrPlot.h/c Added cmGrPlotObjParent/XAnchor/YAnchor().

This commit is contained in:
kpl 2012-11-26 23:02:02 -08:00
parent 9e62a78a59
commit fdf1a7c15a
2 changed files with 31 additions and 0 deletions

View File

@ -847,6 +847,33 @@ cmGrObjH_t cmGrPlotObjHandle( cmGrPlObjH_t oh )
return op->grObjH; 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 ) void cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id )
{ {

View File

@ -140,6 +140,10 @@ extern "C" {
cmGrPlH_t cmGrPlotObjMgrHandle( cmGrPlObjH_t oh ); cmGrPlH_t cmGrPlotObjMgrHandle( cmGrPlObjH_t oh );
cmGrObjH_t cmGrPlotObjHandle( 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 ); void cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id );
unsigned cmGrPlotObjId( cmGrPlObjH_t oh ); unsigned cmGrPlotObjId( cmGrPlObjH_t oh );