HM_ExtAPI::ComponentGetColor()
Returns the color of the component.
Syntax
bool ComponentGetColor(
const HM_EntityComponent& comp,
HM_Color& std_color
HM_RGBColorStruct* rgb
);
Type
HyperMesh Ext API Function
Description
If the parameter rgb is not NULL then it returns red, green and blue values specifying the component color. The values in rgb are returned not only for HM_COLOR_USE_RGB but for any returned value of the parameter std_color.
If the function succeeds, the return value is true.If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().
Requires including hm_extapi.h.
Inputs
- comp
- [in] - Handle to component object that was returned by previous calls to API functions.
- name
- [in] - Pointer to the string that contains the name for the new component. If the pointer is NULL then new the name is created automatically.
- std_color
- [in] - Returns the color of the component. The parameter can have one of following values.
- rgb
- [out] - Pointer to HM_RGBColorStruct structure that returns values for red, green and blue components of the component color.
Errors
None.