SimpleColorFormat
Overview
SimpleColorFormat is a class in Aspose.Slides FOSS for C++.
A simple concrete implementation of ColorFormat backed by an sRGB color.
This class declares 17 methods for SimpleColorFormat objects in C++ programs.
Available methods include: ColorType, PresetColor, SchemeColor, SimpleColorFormat, color, color_type, preset_color, scheme_color, set_color, set_color_type, set_on_changed, set_preset_color, and 1 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Accessor methods: ColorType, PresetColor, SchemeColor, SimpleColorFormat.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
SimpleColorFormat | SimpleColorFormat | Read | Gets the simple color format. |
ColorType | ColorType | Read | Gets the color type. |
PresetColor | PresetColor | Read | Gets the preset color. |
SchemeColor | SchemeColor | Read | Gets the scheme color. |
Methods
| Signature | Description |
|---|---|
SimpleColorFormat() → SimpleColorFormat | Calls SimpleColorFormat on this SimpleColorFormat instance. |
SimpleColorFormat() → SimpleColorFormat | |
ColorType() → ColorType | Returns the ColorType enum indicating the format’s color classification |
PresetColor() → PresetColor | Returns the PresetColor enum representing a predefined color value |
SchemeColor() → SchemeColor | Returns the SchemeColor enum representing a theme scheme color |
SimpleColorFormat() | |
SimpleColorFormat(other: SimpleColorFormat) | Calls SimpleColorFormat(other) on this SimpleColorFormat instance. |
SimpleColorFormat(other: SimpleColorFormat) | Calls SimpleColorFormat(other) on this SimpleColorFormat instance. |
set_on_changed(callback: std::function<void()>) | Install a callback invoked whenever this colour changes. Owners that back this colour with XML use it to keep the element in step: the colour is reached through a reference (shadow_color(), solid_fill_color(), …) and mutated without the owner being called at all, so without this there is no moment at which the owner could write the new value out. |
color_type() → ColorType | Calls color_type on this SimpleColorFormat instance. |
set_color_type(value: ColorType) | Calls set_color_type(value) on this SimpleColorFormat instance. |
color() → Drawing::Color | Calls color on this SimpleColorFormat instance. |
set_color(value: Drawing::Color) | Calls set_color(value) on this SimpleColorFormat instance. |
preset_color() → PresetColor | Calls preset_color on this SimpleColorFormat instance. |
set_preset_color(value: PresetColor) | Calls set_preset_color(value) on this SimpleColorFormat instance. |
scheme_color() → SchemeColor | Calls scheme_color on this SimpleColorFormat instance. |
set_scheme_color(value: SchemeColor) | Calls set_scheme_color(value) on this SimpleColorFormat instance. |