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

#include <bwScrollView.h>

+ Inheritance diagram for bWidgets::bwScrollView:
+ Collaboration diagram for bWidgets::bwScrollView:

Public Member Functions

 bwScrollView (bwScreenGraph::ContainerNode &node, unsigned int width=0, unsigned int height=0)
 
auto getTypeIdentifier () const -> std::string_view override
 
void draw (bwStyle &style) override
 
auto createHandler () -> std::unique_ptr< bwScreenGraph::EventHandler > override
 
auto getScrollOffsetY () const -> int
 
auto getContentBounds (float interface_scale) const -> bwRectanglePixel
 
- 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
 

Friends

class bwScrollViewHandler
 

Additional Inherited Members

- Public Types inherited from bWidgets::bwWidget
enum class  State { NORMAL = 0 , HIGHLIGHTED , SUNKEN , STATE_TOT }
 
- 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
 
- 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
 

Constructor & Destructor Documentation

◆ bwScrollView()

bWidgets::bwScrollView::bwScrollView ( bwScreenGraph::ContainerNode node,
unsigned int  width = 0,
unsigned int  height = 0 
)

Member Function Documentation

◆ createHandler()

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

Implements bWidgets::bwWidget.

◆ draw()

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

Implements bWidgets::bwWidget.

◆ getContentBounds()

auto bWidgets::bwScrollView::getContentBounds ( float  interface_scale) const -> bwRectanglePixel

◆ getScrollOffsetY()

auto bWidgets::bwScrollView::getScrollOffsetY ( ) const -> int

◆ getTypeIdentifier()

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

Implements bWidgets::bwWidget.

Friends And Related Function Documentation

◆ bwScrollViewHandler

friend class bwScrollViewHandler
friend

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