cgv
Loading...
Searching...
No Matches
cgv::gui::theme_info Class Reference

Public Member Functions

 theme_info (const theme_info &)=delete
 
void operator= (const theme_info &)=delete
 
 theme_info ()
 construct
 
 ~theme_info ()
 destruct
 
void index (int index)
 
int index () const
 
bool is_dark () const
 
int spacing () const
 
void spacing (int i)
 
float scaling () const
 
void scaling (float f)
 
 DEF_COLOR_MEMBER_METHODS (background)
 
 DEF_COLOR_MEMBER_METHODS (group)
 
 DEF_COLOR_MEMBER_METHODS (control)
 
 DEF_COLOR_MEMBER_METHODS (border)
 
 DEF_COLOR_MEMBER_METHODS (text)
 
 DEF_COLOR_MEMBER_METHODS (text_background)
 
 DEF_COLOR_MEMBER_METHODS (selection)
 
 DEF_COLOR_MEMBER_METHODS (highlight)
 
 DEF_COLOR_MEMBER_METHODS (warning)
 
 DEF_COLOR_MEMBER_METHODS (shadow)
 
void notify_observers () const
 

Static Public Member Functions

static theme_infoinstance ()
 

Public Attributes

cgv::signal::signal< const theme_info & > on_change
 

Protected Attributes

int index_ = -1
 
int spacing_ = 1
 
float scaling_ = 1.0f
 
rgb background_col
 
rgb group_col
 
rgb control_col
 
rgb border_col
 
rgb text_col
 
rgb text_background_col
 
rgb selection_col
 
rgb highlight_col
 
rgb warning_col
 
rgb shadow_col
 

Detailed Description

Definition at line 26 of file theme_info.h.

Constructor & Destructor Documentation

◆ theme_info()

cgv::gui::theme_info::theme_info ( )

construct

Definition at line 11 of file theme_info.cxx.

◆ ~theme_info()

cgv::gui::theme_info::~theme_info ( )
inline

destruct

Definition at line 55 of file theme_info.h.

Member Function Documentation

◆ index() [1/2]

int cgv::gui::theme_info::index ( ) const
inline

Definition at line 59 of file theme_info.h.

◆ index() [2/2]

void cgv::gui::theme_info::index ( int  index)
inline

Definition at line 58 of file theme_info.h.

◆ instance()

theme_info & cgv::gui::theme_info::instance ( )
static

Definition at line 6 of file theme_info.cxx.

◆ is_dark()

bool cgv::gui::theme_info::is_dark ( ) const

Definition at line 23 of file theme_info.cxx.

◆ notify_observers()

void cgv::gui::theme_info::notify_observers ( ) const

Definition at line 27 of file theme_info.cxx.

◆ scaling() [1/2]

float cgv::gui::theme_info::scaling ( ) const
inline

Definition at line 66 of file theme_info.h.

◆ scaling() [2/2]

void cgv::gui::theme_info::scaling ( float  f)
inline

Definition at line 67 of file theme_info.h.

◆ spacing() [1/2]

int cgv::gui::theme_info::spacing ( ) const
inline

Definition at line 63 of file theme_info.h.

◆ spacing() [2/2]

void cgv::gui::theme_info::spacing ( int  i)
inline

Definition at line 64 of file theme_info.h.

Member Data Documentation

◆ background_col

rgb cgv::gui::theme_info::background_col
protected

Definition at line 35 of file theme_info.h.

◆ border_col

rgb cgv::gui::theme_info::border_col
protected

Definition at line 38 of file theme_info.h.

◆ control_col

rgb cgv::gui::theme_info::control_col
protected

Definition at line 37 of file theme_info.h.

◆ group_col

rgb cgv::gui::theme_info::group_col
protected

Definition at line 36 of file theme_info.h.

◆ highlight_col

rgb cgv::gui::theme_info::highlight_col
protected

Definition at line 42 of file theme_info.h.

◆ index_

int cgv::gui::theme_info::index_ = -1
protected

Definition at line 28 of file theme_info.h.

◆ on_change

cgv::signal::signal<const theme_info&> cgv::gui::theme_info::on_change

Definition at line 84 of file theme_info.h.

◆ scaling_

float cgv::gui::theme_info::scaling_ = 1.0f
protected

Definition at line 33 of file theme_info.h.

◆ selection_col

rgb cgv::gui::theme_info::selection_col
protected

Definition at line 41 of file theme_info.h.

◆ shadow_col

rgb cgv::gui::theme_info::shadow_col
protected

Definition at line 44 of file theme_info.h.

◆ spacing_

int cgv::gui::theme_info::spacing_ = 1
protected

Definition at line 31 of file theme_info.h.

◆ text_background_col

rgb cgv::gui::theme_info::text_background_col
protected

Definition at line 40 of file theme_info.h.

◆ text_col

rgb cgv::gui::theme_info::text_col
protected

Definition at line 39 of file theme_info.h.

◆ warning_col

rgb cgv::gui::theme_info::warning_col
protected

Definition at line 43 of file theme_info.h.


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