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

#include <bwLabel.h>

+ Inheritance diagram for bWidgets::bwLabel:
+ Collaboration diagram for bWidgets::bwLabel:

Public Member Functions

 bwLabel (std::string text="", std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
 
auto getTypeIdentifier () const -> std::string_view override
 
void draw (bwStyle &style) override
 
void registerProperties () override
 
auto createHandler () -> std::unique_ptr< bwScreenGraph::EventHandler > override
 
auto getLabel () const -> const std::string *override
 
auto setLabel (const std::string &) -> bwLabel &
 
auto setIcon (const bwIconInterface &icon_interface) -> bwLabel &
 
- Public Member Functions inherited from bWidgets::bwWidget
 bwWidget (std::optional< unsigned int > width_hint, std::optional< unsigned int > height_hint)
 
virtual ~bwWidget ()=default
 
 bwWidget ()=delete
 
 bwWidget (const bwWidget &)=delete
 
 bwWidget (bwWidget &&)=delete
 
auto operator= (const bwWidget &)=delete
 
auto operator= (bwWidget &&)=delete
 
auto getState () const -> State
 
auto setState (State) -> bwWidget &
 
auto hide (bool _hidden=true) -> bwWidget &
 
auto isHidden () -> bool
 
virtual auto getTypeIdentifier () const -> std::string_view=0
 
virtual void draw (bwStyle &style)=0
 
virtual auto isCoordinateInside (const bwPoint &point) const -> bool
 
virtual auto getLabel () const -> const std::string *
 
virtual auto canAlign () const -> bool
 
virtual auto createHandler () -> std::unique_ptr< bwScreenGraph::EventHandler >=0
 

Additional Inherited Members

- Public Types inherited from bWidgets::bwWidget
enum class  State { NORMAL = 0 , HIGHLIGHTED , SUNKEN , STATE_TOT }
 
- Public Attributes inherited from bWidgets::bwWidget
bwRectanglePixel rectangle
 
unsigned int width_hint
 
unsigned int height_hint
 
bwStyleProperties style_properties
 
- Protected Member Functions inherited from bWidgets::bwWidget
void initialize ()
 Additional initialization that can't be done in bwWidget constructor. More...
 
virtual void registerProperties ()
 

Constructor & Destructor Documentation

◆ bwLabel()

bWidgets::bwLabel::bwLabel ( std::string  text = "",
std::optional< unsigned int >  width_hint = std::nullopt,
std::optional< unsigned int >  height_hint = std::nullopt 
)

Member Function Documentation

◆ createHandler()

auto bWidgets::bwLabel::createHandler ( ) -> std::unique_ptr<bwScreenGraph::EventHandler>
overridevirtual

Implements bWidgets::bwWidget.

◆ draw()

void bWidgets::bwLabel::draw ( bwStyle style)
overridevirtual

Implements bWidgets::bwWidget.

◆ getLabel()

auto bWidgets::bwLabel::getLabel ( ) const -> const std::string*
overridevirtual

Reimplemented from bWidgets::bwWidget.

◆ getTypeIdentifier()

auto bWidgets::bwLabel::getTypeIdentifier ( ) const -> std::string_view
overridevirtual

Implements bWidgets::bwWidget.

◆ registerProperties()

void bWidgets::bwLabel::registerProperties ( )
overridevirtual

Reimplemented from bWidgets::bwWidget.

◆ setIcon()

auto bWidgets::bwLabel::setIcon ( const bwIconInterface icon_interface) -> bwLabel&

◆ setLabel()

auto bWidgets::bwLabel::setLabel ( const std::string &  label) -> bwLabel&

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