|
Marbellous
Marbellous, a WebApp to generate paper marbling patterns.
|
Global option state. More...
#include <Options.hpp>

Public Member Functions | |
| Options (Options const &)=delete | |
| void | operator= (Options const &)=delete |
| Options & | operator= (Options &&)=delete |
| Options (Options &&)=delete | |
| size_t | addPalette (Palette const &newPalette) |
| Palette * | getActivePalette () |
| const Palette * | getActivePalette () const |
| const version of getActivePalette() More... | |
| int | setActivePalette (size_t id) |
| void | setState (bool dropState) |
| bool | getState () const |
| void | setBGColor (Color const &col) |
| const Color * | getBGColor () const |
| void | setFilter (bool filter) |
| bool | getFilter () const |
| Get the filter option. More... | |
Static Public Member Functions | |
| static Options *const | getInstance () |
Global option state.
A singleton representing general options and data of the backend.
|
delete |
|
delete |
| size_t Options::addPalette | ( | Palette const & | newPalette | ) |
Add a new palette.
| newPalette | Palette to add. |

| Palette * Options::getActivePalette | ( | ) |
Get the active palette.

| const Palette * Options::getActivePalette | ( | ) | const |
const version of getActivePalette()
| const Color * Options::getBGColor | ( | ) | const |
Get the Background color.

| bool Options::getFilter | ( | ) | const |
Get the filter option.
|
static |
Return single options instance. If there is no existing instance it will be constructed.

| bool Options::getState | ( | ) | const |
Get the backend's state. This influences which API functions are active.

|
delete |
| int Options::setActivePalette | ( | size_t | id | ) |
Set the active palette.
| id | ID of the palette to set active. Return value of addPalette(). |

| void Options::setBGColor | ( | Color const & | col | ) |
Set the background color.
| col | Color to use for the background. |

| void Options::setFilter | ( | bool | filter | ) |
Set the option wether to filter or not.
| filter | TRUE for filter application, FALSE for no filter application. |

| void Options::setState | ( | bool | dropState | ) |
Set the state of the backend. This influences which API functions are active.
| dropState | TRUE for drop state and FALSE for rake state. |
