Panels are an interface element which holds a single child widget. The child widget that appears in the panel is specifed by its identifier. All widgets appearing within the layout must have a unique ID throughout the application.
If a widget with the given ID does not exist when the Layout is realized, this panel will be hidden. When the widget with this ID is created, this panel will then show the widget.
Panels will always be children of a TabbedContainer, not a Container directly. You can construct a Layout where Panels are children of Containers, but when the Layout is realized, TabbedContainers will be automatically created.
Public Member Functions | |
Panel * | copy () const |
WidgetID | get_child_id () const |
int | get_flags () const |
std::string & | get_image_name () const |
std::string | get_name () const |
component_type | get_type () const |
Panel (const Panel &other) | |
Panel (WidgetID child, const std::string &name="", const std::string &bitmap="", int flags=0) | |
void | set_name (const std::string &name) |
Private Attributes | |
PanelData * | m_data |
Classes | |
class | PanelData |
ifm::layout::Panel::Panel | ( | WidgetID | child, | |
const std::string & | name = "" , |
|||
const std::string & | bitmap = "" , |
|||
int | flags = 0 | |||
) |
ifm::layout::Panel::Panel | ( | const Panel & | other | ) |
Panel * ifm::layout::Panel::copy | ( | ) | const [virtual] |
WidgetID ifm::layout::Panel::get_child_id | ( | ) | const |
Returns the ID of the child widget.
int ifm::layout::Panel::get_flags | ( | ) | const |
std::string & ifm::layout::Panel::get_image_name | ( | ) | const |
std::string ifm::layout::Component::get_name | ( | ) | const [inherited] |
component_type ifm::layout::Component::get_type | ( | ) | const [inherited] |
void ifm::layout::Component::set_name | ( | const std::string & | name | ) | [inherited] |
Sets the name of this component.
PanelData* ifm::layout::Panel::m_data [private] |
Reimplemented from ifm::layout::Component.