Kaynağa Gözat

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

master
kpl 12 yıl önce
ebeveyn
işleme
fdf1a7c15a
2 değiştirilmiş dosya ile 31 ekleme ve 0 silme
  1. 27
    0
      cmGrPlot.c
  2. 4
    0
      cmGrPlot.h

+ 27
- 0
cmGrPlot.c Dosyayı Görüntüle

@@ -847,6 +847,33 @@ cmGrObjH_t     cmGrPlotObjHandle( cmGrPlObjH_t oh )
847 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 878
 void            cmGrPlotObjSetId( cmGrPlObjH_t oh, unsigned id )
852 879
 {

+ 4
- 0
cmGrPlot.h Dosyayı Görüntüle

@@ -140,6 +140,10 @@ extern "C" {
140 140
   cmGrPlH_t         cmGrPlotObjMgrHandle(     cmGrPlObjH_t oh );
141 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 147
   void              cmGrPlotObjSetId(         cmGrPlObjH_t oh, unsigned id );
144 148
   unsigned          cmGrPlotObjId(            cmGrPlObjH_t oh );
145 149
 

Loading…
İptal
Kaydet