bWidgets
Core widget toolkit designed for Blender
bWidgets::bwWidgetBaseStyle Class Reference

Properties for typical widgets with roundbox corners. More...

#include <bwWidgetBaseStyle.h>

+ Collaboration diagram for bWidgets::bwWidgetBaseStyle:

Public Member Functions

 bwWidgetBaseStyle ()
 
void registerProperties (bwStyleProperties &style_properties)
 
auto backgroundColor () const -> const bwColor &
 
auto textColor () const -> const bwColor &
 
auto borderColor () const -> const bwColor &
 
auto decorationColor () const -> const bwColor &
 
auto shadeTop () const -> float
 
auto shadeBottom () const -> float
 
auto isBorderVisible () const -> bool
 

Public Attributes

bwColor background_color
 
bwColor text_color
 
bwColor border_color
 
bwColor decoration_color
 
int shade_top {0}
 
int shade_bottom
 
enum TextAlignment text_alignment
 
unsigned int roundbox_corners
 
float corner_radius
 

Detailed Description

Properties for typical widgets with roundbox corners.

Constructor & Destructor Documentation

◆ bwWidgetBaseStyle()

bWidgets::bwWidgetBaseStyle::bwWidgetBaseStyle ( )

Member Function Documentation

◆ backgroundColor()

auto bWidgets::bwWidgetBaseStyle::backgroundColor ( ) const -> const bwColor&

◆ borderColor()

auto bWidgets::bwWidgetBaseStyle::borderColor ( ) const -> const bwColor&

◆ decorationColor()

auto bWidgets::bwWidgetBaseStyle::decorationColor ( ) const -> const bwColor&

◆ isBorderVisible()

auto bWidgets::bwWidgetBaseStyle::isBorderVisible ( ) const -> bool

◆ registerProperties()

void bWidgets::bwWidgetBaseStyle::registerProperties ( bwStyleProperties style_properties)

Add bwStyleProperty instances to style_properties for all bwWidgetBaseStyle options.

◆ shadeBottom()

auto bWidgets::bwWidgetBaseStyle::shadeBottom ( ) const -> float

◆ shadeTop()

auto bWidgets::bwWidgetBaseStyle::shadeTop ( ) const -> float

◆ textColor()

auto bWidgets::bwWidgetBaseStyle::textColor ( ) const -> const bwColor&

Member Data Documentation

◆ background_color

bwColor bWidgets::bwWidgetBaseStyle::background_color

◆ border_color

bwColor bWidgets::bwWidgetBaseStyle::border_color

◆ corner_radius

float bWidgets::bwWidgetBaseStyle::corner_radius
Initial value:
{
0.0f}

◆ decoration_color

bwColor bWidgets::bwWidgetBaseStyle::decoration_color

◆ roundbox_corners

unsigned int bWidgets::bwWidgetBaseStyle::roundbox_corners

◆ shade_bottom

int bWidgets::bwWidgetBaseStyle::shade_bottom
Initial value:
{
0}

◆ shade_top

int bWidgets::bwWidgetBaseStyle::shade_top {0}

◆ text_alignment

enum TextAlignment bWidgets::bwWidgetBaseStyle::text_alignment

◆ text_color

bwColor bWidgets::bwWidgetBaseStyle::text_color

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