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 set_index (int idx)
 
int get_index () const
 
bool is_dark () const
 
int spacing () const
 
void spacing (int i)
 

Static Public Member Functions

static theme_infoinstance ()
 

Public Attributes

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

Static Protected Member Functions

static std::string char_to_hex (unsigned char c)
 
static std::string rgb_to_hex (const rgb &c)
 

Protected Attributes

int theme_idx
 
int spacing_ = 1
 
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 68 of file theme_info.h.

Member Function Documentation

◆ char_to_hex()

static std::string cgv::gui::theme_info::char_to_hex ( unsigned char  c)
inlinestaticprotected

Definition at line 43 of file theme_info.h.

◆ get_index()

int cgv::gui::theme_info::get_index ( ) const

Definition at line 32 of file theme_info.cxx.

◆ 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 36 of file theme_info.cxx.

◆ rgb_to_hex()

static std::string cgv::gui::theme_info::rgb_to_hex ( const rgb c)
inlinestaticprotected

Definition at line 51 of file theme_info.h.

◆ set_index()

void cgv::gui::theme_info::set_index ( int  idx)

Definition at line 25 of file theme_info.cxx.

◆ spacing() [1/2]

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

Definition at line 74 of file theme_info.h.

◆ spacing() [2/2]

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

Definition at line 75 of file theme_info.h.

Member Data Documentation

◆ background_col

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

Definition at line 32 of file theme_info.h.

◆ border_col

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

Definition at line 35 of file theme_info.h.

◆ control_col

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

Definition at line 34 of file theme_info.h.

◆ group_col

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

Definition at line 33 of file theme_info.h.

◆ highlight_col

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

Definition at line 39 of file theme_info.h.

◆ on_change

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

Definition at line 88 of file theme_info.h.

◆ selection_col

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

Definition at line 38 of file theme_info.h.

◆ shadow_col

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

Definition at line 41 of file theme_info.h.

◆ spacing_

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

Definition at line 30 of file theme_info.h.

◆ text_background_col

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

Definition at line 37 of file theme_info.h.

◆ text_col

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

Definition at line 36 of file theme_info.h.

◆ theme_idx

int cgv::gui::theme_info::theme_idx
protected

Definition at line 28 of file theme_info.h.

◆ warning_col

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

Definition at line 40 of file theme_info.h.


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