Rhino C++ API
8.14
|
#include <RhinoSdkUiComboBox.h>
Public Types | |
enum | class_type { ct_font = 0, ct_color, ct_layer, ct_linetype, ct_print_width, ct_strings, ct_uuid, ct_invalid, force_32bit_class_type = 0xFFFFFFFF } |
Public Member Functions | |
CRhinoUiComboBoxItemData (class_type ct) | |
virtual | ~CRhinoUiComboBoxItemData () |
class_type | ClassType () const |
RhinoUiColorComboBoxItemData * | ColorData () |
RhinoUiFontComboBoxItemData * | FontData () |
RhinoUiLayerComboBoxItemData * | LayerData () |
RhinoUiLinetypeComboBoxItemData * | LinetypeData () |
RhinoUiPrintWidthComboBoxItemData * | PrintWidthData () |
void | SetText (LPCTSTR lps) |
void | SetUuidData (ON_UUID uuid) |
LPCTSTR | Text () const |
ON_UUID | UuidData () const |
Friends | |
class | CRhinoUiComboBox |
Valid CRhinoUiComboBox item data types
CRhinoUiComboBoxItemData::CRhinoUiComboBoxItemData | ( | class_type | ct | ) |
Description: Constructor
Parameters: ct [in] Type of data this object will contain. Tells constructor which property to initialize
See Also: CRhinoUiComboBoxItemData::class_type
|
virtual |
Description: Destructor
class_type CRhinoUiComboBoxItemData::ClassType | ( | ) | const |
Description: Identifies what type of data this object contains.
Returns: CRhinoUiComboBoxItemData::class_type which identifies type of data this object contains.
See Also: CRhinoUiComboBoxItemData::class_type
RhinoUiColorComboBoxItemData* CRhinoUiComboBoxItemData::ColorData | ( | ) |
Description: Get color data associated with this object. This will only be valid if ClassType() returns ct_color.
Returns: Pointer to RhinoUiColorComboBoxItemData struct if ClassType() returns ct_color otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type RhinoUiColorComboBoxItemData
RhinoUiFontComboBoxItemData* CRhinoUiComboBoxItemData::FontData | ( | ) |
Description: Get font data associated with this object. This will only be valid if ClassType() returns ct_font.
Returns: Pointer to RhinoUiFontComboBoxItemData struct if ClassType() returns ct_font otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type RhinoUiFontComboBoxItemData
RhinoUiLayerComboBoxItemData* CRhinoUiComboBoxItemData::LayerData | ( | ) |
Description: Get layer data associated with this object. This will only be valid if ClassType() returns ct_layer.
Returns: Pointer to RhinoUiLayerComboBoxItemData struct if ClassType() returns ct_layer otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type RhinoUiLayerComboBoxItemData
RhinoUiLinetypeComboBoxItemData* CRhinoUiComboBoxItemData::LinetypeData | ( | ) |
Description: Get linetype data associated with this object. This will only be valid if ClassType() returns ct_linetype.
Returns: Pointer to RhinoUiLinetypeComboBoxItemData struct if ClassType() returns ct_linetype otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type RhinoUiLinetypeComboBoxItemData
RhinoUiPrintWidthComboBoxItemData* CRhinoUiComboBoxItemData::PrintWidthData | ( | ) |
Description: Get print width data associated with this object. This will only be valid if ClassType() returns ct_print_width.
Returns: Pointer to RhinoUiPrintWithComboBoxItemData struct if ClassType() returns ct_print_width otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type RhinoUiPrintWidthComboBoxItemData
void CRhinoUiComboBoxItemData::SetText | ( | LPCTSTR | lps | ) |
Description: Set text associated with this item. This text will be used when owner drawing items when the combo box does not include CBS_HASSTRINGS style.
Parameters: lps [in] New text value.
See Also: CRhinoUiComboBoxItemData::Text()
void CRhinoUiComboBoxItemData::SetUuidData | ( | ON_UUID | uuid | ) |
Description: Store uuid on this item data.0 Sets class type to ct_uuid.
See Also: CRhinoUiComboBoxItemData::class_type
LPCTSTR CRhinoUiComboBoxItemData::Text | ( | ) | const |
Description: Display text associated with this item. This text will be used when owner drawing items when the combo box does not include CBS_HASSTRINGS style.
Returns: Text to owner draw.
See Also: CRhinoUiComboBoxItemData::SetText()
ON_UUID CRhinoUiComboBoxItemData::UuidData | ( | ) | const |
Description: Get UUID associated with this object. This will only be valid if ClassType() returns ct_uuid.
Returns: The stored uuid if ClassType() returns ct_uuid otherwise NULL.
See Also: CRhinoUiComboBoxItemData::class_type
|
friend |
RhinoUiColorComboBoxItemData CRhinoUiComboBoxItemData::m_color |
RhinoUiFontComboBoxItemData CRhinoUiComboBoxItemData::m_font |
RhinoUiLayerComboBoxItemData CRhinoUiComboBoxItemData::m_layer |
RhinoUiLinetypeComboBoxItemData CRhinoUiComboBoxItemData::m_linetype |
LONG CRhinoUiComboBoxItemData::m_lUserData |
RhinoUiPrintWidthComboBoxItemData CRhinoUiComboBoxItemData::m_print_width |
void* CRhinoUiComboBoxItemData::m_pUserData |
Since this object is attached to combo box items using CComboBox::SetItemDataPtr() the next to properties can be used to attach additional data to item.
ON_UUID CRhinoUiComboBoxItemData::m_uuid |