opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
osc::Panel Class Reference

#include <panel.h>

Inheritance diagram for osc::Panel:
[legend]
Collaboration diagram for osc::Panel:
[legend]

Public Member Functions

 Panel (Widget *parent=nullptr, std::string_view panel_name="unnamed", ui::PanelFlags={})
 
bool is_open () const
 
void open ()
 
void close ()
 
- Public Member Functions inherited from osc::Widget
 Widget (Widget *parent=nullptr)
 
virtual ~Widget () noexcept
 
bool on_event (Event &e)
 
void on_mount ()
 
void on_unmount ()
 
void on_tick ()
 
void on_draw ()
 
LifetimedPtr< Widgetweak_ref ()
 
Widgetparent ()
 
template<std::derived_from< Widget > T>
Tfirst_ancestor_of_type ()
 
const Widgetparent () const
 
void set_parent (Widget *)
 
void set_parent (Widget &widget)
 
CStringView name () const
 
void set_name (std::string_view)
 

Protected Member Functions

 Panel (std::unique_ptr< PanelPrivate > &&)
 
- Protected Member Functions inherited from osc::Widget
 Widget (std::unique_ptr< WidgetPrivate > &&)
 
const WidgetPrivatebase_private_data () const
 
WidgetPrivatebase_private_data ()
 
virtual bool impl_on_event (Event &)
 
virtual bool impl_on_display_state_change_event (DisplayStateChangeEvent &)
 
virtual bool impl_on_drop_file_event (DropFileEvent &)
 
virtual bool impl_on_key_event (KeyEvent &)
 
virtual bool impl_on_mouse_event (MouseEvent &)
 
virtual bool impl_on_mouse_wheel_event (MouseWheelEvent &)
 
virtual bool impl_on_quit_event (QuitEvent &)
 
virtual bool impl_on_text_input_event (TextInputEvent &)
 
virtual bool impl_on_window_event (WindowEvent &)
 
virtual void impl_on_mount ()
 
virtual void impl_on_unmount ()
 
virtual void impl_on_tick ()
 

Private Member Functions

void impl_on_draw () final
 
virtual void impl_before_imgui_begin ()
 
virtual void impl_after_imgui_begin ()
 
virtual void impl_draw_content ()
 

Constructor & Destructor Documentation

◆ Panel() [1/2]

osc::Panel::Panel ( Widget parent = nullptr,
std::string_view  panel_name = "unnamed",
ui::PanelFlags  = {} 
)
explicit

◆ Panel() [2/2]

osc::Panel::Panel ( std::unique_ptr< PanelPrivate > &&  )
explicitprotected

Member Function Documentation

◆ close()

void osc::Panel::close ( )

◆ impl_after_imgui_begin()

virtual void osc::Panel::impl_after_imgui_begin ( )
inlineprivatevirtual

◆ impl_before_imgui_begin()

virtual void osc::Panel::impl_before_imgui_begin ( )
inlineprivatevirtual

◆ impl_draw_content()

virtual void osc::Panel::impl_draw_content ( )
inlineprivatevirtual

◆ impl_on_draw()

void osc::Panel::impl_on_draw ( )
finalprivatevirtual

Reimplemented from osc::Widget.

◆ is_open()

bool osc::Panel::is_open ( ) const

◆ open()

void osc::Panel::open ( )

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