Container2.hpp
Go to the documentation of this file.
129 virtual ewol::Padding onChangeSizePadded(const ewol::Padding& _padding = ewol::Padding(0,0,0,0));
bool loadXML(const exml::Element &_node) override
load properties with an XML node.
void requestDestroyFromChild(const ewol::ObjectShared &_child) override
Called by a whild that want to remove pointer of itself from the current list of his parrent...
Definition: DrawProperty.hpp:15
ewol::WidgetShared m_subWidget[2]
2 subwidget possible
Definition: Container2.hpp:24
void setSubWidget(ewol::WidgetShared _subWidget)
Specify the current widget.
Definition: Container2.hpp:50
int32_t m_idWidgetDisplayed
current widget displayed
Definition: Container2.hpp:25
void setOffset(const vec2 &_newVal) override
set the zoom property of the widget.
void subWidgetRemove()
remove the subWidget node (async).
Definition: Container2.hpp:94
ewol::ObjectShared getSubObjectNamed(const std::string &_objectName) override
Retrive an object with his name (in the global list)
the Cotainer widget is a widget that have an only one subWidget
Definition: Container2.hpp:22
void subWidgetRemoveToggle()
remove the subWidget Toggle node (async).
Definition: Container2.hpp:100
Definition: Area.hpp:16
void subWidgetUnLink()
Unlink the subwidget Node.
Definition: Container2.hpp:113
void calculateMinMaxSize() override
calculate the minimum and maximum size (need to estimate expend properties of the widget) ...
Definition: Container2.hpp:164
virtual void calculateMinMaxSizePadded(const ewol::Padding &_padding=ewol::Padding(0, 0, 0, 0))
calculate the minimum and maximum size (need to estimate expend properties of the widget) ...
virtual void onDetectPresenceToggleWidget()
Called when parsing a XML and detect the presence of a second Widget.
Definition: Container2.hpp:139
void onChangeSize() override
Parent have set the size and the origin. the container need to update the subwidget property...
Definition: Container2.hpp:161
Definition: Padding.hpp:14
virtual void subWidgetReplace(const ewol::WidgetShared &_oldWidget, const ewol::WidgetShared &_newWidget)
Replace a old subwidget with a new one.
int32_t convertId(int32_t _id)
convert ID of the widget if not existed
Definition: Container2.hpp:145
Widget class is the main widget interface, it hase some generic properties: :** known his parent :** ...
Definition: Widget.hpp:73
void setSubWidgetToggle(ewol::WidgetShared _subWidget)
Specify the current toggle widget.
Definition: Container2.hpp:57
ewol::WidgetShared getSubWidget() const
get the current displayed composition
Definition: Container2.hpp:74
ewol::WidgetShared getSubWidgetToggle() const
get the current displayed composition
Definition: Container2.hpp:81
void onRegenerateDisplay() override
Event generated when a redraw is needed.
void subWidgetUnLinkToggle()
Unlink the subwidget Toggle Node.
Definition: Container2.hpp:119
void systemDraw(const ewol::DrawProperty &_displayProp) override
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
virtual ewol::Padding onChangeSizePadded(const ewol::Padding &_padding=ewol::Padding(0, 0, 0, 0))
Parent set the possible diplay size of the current widget whith his own possibilities By default this...