![]() |
Interface base class for textures and colors owned by palettes.
Object is used as a base class and specialized behaviour is available in subclasses.
See OMC::PaletteColour and OMC::PaletteTexture for more information.
Public Member Functions | |
OMC::PaletteList * | palette_list () |
Gets the parent palette list, or throws error if currently parentless. More... | |
OMC::Palette * | palette () |
Gets the parent palette, or throws error if currently parentless. More... | |
Public Attributes | |
QString | name |
The color pot name. More... | |
QString | base_type |
The base type of colour, either 'Colour' or 'Texture'. More... | |
QString | id |
Unique ID of the color. More... | |
bool | valid |
Get the validity of the object at the moment. More... | |
OMC::Palette* OMC::PaletteBaseColour::palette | ( | ) |
Gets the parent palette, or throws error if currently parentless.
Examplified in palette_list().
OMC::PaletteList* OMC::PaletteBaseColour::palette_list | ( | ) |
Gets the parent palette list, or throws error if currently parentless.
Example:
|
read |
The base type of colour, either 'Colour' or 'Texture'.
|
read |
Unique ID of the color.
|
readwrite |
The color pot name.
|
read |
Get the validity of the object at the moment.