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

#include <bwPanel.h>

+ Inheritance diagram for bWidgets::bwPanel:
+ Collaboration diagram for bWidgets::bwPanel:

Public Types

enum class  State { OPEN , CLOSED }
 
- Public Types inherited from bWidgets::bwWidget
enum class  State { NORMAL = 0 , HIGHLIGHTED , SUNKEN , STATE_TOT }
 

Public Member Functions

 bwPanel (const bwScreenGraph::ContainerNode &node, std::string label, std::optional< unsigned int > header_height_hint=std::nullopt)
 
auto getTypeIdentifier () const -> std::string_view override
 
void draw (class bwStyle &style) override
 
void registerProperties () override
 
auto getLabel () const -> const std::string *override
 
auto childrenVisible () const -> bool override
 
auto createHandler () -> std::unique_ptr< bwScreenGraph::EventHandler > override
 
unsigned int getHeaderHeightHint () const
 
- Public Member Functions inherited from bWidgets::bwContainerWidget
virtual auto getMaskRectangle () -> bwRectanglePixel
 
virtual auto childrenVisible () const -> bool
 
void registerProperties () override
 
- 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
 

Public Attributes

unsigned int header_height
 
State panel_state {State::OPEN}
 
bool draw_separator = false
 
- Public Attributes inherited from bWidgets::bwContainerWidget
bwWidgetBaseStyle base_style
 
- Public Attributes inherited from bWidgets::bwWidget
bwRectanglePixel rectangle
 
unsigned int width_hint
 
unsigned int height_hint
 
bwStyleProperties style_properties
 

Friends

class bwPanelHandler
 

Additional Inherited Members

- Protected Member Functions inherited from bWidgets::bwContainerWidget
 bwContainerWidget (const bwScreenGraph::ContainerNode &node, std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
 
- Protected Member Functions inherited from bWidgets::bwWidget
void initialize ()
 Additional initialization that can't be done in bwWidget constructor. More...
 
virtual void registerProperties ()
 
- Protected Attributes inherited from bWidgets::bwContainerWidget
const bwScreenGraph::ContainerNodenode
 

Member Enumeration Documentation

◆ State

enum class bWidgets::bwPanel::State
strong
Enumerator
OPEN 
CLOSED 

Constructor & Destructor Documentation

◆ bwPanel()

bWidgets::bwPanel::bwPanel ( const bwScreenGraph::ContainerNode node,
std::string  label,
std::optional< unsigned int >  header_height_hint = std::nullopt 
)

Member Function Documentation

◆ childrenVisible()

auto bWidgets::bwPanel::childrenVisible ( ) const -> bool
overridevirtual

Reimplemented from bWidgets::bwContainerWidget.

◆ createHandler()

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

Implements bWidgets::bwWidget.

◆ draw()

void bWidgets::bwPanel::draw ( class bwStyle style)
overridevirtual

Implements bWidgets::bwWidget.

◆ getHeaderHeightHint()

auto bWidgets::bwPanel::getHeaderHeightHint ( ) const

◆ getLabel()

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

Reimplemented from bWidgets::bwWidget.

◆ getTypeIdentifier()

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

Implements bWidgets::bwWidget.

◆ registerProperties()

void bWidgets::bwPanel::registerProperties ( )
overridevirtual

Reimplemented from bWidgets::bwContainerWidget.

Friends And Related Function Documentation

◆ bwPanelHandler

friend class bwPanelHandler
friend

Member Data Documentation

◆ draw_separator

bool bWidgets::bwPanel::draw_separator = false

◆ header_height

unsigned int bWidgets::bwPanel::header_height

◆ panel_state

State bWidgets::bwPanel::panel_state {State::OPEN}

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