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

#include <undo_button.h>

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

Public Member Functions

 UndoButton (Widget *parent, std::shared_ptr< UndoRedoBase > undo_redo, std::string button_icon_text="<")
 
- 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)
 

Private Member Functions

void impl_on_draw () final
 

Additional Inherited Members

- 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 ()
 

Constructor & Destructor Documentation

◆ UndoButton()

osc::UndoButton::UndoButton ( Widget parent,
std::shared_ptr< UndoRedoBase undo_redo,
std::string  button_icon_text = "<" 
)
inlineexplicit

Member Function Documentation

◆ impl_on_draw()

void osc::UndoButton::impl_on_draw ( )
finalprivatevirtual

Reimplemented from osc::Widget.


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