1 #ifndef LIBWTK_SDL2_WIDGET_HPP 2 #define LIBWTK_SDL2_WIDGET_HPP 8 #include "context_info.hpp" 9 #include "draw_context.hpp" 10 #include "geometry.hpp" 11 #include "key_event.hpp" 12 #include "mouse_event.hpp" 13 #include "navigation_type.hpp" 14 #include "selection_context.hpp" 22 typedef std::shared_ptr<widget> widget_ptr;
33 dirty_type combine(dirty_type a, dirty_type b);
94 void mark_child_dirty(
widget * child);
122 virtual void on_key_event(
key_event const & e);
135 SDL_Rect
const &
get_box()
const;
159 virtual std::vector<widget const *>
get_children()
const;
236 virtual void on_select();
237 virtual void on_unselect();
270 void notify_parent_child_dirty();
278 int opt_min(
int opt_length,
int length);
279 int opt_max(
int opt_length,
int length);
280 int opt_or_value(
int opt_length,
int length);
281 int opt_change(
int opt_length,
int length);
Definition: mouse_event.hpp:19
Definition: mouse_event.hpp:8
Definition: context_info.hpp:7
Definition: draw_context.hpp:126
Definition: geometry.hpp:12
Definition: key_event.hpp:4
Definition: geometry.hpp:6
Definition: selection_context.hpp:18
Definition: mouse_event.hpp:26
Definition: widget.hpp:35