cmGrPlot.h/c Added comments.

This commit is contained in:
kevin 2012-12-17 12:45:45 -08:00
parent e9c4d0edd2
commit 4c86711cb0
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -13,6 +13,7 @@ extern "C" {
kRsrcFailGrPlRC kRsrcFailGrPlRC
}; };
// Graphic object type id's
typedef enum typedef enum
{ {
kInvalidPlId, kInvalidPlId,
@ -31,7 +32,7 @@ extern "C" {
kPlusGrPlId, kPlusGrPlId,
} cmGrPlObjTypeId_t; } cmGrPlObjTypeId_t;
// object cfg flags // Object cfg. flags
enum enum
{ {
kSymbolGrPlFl = 0x0001, // This object is a symbol kSymbolGrPlFl = 0x0001, // This object is a symbol
@ -47,10 +48,10 @@ extern "C" {
// object state flags // object state flags
enum enum
{ {
kVisibleGrPlFl = 0x0001, kVisibleGrPlFl = 0x0001, //
kEnabledGrPlFl = 0x0002, // Enabled obj's must be visible. kEnabledGrPlFl = 0x0002, // Enabled obj's must be visible.
kSelectGrPlFl = 0x0004, // kSelectGrPlFl = 0x0004, // This object is selected - multiple objects may be selected
kFocusGrPlFl = 0x0008 // Focused obj's are also selected. kFocusGrPlFl = 0x0008 // Focused obj's are also selected - only one object can have the focus.
}; };
typedef enum typedef enum