#include <manager.h>
Collaboration diagram for wxIFMComponent:
Public Member Functions | |
wxIFMComponent (wxIFMInterfacePluginBase *ip, int type) | |
~wxIFMComponent () | |
void | AddExtensionData (wxIFMExtensionDataBase *data) |
wxIFMExtensionDataBase * | GetExtensionData (wxIFMComponentDataKeyType key) |
wxIFMExtensionDataBase * | RemoveExtensionData (wxIFMComponentDataKeyType key) |
void | Paint (wxDC &dc, const wxRegion ®ion) |
int | GetType () const |
wxWindow * | GetParentWindow () |
wxRect | GetRect () |
wxRect | GetBackgroundRect () |
wxRect | GetClientRect () |
wxRect | GetConvertedRect (wxRect rect, int coords_from, int coords_to) |
wxSize | GetDesiredSize () |
void | SetDesiredSize (const wxSize &size) |
wxSize | GetMinSize () |
wxSize | GetMaxSize () |
void | Show (bool s, bool update) |
void | Hide () |
bool | IsShown () |
void | VisibilityChanged (bool vis) |
bool | IsVisible () |
Static Public Member Functions | |
static int | GetNextVisibleComponent (const wxIFMComponentArray &components, int start) |
static bool | IsChildOf (wxIFMComponent *parent, wxIFMComponent *child) |
Public Attributes | |
wxRect | m_rect |
size and position of the component | |
wxSize | m_minSize |
minimum size of the component, stored in client coordinates | |
wxSize | m_maxSize |
maximum size of the component, stored in client coordinates | |
wxSize | m_desiredSize |
desired size of the component, stored in client coordinates | |
bool | m_fixed |
Specifies wether the component is allowed to be resized. | |
wxIFMBorders | m_borders |
widths of the top, left, right, bottom borders | |
wxIFMMargins | m_margins |
widths of the top, left, right, bottom margins | |
bool | m_hidden |
if the component is hidden | |
bool | m_visible |
if the component is shown, and all of its parents are shown | |
bool | m_canHide |
true if the component is allowed to be hidden | |
bool | m_docked |
true if the component is docked into another component | |
int | m_alignment |
specifies how the children of the component are aligned | |
wxIFMComponentArray | m_children |
the children of this component | |
wxIFMComponent * | m_parent |
the parent of this component | |
wxString | m_name |
the name of this component | |
int | m_childType |
if the component has a child, this specifies the type of child | |
wxWindow * | m_child |
if the component has a child, this is a pointer to the child window | |
Private Member Functions | |
wxInterfaceManager * | GetManager () |
wxIFMComponent (const wxIFMComponent &) | |
Private Attributes | |
wxIFMComponentDataMap | m_data |
int | m_type |
type of component | |
wxIFMInterfacePluginBase * | m_ip |
Definition at line 532 of file manager.h.
|
Definition at line 663 of file manager.cpp. References wxIFMExtensionDataBase::GetDataKey(), IFM_ALIGN_NONE, IFM_NO_MAXIMUM_SIZE, IFM_NO_MINIMUM_SIZE, and m_data. |
|
Definition at line 685 of file manager.cpp. |
|
Definition at line 688 of file manager.cpp. References m_data. |
|
Called by plugins to add data storage to this component.
Definition at line 705 of file manager.cpp. References wxIFMExtensionDataBase::GetDataKey(), and m_data. Referenced by wxIFMDefaultResizePlugin::OnCreateComponent(), wxIFMDefaultPanelPlugin::OnCreateComponent(), and wxIFMDefaultContainerPlugin::OnCreateComponent(). |
|
Definition at line 837 of file manager.cpp. References wxIFMRectEvent::GetRect(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultPanelPlugin::OnPaintBg(), wxIFMDefaultPanelPlugin::OnUpdate(), and wxIFMDefaultContainerPlugin::OnUpdate(). |
|
Definition at line 844 of file manager.cpp. References wxIFMRectEvent::GetRect(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultPanelPlugin::DrawTabs(), wxIFMDefaultPanelPlugin::OnSelectTab(), wxIFMDefaultPanelPlugin::OnUpdate(), wxIFMDefaultResizePlugin::ResizeComponent(), and wxIFMCalcRectsEvent::wxIFMCalcRectsEvent(). |
|
Converts the given rect from the given coordinate system to the desired coordinate system using this component.
Definition at line 851 of file manager.cpp. References wxIFMRectEvent::GetRect(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultPanelPlugin::OnDock(), wxIFMDefaultContainerPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnGetMinSize(), wxIFMDefaultPanelPlugin::OnGetMinSize(), and wxIFMDefaultPanelPlugin::OnSetDesiredSize(). |
|
Definition at line 858 of file manager.cpp. References wxIFMRectEvent::GetSize(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMCalcRectsEvent::AddComponent(), wxIFMDefaultPanelPlugin::OnDock(), and wxIFMDefaultInterfacePlugin::OnUpdate(). |
|
Retrieves the data stored by this component with the specified key.
Definition at line 710 of file manager.cpp. References m_data. |
|
Definition at line 695 of file manager.cpp. References wxIFMInterfacePluginBase::GetManager(), and m_ip. Referenced by GetParentWindow(). |
|
Definition at line 878 of file manager.cpp. References wxIFMRectEvent::GetSize(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMCalcRectsEvent::AddComponent(). |
|
Definition at line 871 of file manager.cpp. References wxIFMRectEvent::GetSize(), m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMCalcRectsEvent::AddComponent(), wxIFMDefaultContainerPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnUpdate(), and wxIFMDefaultInterfacePlugin::OnUpdate(). |
|
Returns the index of the next visible component, or -1 if there are no more components or they are all hidden. This is a helper function provided for plugins for easier OnUpdate handling of hidden components.
Definition at line 722 of file manager.cpp. Referenced by wxIFMDefaultPlugin::OnCalcRects(), wxIFMDefaultContainerPlugin::OnUpdate(), and wxIFMDefaultResizePlugin::UpdateResizeSashes(). |
|
Definition at line 820 of file manager.cpp. References GetManager(), wxInterfaceManager::GetParent(), and IFM_GET_EXTENSION_DATA. Referenced by wxIFMComponentButtonManager::AddButton(), wxIFMDefaultPlugin::OnConvertRect(), wxIFMDefaultDockingPlugin::OnDragEnd(), wxIFMDefaultDockingPlugin::OnShowDropTargets(), and wxIFMDefaultPlugin::OnUpdate(). |
|
Definition at line 831 of file manager.cpp. References m_rect. Referenced by wxIFMDefaultResizePlugin::OnResizeEnd(), and wxIFMDefaultPanelPlugin::OnSelectTab(). |
|
|
Definition at line 712 of file manager.h. References Show(). Referenced by wxIFMDefaultPanelPlugin::OnShowComponent(). |
|
Definition at line 734 of file manager.cpp. References m_children. Referenced by wxIFMDefaultDockingPlugin::OnShowDropTargets(). |
|
Definition at line 892 of file manager.cpp. References m_hidden. Referenced by wxIFMDefaultPlugin::OnShowComponent(), and wxIFMDefaultPlugin::OnVisibilityChanged(). |
|
Definition at line 907 of file manager.cpp. References m_hidden, and m_visible. Referenced by wxIFMDefaultContainerPlugin::GetVisibleChildrenCount(), wxIFMDefaultContainerPlugin::HasVisibleChildren(), wxIFMDefaultInterfacePlugin::OnPaint(), wxIFMDefaultPlugin::OnPaintBg(), wxIFMDefaultPlugin::OnPaintBorder(), wxIFMDefaultPanelPlugin::OnQueryChild(), wxIFMDefaultPanelPlugin::OnUpdate(), wxIFMDefaultInterfacePlugin::OnUpdate(), wxIFMDefaultPlugin::OnVisibilityChanged(), and Paint(). |
|
Paints this component by sending PAINT_BACKGROUND, PAINTBORDER, and PAINT_DECOR events
Definition at line 778 of file manager.cpp. References IsVisible(), m_children, m_ip, m_rect, Paint(), and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultInterfacePlugin::OnPaint(), and Paint(). |
|
Removes data with the specified key from this component, but does not delete it.
Definition at line 715 of file manager.cpp. References m_data. |
|
Sets the desired size of this component. The size is specified in absolute coordinates Definition at line 865 of file manager.cpp. References m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultPanelPlugin::OnDock(). |
|
Shows or hides this component
Definition at line 885 of file manager.cpp. References m_hidden, m_ip, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by Hide(), wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPanelPlugin::OnComponentButtonClick(), wxIFMDefaultContainerPlugin::OnComponentButtonClick(), wxIFMDefaultPlugin::OnShowChild(), and wxIFMDefaultPlugin::OnShowComponent(). |
|
Called when the visibility of this component has changed. This happens if the component is visible and its parent was hidden or shown.
Definition at line 897 of file manager.cpp. References m_ip, m_visible, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by wxIFMDefaultPlugin::OnShowComponent(), and wxIFMDefaultPlugin::OnVisibilityChanged(). |
|
specifies how the children of the component are aligned
Definition at line 572 of file manager.h. Referenced by wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPlugin::OnCalcRects(), wxIFMDefaultDockingPlugin::OnDock(), wxIFMDefaultDockingPlugin::OnDragEnd(), wxIFMDefaultContainerPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnGetMaxSize(), wxIFMDefaultPlugin::OnGetMinSize(), wxIFMDefaultContainerPlugin::OnSetDesiredSize(), wxIFMDefaultResizePlugin::ResizeComponent(), wxIFMDefaultResizePlugin::UpdateContainerResizeSashes(), and wxIFMDefaultResizePlugin::UpdateResizeSashes(). |
|
widths of the top, left, right, bottom borders
Definition at line 564 of file manager.h. Referenced by wxIFMDefaultPlugin::OnConvertRect(), wxIFMDefaultPanelPlugin::OnCreateComponent(), wxIFMDefaultContainerPlugin::OnCreateComponent(), and wxIFMDefaultPlugin::OnPaintBorder(). |
|
true if the component is allowed to be hidden
Definition at line 569 of file manager.h. Referenced by wxIFMDefaultContainerPlugin::HasNonCloseableChildren(), and wxIFMDefaultInterfacePlugin::OnAddChild(). |
|
if the component has a child, this is a pointer to the child window
Definition at line 579 of file manager.h. Referenced by wxIFMDefaultPlugin::OnGetMinSize(), wxIFMDefaultPanelPlugin::OnQueryChild(), wxIFMDefaultPanelPlugin::OnSetChild(), wxIFMDefaultPanelPlugin::OnUpdate(), and wxIFMDefaultPanelPlugin::OnVisibilityChanged(). |
|
|
if the component has a child, this specifies the type of child
Definition at line 578 of file manager.h. Referenced by wxIFMDefaultPanelPlugin::OnSetChild(). |
|
Definition at line 536 of file manager.h. Referenced by AddExtensionData(), GetExtensionData(), RemoveExtensionData(), wxIFMComponent(), and ~wxIFMComponent(). |
|
desired size of the component, stored in client coordinates
Definition at line 546 of file manager.h. Referenced by wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnSetChildSize(), and wxIFMDefaultPlugin::OnSetDesiredSize(). |
|
true if the component is docked into another component
Definition at line 570 of file manager.h. Referenced by wxIFMDefaultPlugin::OnDeleteComponent(), wxIFMDefaultPlugin::OnDock(), wxIFMDefaultDockingPlugin::OnDragBegin(), wxIFMDefaultDockingPlugin::OnDragEnd(), wxIFMDefaultResizePlugin::OnResizeEnd(), wxIFMDefaultDockingPlugin::OnShowDropTargets(), wxIFMDefaultPlugin::OnUndock(), wxIFMDefaultContainerPlugin::OnUndock(), wxIFMDefaultPlugin::OnUpdate(), wxIFMDefaultContainerPlugin::OnUpdate(), wxIFMDefaultResizePlugin::UpdateContainerResizeSashes(), and wxIFMDefaultResizePlugin::UpdateResizeSashes(). |
|
Specifies wether the component is allowed to be resized. Settings this to true implies that m_minSize = m_maxSize = m_desiredSize, and that the component will never be allowed to have a different size value. Note that the min, max, and desired sizes do not need to be equal so long as this value is true. The min and max sizes will be ignored, and the desired size will be used for the components size.
Definition at line 549 of file manager.h. Referenced by wxIFMDefaultResizePlugin::HasResizeableChildren(), and wxIFMDefaultInterfacePlugin::OnAddChild(). |
|
|
Definition at line 538 of file manager.h. Referenced by GetBackgroundRect(), GetClientRect(), GetConvertedRect(), GetDesiredSize(), GetManager(), GetMaxSize(), GetMinSize(), Paint(), SetDesiredSize(), Show(), and VisibilityChanged(). |
|
widths of the top, left, right, bottom margins
Definition at line 565 of file manager.h. Referenced by wxIFMDefaultPlugin::OnConvertRect(), wxIFMDefaultPanelPlugin::OnCreateComponent(), and wxIFMDefaultContainerPlugin::OnCreateComponent(). |
|
maximum size of the component, stored in client coordinates
Definition at line 545 of file manager.h. Referenced by wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPlugin::OnGetMaxSize(), and wxIFMDefaultPlugin::OnSetChildSize(). |
|
minimum size of the component, stored in client coordinates
Definition at line 544 of file manager.h. Referenced by wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnGetMinSize(), wxIFMDefaultPanelPlugin::OnGetMinSize(), and wxIFMDefaultPlugin::OnSetChildSize(). |
|
the name of this component
Definition at line 576 of file manager.h. Referenced by wxIFMDefaultPanelPlugin::DrawTabs(), wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultPanelPlugin::OnDock(), and wxIFMDefaultPanelPlugin::OnPaintDecor(). |
|
|
size and position of the component
Definition at line 543 of file manager.h. Referenced by wxIFMInterfacePluginBase::GetComponentByPos(), wxIFMDefaultInterfacePlugin::GetComponentByPos(), GetRect(), wxIFMDefaultInterfacePlugin::OnAddChild(), wxIFMDefaultDockingPlugin::OnDragBegin(), wxIFMDefaultPlugin::OnGetRect(), wxIFMDefaultPlugin::OnHitTest(), wxIFMDefaultInterfacePlugin::OnPaint(), wxIFMDefaultResizePlugin::OnResizeEnd(), wxIFMDefaultPlugin::OnSetRect(), wxIFMDefaultPlugin::OnUpdate(), and Paint(). |
|
type of component
Definition at line 537 of file manager.h. Referenced by GetType(). |
|
if the component is shown, and all of its parents are shown
Definition at line 568 of file manager.h. Referenced by IsVisible(), and VisibilityChanged(). |