nomlib
Loading...
Searching...
No Matches
nom::SystemColors Class Reference

Class interface for accessing global color resources. More...

#include <init.hpp>

Static Public Member Functions

static bool initialized (void)
 Get the status of the global color database.
static void initialize (void)
 Create the global color database.
static ColorDatabasecolors (void)
 Get an object reference to the global color database.
static void shutdown (void)
 Destructor.

Static Private Attributes

static std::unique_ptr< ColorDatabasecolors_
 The global color database for use by the engine and end-user.
static bool initialized_
 Track object's state in order to ensure one-time initialization.

Detailed Description

Class interface for accessing global color resources.

See also
nom::ColorDatabase.
Inspired by http://docs.wxwidgets.org/trunk/classwx_system_settings.html

Definition at line 45 of file init.hpp.

Member Function Documentation

◆ colors()

ColorDatabase & nom::SystemColors::colors ( void )
static

Get an object reference to the global color database.

Returns
The object reference to the global color database.
Remarks
This method call will automatically initialize the color database if it is not yet initialized.

Member Data Documentation

◆ colors_

std::unique_ptr<ColorDatabase> nom::SystemColors::colors_
staticprivate

The global color database for use by the engine and end-user.

Definition at line 67 of file init.hpp.

◆ initialized_

bool nom::SystemColors::initialized_
staticprivate

Track object's state in order to ensure one-time initialization.

Definition at line 70 of file init.hpp.


The documentation for this class was generated from the following file: