Sfoglia il codice sorgente

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

master
kpl 12 anni fa
parent
commit
fdf1a7c15a
2 ha cambiato i file con 31 aggiunte e 0 eliminazioni
  1. 27
    0
      cmGrPlot.c
  2. 4
    0
      cmGrPlot.h

+ 27
- 0
cmGrPlot.c Vedi File

847
   return op->grObjH;
847
   return op->grObjH;
848
 }
848
 }
849
 
849
 
850
+cmGrPlObjH_t     cmGrPlotObjParent( cmGrPlObjH_t oh )
851
+{
852
+  cmGrPlObjH_t p_oh;
853
+  cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
854
+ 
855
+  p_oh.h = op->parent;
856
+  return p_oh;
857
+}
858
+
859
+cmGrPlObjH_t     cmGrPlotObjXAnchor( cmGrPlObjH_t oh )
860
+{
861
+  cmGrPlObjH_t p_oh;
862
+  cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
863
+ 
864
+  p_oh.h = op->xAnchor;
865
+  return p_oh;
866
+}
867
+
868
+cmGrPlObjH_t     cmGrPlotObjYAnchor( cmGrPlObjH_t oh )
869
+{
870
+  cmGrPlObjH_t p_oh;
871
+  cmGrPlotObj_t* op = _cmGrPlObjHandleToPtr(oh);
872
+ 
873
+  p_oh.h = op->yAnchor;
874
+  return p_oh;
875
+}
876
+
850
 
877
 
851
 void            cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id )
878
 void            cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id )
852
 {
879
 {

+ 4
- 0
cmGrPlot.h Vedi File

140
   cmGrPlH_t         cmGrPlotObjMgrHandle(     cmGrPlObjH_t oh );
140
   cmGrPlH_t         cmGrPlotObjMgrHandle(     cmGrPlObjH_t oh );
141
   cmGrObjH_t        cmGrPlotObjHandle(        cmGrPlObjH_t oh );
141
   cmGrObjH_t        cmGrPlotObjHandle(        cmGrPlObjH_t oh );
142
 
142
 
143
+  cmGrPlObjH_t      cmGrPlotObjParent(        cmGrPlObjH_t oh );
144
+  cmGrPlObjH_t      cmGrPlotObjXAnchor(       cmGrPlObjH_t oh );
145
+  cmGrPlObjH_t      cmGrPlotObjYAnchor(       cmGrPlObjH_t oh );
146
+  
143
   void              cmGrPlotObjSetId(         cmGrPlObjH_t oh, unsigned id );
147
   void              cmGrPlotObjSetId(         cmGrPlObjH_t oh, unsigned id );
144
   unsigned          cmGrPlotObjId(            cmGrPlObjH_t oh );
148
   unsigned          cmGrPlotObjId(            cmGrPlObjH_t oh );
145
 
149
 

Loading…
Annulla
Salva