bWidgets
Core widget toolkit designed for Blender
bWidgets::bwStyle Class Referenceabstract

#include <bwStyle.h>

+ Inheritance diagram for bWidgets::bwStyle:

Classes

struct  StyleType
 

Public Types

enum class  TypeID {
  CLASSIC , CLASSIC_CSS , FLAT_GREY , FLAT_DARK ,
  FLAT_LIGHT , BUILTIN_TOT
}
 

Public Member Functions

virtual ~bwStyle ()=default
 
virtual void setWidgetStyle (bwWidget &widget)=0
 
virtual void polish (bwWidget &)
 

Public Attributes

TypeID type_id
 
float dpi_fac {1.0f}
 

Static Public Attributes

static unsigned int s_default_widget_size_hint = 20
 

Protected Member Functions

 bwStyle (TypeID type_id)
 

Member Enumeration Documentation

◆ TypeID

enum class bWidgets::bwStyle::TypeID
strong
Enumerator
CLASSIC 
CLASSIC_CSS 
FLAT_GREY 
FLAT_DARK 
FLAT_LIGHT 
BUILTIN_TOT 

Constructor & Destructor Documentation

◆ ~bwStyle()

virtual bWidgets::bwStyle::~bwStyle ( )
virtualdefault

◆ bwStyle()

bWidgets::bwStyle::bwStyle ( TypeID  type_id)
protected

Member Function Documentation

◆ polish()

void bWidgets::bwStyle::polish ( bwWidget )
virtual

Reimplemented in bWidgets::bwStyleCSS.

◆ setWidgetStyle()

virtual void bWidgets::bwStyle::setWidgetStyle ( bwWidget widget)
pure virtual

Member Data Documentation

◆ dpi_fac

float bWidgets::bwStyle::dpi_fac {1.0f}

◆ s_default_widget_size_hint

unsigned int bWidgets::bwStyle::s_default_widget_size_hint = 20
static

◆ type_id

TypeID bWidgets::bwStyle::type_id

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