Ver código fonte

cmGrPlot.h/c Added comments.

master
kevin 12 anos atrás
pai
commit
4c86711cb0
2 arquivos alterados com 6 adições e 5 exclusões
  1. 1
    1
      cmGrPlot.c
  2. 5
    4
      cmGrPlot.h

+ 1
- 1
cmGrPlot.c Ver arquivo

@@ -256,7 +256,7 @@ void _cmGrPlotObjSetFocus( cmGrPlotObj_t* op )
256 256
 
257 257
 void _cmGrPlotObjSetSelect( cmGrPlotObj_t* op, bool clearFl )
258 258
 {
259
-  // if the object is disabled or no selectable
259
+  // if the object is disabled or not selectable
260 260
   if( _cmGrPlotObjIsEnabled(op)==false || cmIsFlag(op->cfgFlags,kNoSelectGrPlFl | kNoDrawGrPlFl) )
261 261
     return;
262 262
 

+ 5
- 4
cmGrPlot.h Ver arquivo

@@ -13,6 +13,7 @@ extern "C" {
13 13
     kRsrcFailGrPlRC
14 14
   };
15 15
 
16
+  // Graphic object type id's
16 17
   typedef enum
17 18
   {
18 19
     kInvalidPlId,
@@ -31,7 +32,7 @@ extern "C" {
31 32
     kPlusGrPlId,
32 33
   } cmGrPlObjTypeId_t;
33 34
 
34
-  // object cfg flags
35
+  // Object cfg. flags
35 36
   enum
36 37
   {
37 38
     kSymbolGrPlFl   = 0x0001,  // This object is a symbol
@@ -47,10 +48,10 @@ extern "C" {
47 48
   // object state flags
48 49
   enum
49 50
   {
50
-    kVisibleGrPlFl = 0x0001,
51
+    kVisibleGrPlFl = 0x0001,  //  
51 52
     kEnabledGrPlFl = 0x0002,  // Enabled obj's must be visible. 
52
-    kSelectGrPlFl  = 0x0004,  // 
53
-    kFocusGrPlFl   = 0x0008   // Focused obj's are also selected.
53
+    kSelectGrPlFl  = 0x0004,  // This object is selected - multiple objects may be selected
54
+    kFocusGrPlFl   = 0x0008   // Focused obj's are also selected - only one object can have the focus.
54 55
   };
55 56
 
56 57
   typedef enum

Carregando…
Cancelar
Salvar