MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

wxIFMComponentVisibilityChangedEvent Class Reference

Notifies a component that its visibility state is changed. More...

#include <events.h>

List of all members.

Public Member Functions

 wxIFMComponentVisibilityChangedEvent (wxIFMComponent *component, bool show)
 wxIFMComponentVisibilityChangedEvent (const wxIFMComponentVisibilityChangedEvent &event)
virtual wxEvent * Clone () const
bool GetShow () const

Protected Attributes

bool m_show

Detailed Description

Notifies a component that its visibility state is changed.

This event will be sent when a component is visible, and its parent is either hidden, or shown. It is only a notification that the visibility state of this component has changed, it does not actually change the internal visibility state flag for the component.

You should process this event if you need to hide or show other windows in response to this component being hidden or shown, not wxIFMShowComponentEvent.

While processing this event. wxIFMComponent::m_visible will reflect the old visibility state. After this event has been processed, wxIFMComponent::m_visible will be updated to reflect the new state. This is performed by wxIFMComponent::VisibilityChanged(); you should not send this event directly, but instead use this function.
The default implementation of this event sends a wxIFMComponentVisibilityChangedEvent notification to all of this component's children.

To actually hide a component, use wxIFMShowComponentEvent

See also:

Definition at line 1348 of file events.h.

Constructor & Destructor Documentation

wxIFMComponentVisibilityChangedEvent::wxIFMComponentVisibilityChangedEvent wxIFMComponent component,
bool  show

Definition at line 1354 of file events.h.

Referenced by Clone().

wxIFMComponentVisibilityChangedEvent::wxIFMComponentVisibilityChangedEvent const wxIFMComponentVisibilityChangedEvent event  )  [inline]

Definition at line 1359 of file events.h.

Member Function Documentation

virtual wxEvent* wxIFMComponentVisibilityChangedEvent::Clone  )  const [inline, virtual]

Definition at line 1364 of file events.h.

References wxIFMComponentVisibilityChangedEvent().

bool wxIFMComponentVisibilityChangedEvent::GetShow  )  const [inline]

Wether or not the component is being hidden or shown

Definition at line 1369 of file events.h.

References m_show.

Referenced by wxIFMDefaultContainerPlugin::OnVisibilityChange(), wxIFMDefaultPlugin::OnVisibilityChanged(), and wxIFMDefaultPanelPlugin::OnVisibilityChanged().

Member Data Documentation

bool wxIFMComponentVisibilityChangedEvent::m_show [protected]

Definition at line 1351 of file events.h.

Referenced by GetShow().

The documentation for this class was generated from the following file:


SourceForge Logo