neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::decorated< WidgetType, OtherBases > Class Template Reference

#include <decorated.hpp>

Inheritance diagram for neogfx::decorated< WidgetType, OtherBases >:
neogfx::i_standard_layout_container

Public Types

typedef WidgetType widget_type
 

Public Member Functions

template<typename... Args>
 decorated (neogfx::decoration_style aStyle, Args &&... aArgs)
 
neogfx::autoscale autoscale () const
 
neogfx::decoration_style decoration_style () const
 
void set_decoration_style (neogfx::decoration_style aStyle)
 
neogfx::decoration decoration () const
 
bool has_client_widget () const override
 
const i_widgetclient_widget () const override
 
i_widgetclient_widget () override
 
void set_client (i_widget &aClient) override
 
void set_client (i_ref_ptr< i_widget > const &aClient) override
 
const i_title_bartitle_bar () const override
 
i_title_bartitle_bar () override
 
void set_title_bar (i_title_bar &aTitleBar) override
 
void set_title_bar (i_ref_ptr< i_title_bar > const &aTitleBar)
 
const i_status_barstatus_bar () const override
 
i_status_barstatus_bar () override
 
void set_status_bar (i_status_bar &aStatusBar) override
 
void set_status_bar (i_ref_ptr< i_status_bar > const &aStatusBar)
 
template<typename... Args>
ref_ptr< i_title_barcreate_title_bar (Args &&... aArgs)
 
template<typename TitleBar , typename... Args>
ref_ptr< i_title_barcreate_title_bar (Args &&... aArgs)
 
template<typename StatusBar , typename... Args>
ref_ptr< i_status_barcreate_status_bar (Args &&... aArgs)
 
bool is_widget () const override
 
const i_widgetas_widget () const override
 
i_widgetas_widget () override
 
bool part_active (widget_part aPart) const override
 
widget_part part (const point &aPosition) const override
 
bool has_layout (standard_layout aStandardLayout) const override
 
const i_layoutlayout (standard_layout aStandardLayout, layout_position aPosition=layout_position::None) const override
 
i_layoutlayout (standard_layout aStandardLayout, layout_position aPosition=layout_position::None) override
 
void fix_weightings (bool aRecalculate=true) override
 
- Public Member Functions inherited from neogfx::i_standard_layout_container
virtual ~i_standard_layout_container ()=default
 
const i_layoutnon_client_layout () const
 
i_layoutnon_client_layout ()
 
const i_layouttitle_bar_layout () const
 
i_layouttitle_bar_layout ()
 
const i_layoutmenu_layout () const
 
i_layoutmenu_layout ()
 
const i_layouttoolbar_layout (layout_position aPosition=layout_position::Top) const
 
i_layouttoolbar_layout (layout_position aPosition=layout_position::Top)
 
const i_layoutdock_layout (layout_position aPosition=layout_position::Left) const
 
i_layoutdock_layout (layout_position aPosition=layout_position::Left)
 
const i_layoutdock_layout (dock_area aDockArea=dock_area::Left) const
 
i_layoutdock_layout (dock_area aDockArea=dock_area::Left)
 
const i_layoutclient_layout () const
 
i_layoutclient_layout ()
 
const i_layoutbutton_box_layout () const
 
i_layoutbutton_box_layout ()
 
const i_layoutstatus_bar_layout () const
 
i_layoutstatus_bar_layout ()
 

Protected Member Functions

neogfx::size_policy size_policy () const override
 
size weight () const override
 
void capture_released () override
 
void mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers) override
 
rect default_clip_rect (bool aIncludeNonClient=false) const override
 
void init ()
 
i_layout_item const & resizing_context () const
 
i_layout_itemresizing_context ()
 
void update_tracking (const point &aPosition)
 

Additional Inherited Members

- Static Public Member Functions inherited from neogfx::i_standard_layout_container
static layout_position to_position (dock_area aDockArea)
 

Detailed Description

template<typename WidgetType, typename... OtherBases>
class neogfx::decorated< WidgetType, OtherBases >

Definition at line 114 of file decorated.hpp.

Member Typedef Documentation

◆ widget_type

template<typename WidgetType , typename... OtherBases>
typedef WidgetType neogfx::decorated< WidgetType, OtherBases >::widget_type

Definition at line 119 of file decorated.hpp.

Constructor & Destructor Documentation

◆ decorated()

template<typename WidgetType , typename... OtherBases>
template<typename... Args>
neogfx::decorated< WidgetType, OtherBases >::decorated ( neogfx::decoration_style  aStyle,
Args &&...  aArgs 
)
inline

Definition at line 130 of file decorated.hpp.

Member Function Documentation

◆ as_widget() [1/2]

template<typename WidgetType , typename... OtherBases>
const i_widget & neogfx::decorated< WidgetType, OtherBases >::as_widget ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 274 of file decorated.hpp.

◆ as_widget() [2/2]

template<typename WidgetType , typename... OtherBases>
i_widget & neogfx::decorated< WidgetType, OtherBases >::as_widget ( )
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 278 of file decorated.hpp.

◆ autoscale()

template<typename WidgetType , typename... OtherBases>
neogfx::autoscale neogfx::decorated< WidgetType, OtherBases >::autoscale ( ) const
inline

Definition at line 139 of file decorated.hpp.

◆ capture_released()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::capture_released ( )
inlineoverrideprotected

Definition at line 464 of file decorated.hpp.

◆ client_widget() [1/2]

template<typename WidgetType , typename... OtherBases>
const i_widget & neogfx::decorated< WidgetType, OtherBases >::client_widget ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::window.

Definition at line 169 of file decorated.hpp.

◆ client_widget() [2/2]

template<typename WidgetType , typename... OtherBases>
i_widget & neogfx::decorated< WidgetType, OtherBases >::client_widget ( )
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::window.

Definition at line 175 of file decorated.hpp.

◆ create_status_bar()

template<typename WidgetType , typename... OtherBases>
template<typename StatusBar , typename... Args>
ref_ptr< i_status_bar > neogfx::decorated< WidgetType, OtherBases >::create_status_bar ( Args &&...  aArgs)
inline

Definition at line 264 of file decorated.hpp.

◆ create_title_bar() [1/2]

template<typename WidgetType , typename... OtherBases>
template<typename... Args>
ref_ptr< i_title_bar > neogfx::decorated< WidgetType, OtherBases >::create_title_bar ( Args &&...  aArgs)
inline

Definition at line 250 of file decorated.hpp.

◆ create_title_bar() [2/2]

template<typename WidgetType , typename... OtherBases>
template<typename TitleBar , typename... Args>
ref_ptr< i_title_bar > neogfx::decorated< WidgetType, OtherBases >::create_title_bar ( Args &&...  aArgs)
inline

Definition at line 258 of file decorated.hpp.

◆ decoration()

template<typename WidgetType , typename... OtherBases>
neogfx::decoration neogfx::decorated< WidgetType, OtherBases >::decoration ( ) const
inline

Definition at line 160 of file decorated.hpp.

◆ decoration_style()

template<typename WidgetType , typename... OtherBases>
neogfx::decoration_style neogfx::decorated< WidgetType, OtherBases >::decoration_style ( ) const
inline

Definition at line 145 of file decorated.hpp.

◆ default_clip_rect()

template<typename WidgetType , typename... OtherBases>
rect neogfx::decorated< WidgetType, OtherBases >::default_clip_rect ( bool  aIncludeNonClient = false) const
inlineoverrideprotected

Definition at line 493 of file decorated.hpp.

◆ fix_weightings()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::fix_weightings ( bool  aRecalculate = true)
inlineoverride

Definition at line 437 of file decorated.hpp.

◆ has_client_widget()

template<typename WidgetType , typename... OtherBases>
bool neogfx::decorated< WidgetType, OtherBases >::has_client_widget ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::window.

Definition at line 165 of file decorated.hpp.

◆ has_layout()

template<typename WidgetType , typename... OtherBases>
bool neogfx::decorated< WidgetType, OtherBases >::has_layout ( standard_layout  aStandardLayout) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::dialog, neogfx::dialog, and neogfx::window.

Definition at line 371 of file decorated.hpp.

◆ init()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::init ( )
inlineprotected

Definition at line 502 of file decorated.hpp.

◆ is_widget()

template<typename WidgetType , typename... OtherBases>
bool neogfx::decorated< WidgetType, OtherBases >::is_widget ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 270 of file decorated.hpp.

◆ layout() [1/2]

template<typename WidgetType , typename... OtherBases>
const i_layout & neogfx::decorated< WidgetType, OtherBases >::layout ( standard_layout  aStandardLayout,
layout_position  aPosition = layout_position::None 
) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::dialog, neogfx::dialog, and neogfx::window.

Definition at line 397 of file decorated.hpp.

◆ layout() [2/2]

template<typename WidgetType , typename... OtherBases>
i_layout & neogfx::decorated< WidgetType, OtherBases >::layout ( standard_layout  aStandardLayout,
layout_position  aPosition = layout_position::None 
)
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::dialog, neogfx::dialog, and neogfx::window.

Definition at line 432 of file decorated.hpp.

◆ mouse_button_pressed()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::mouse_button_pressed ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
inlineoverrideprotected

Definition at line 470 of file decorated.hpp.

◆ mouse_moved()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::mouse_moved ( const point aPosition,
key_modifiers_e  aKeyModifiers 
)
inlineoverrideprotected

Definition at line 487 of file decorated.hpp.

◆ part()

template<typename WidgetType , typename... OtherBases>
widget_part neogfx::decorated< WidgetType, OtherBases >::part ( const point aPosition) const
inlineoverride

Definition at line 306 of file decorated.hpp.

◆ part_active()

template<typename WidgetType , typename... OtherBases>
bool neogfx::decorated< WidgetType, OtherBases >::part_active ( widget_part  aPart) const
inlineoverride

Definition at line 283 of file decorated.hpp.

◆ resizing_context() [1/2]

template<typename WidgetType , typename... OtherBases>
i_layout_item & neogfx::decorated< WidgetType, OtherBases >::resizing_context ( )
inlineprotected

Definition at line 566 of file decorated.hpp.

◆ resizing_context() [2/2]

template<typename WidgetType , typename... OtherBases>
i_layout_item const & neogfx::decorated< WidgetType, OtherBases >::resizing_context ( ) const
inlineprotected

Definition at line 559 of file decorated.hpp.

◆ set_client() [1/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_client ( i_ref_ptr< i_widget > const &  aClient)
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::window.

Definition at line 185 of file decorated.hpp.

◆ set_client() [2/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_client ( i_widget aClient)
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Reimplemented in neogfx::window.

Definition at line 181 of file decorated.hpp.

◆ set_decoration_style()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_decoration_style ( neogfx::decoration_style  aStyle)
inline

Definition at line 149 of file decorated.hpp.

◆ set_status_bar() [1/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_status_bar ( i_ref_ptr< i_status_bar > const &  aStatusBar)
inlinevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 243 of file decorated.hpp.

◆ set_status_bar() [2/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_status_bar ( i_status_bar aStatusBar)
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 239 of file decorated.hpp.

◆ set_title_bar() [1/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_title_bar ( i_ref_ptr< i_title_bar > const &  aTitleBar)
inlinevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 223 of file decorated.hpp.

◆ set_title_bar() [2/2]

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::set_title_bar ( i_title_bar aTitleBar)
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 219 of file decorated.hpp.

◆ size_policy()

template<typename WidgetType , typename... OtherBases>
neogfx::size_policy neogfx::decorated< WidgetType, OtherBases >::size_policy ( ) const
inlineoverrideprotected

Definition at line 447 of file decorated.hpp.

◆ status_bar() [1/2]

template<typename WidgetType , typename... OtherBases>
const i_status_bar & neogfx::decorated< WidgetType, OtherBases >::status_bar ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 229 of file decorated.hpp.

◆ status_bar() [2/2]

template<typename WidgetType , typename... OtherBases>
i_status_bar & neogfx::decorated< WidgetType, OtherBases >::status_bar ( )
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 235 of file decorated.hpp.

◆ title_bar() [1/2]

template<typename WidgetType , typename... OtherBases>
const i_title_bar & neogfx::decorated< WidgetType, OtherBases >::title_bar ( ) const
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 209 of file decorated.hpp.

◆ title_bar() [2/2]

template<typename WidgetType , typename... OtherBases>
i_title_bar & neogfx::decorated< WidgetType, OtherBases >::title_bar ( )
inlineoverridevirtual

Implements neogfx::i_standard_layout_container.

Definition at line 215 of file decorated.hpp.

◆ update_tracking()

template<typename WidgetType , typename... OtherBases>
void neogfx::decorated< WidgetType, OtherBases >::update_tracking ( const point aPosition)
inlineprotected

Definition at line 570 of file decorated.hpp.

◆ weight()

template<typename WidgetType , typename... OtherBases>
size neogfx::decorated< WidgetType, OtherBases >::weight ( ) const
inlineoverrideprotected

Definition at line 455 of file decorated.hpp.


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