67 UIWidget(std::weak_ptr<Window> parent_window);
102 std::max(minimal_size.
width, custom_size.
width ),
128 return (
bool)(parent.lock());
140 ID(
const ID& other) : id(other.id) {}
141 explicit ID(
const std::string& s) : id(s) {}
155 if(search_id == widget_id)
return shared_from_this();
230 bool needs_redrawing =
true;
235 bool in_custom_resize =
false;
237 std::shared_ptr<SDLTexture> cache_texture;
238 void RedrawToCache(
Size2D size);
243 #endif //UIWIDGET_HPP
Definition: DrawContext.hpp:65
int height
Definition: Utilities.hpp:46
Definition: Signal.hpp:247
Definition: UIWidget.hpp:33
virtual void RequestFocus()=0
Definition: Utilities.hpp:34
int width
Definition: Utilities.hpp:46
Definition: Alertable.hpp:26
DisplayMode display_mode
Definition: UIVisibilityBase.hpp:50
Definition: UIMouseEventsBase.hpp:26
bool IsEmpty() const
Definition: Utilities.hpp:45
Definition: Utilities.hpp:157
Definition: Utilities.hpp:40