Next: , Previous: Showing Colors, Up: Color Reference


16.6 Querying

const function: bool is_on_free_store (void)

Returns on_free_store. This will only be true, if the Color was created by create_new<Color>(). See Color Reference; Constructors and Setting Functions.

— Inline const function: real get_red_part ([bool decimal = false])
— Inline const function: real get_green_part ([bool decimal = false])
— Inline const function: real get_blue_part ([bool decimal = false])

These functions return the red_part, green_part, or blue_part of the Color, respectively. If decimal is false (the default), the actual real value of the “part” is returned. Otherwise, the corresponding whole number n such that 0 <= n <= 255 is returned.

const function: bool get_use_name (void)

Returns use_name.

— Inline const function: string get_name (void)

Returns name.