MatOCAD Logo

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

wxIFMRectEvent Class Reference

Events to set and get absolute, client, and background rects. More...

#include <events.h>

Inherited by wxIFMConvertRectEvent.

Inheritance diagram for wxIFMRectEvent:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 wxIFMRectEvent (wxEventType id, wxIFMComponent *component, const wxPoint &pos, const wxSize &size)
 wxIFMRectEvent (wxEventType id, wxIFMComponent *component, const wxRect &rect=wxRect(0, 0, 0, 0))
 wxIFMRectEvent (const wxIFMRectEvent &event)
virtual wxEvent * Clone () const
wxSize GetSize () const
wxPoint GetPosition () const
wxRect GetRect () const
void SetSize (const wxSize &s)
void SetPosition (const wxPoint &p)
void SetRect (const wxRect &r)

Protected Attributes

wxRect m_rect

Detailed Description

Events to set and get absolute, client, and background rects.

If you would like the absolute rect, construct this event with the wxEVT_IFM_GETRECT or wxEVT_IFM_GETABSOLUTERECT event id's. For background rect, use wxEVT_IFM_GETBACKGROUNDRECT, and use wxEVT_IFM_GETCLIENTRECT for the client rect. The same applies for the SET variants of these events.

This event is used to get and set all sizes and coordinate system rects for a given component. This means that some events will not use the position values of the rect, but instead only use the size values. The events that do this are get and set variants of desired size, minimum size, and maximum size.

See also:
coordsystems, wxIFMConvertRectEvent

Definition at line 476 of file events.h.


Constructor & Destructor Documentation

wxIFMRectEvent::wxIFMRectEvent wxEventType  id,
wxIFMComponent component,
const wxPoint &  pos,
const wxSize &  size
[inline]
 

Definition at line 484 of file events.h.

Referenced by Clone().

wxIFMRectEvent::wxIFMRectEvent wxEventType  id,
wxIFMComponent component,
const wxRect &  rect = wxRect(0,0,0,0)
[inline]
 

Definition at line 490 of file events.h.

wxIFMRectEvent::wxIFMRectEvent const wxIFMRectEvent event  )  [inline]
 

Definition at line 496 of file events.h.


Member Function Documentation

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

Reimplemented in wxIFMConvertRectEvent.

Definition at line 501 of file events.h.

References wxIFMRectEvent().

wxPoint wxIFMRectEvent::GetPosition  )  const [inline]
 

Definition at line 504 of file events.h.

References m_rect.

wxRect wxIFMRectEvent::GetRect  )  const [inline]
 

Definition at line 505 of file events.h.

References m_rect.

Referenced by wxIFMComponent::GetBackgroundRect(), wxIFMComponent::GetClientRect(), wxIFMComponent::GetConvertedRect(), wxIFMDefaultResizePlugin::OnConvertRect(), wxIFMDefaultPlugin::OnConvertRect(), wxIFMDefaultInterfacePlugin::OnGetContentRect(), wxIFMDefaultPlugin::OnGetRect(), wxIFMDefaultPlugin::OnHitTest(), wxIFMDefaultResizePlugin::OnLeftDown(), wxIFMDefaultPlugin::OnPaintBg(), wxIFMDefaultPlugin::OnPaintBorder(), wxIFMDefaultResizePlugin::OnPaintDecor(), wxIFMDefaultResizePlugin::OnResizeBegin(), wxIFMDefaultResizePlugin::OnSetCursor(), wxIFMDefaultPanelPlugin::OnSetDesiredSize(), wxIFMDefaultContainerPlugin::OnSetDesiredSize(), wxIFMDefaultResizePlugin::OnSetRect(), wxIFMDefaultPlugin::OnSetRect(), wxIFMDefaultDockingPlugin::OnShowDropTargets(), wxIFMDefaultPlugin::OnUpdate(), and wxIFMDefaultPanelPlugin::OnUpdate().

wxSize wxIFMRectEvent::GetSize  )  const [inline]
 

Definition at line 503 of file events.h.

References m_rect.

Referenced by wxIFMComponent::GetDesiredSize(), wxIFMComponent::GetMaxSize(), wxIFMComponent::GetMinSize(), wxIFMDefaultPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnGetMaxSize(), wxIFMDefaultPlugin::OnGetMinSize(), wxIFMDefaultResizePlugin::OnResizeBegin(), wxIFMDefaultPlugin::OnSetDesiredSize(), and wxIFMDefaultPlugin::OnSetRect().

void wxIFMRectEvent::SetPosition const wxPoint &  p  )  [inline]
 

Definition at line 508 of file events.h.

References m_rect.

void wxIFMRectEvent::SetRect const wxRect &  r  )  [inline]
 

Definition at line 509 of file events.h.

References m_rect.

Referenced by wxIFMDefaultResizePlugin::OnConvertRect(), wxIFMDefaultPlugin::OnConvertRect(), wxIFMDefaultInterfacePlugin::OnGetContentRect(), wxIFMDefaultResizePlugin::OnGetRect(), wxIFMDefaultPlugin::OnGetRect(), and wxIFMDefaultContainerPlugin::OnGetRect().

void wxIFMRectEvent::SetSize const wxSize &  s  )  [inline]
 

Definition at line 507 of file events.h.

References m_rect.

Referenced by wxIFMDefaultPlugin::OnGetDesiredSize(), wxIFMDefaultContainerPlugin::OnGetDesiredSize(), wxIFMDefaultPlugin::OnGetMaxSize(), wxIFMDefaultPlugin::OnGetMinSize(), and wxIFMDefaultPanelPlugin::OnGetMinSize().


Member Data Documentation

wxRect wxIFMRectEvent::m_rect [protected]
 

Definition at line 479 of file events.h.

Referenced by GetPosition(), GetRect(), GetSize(), SetPosition(), SetRect(), and SetSize().


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

 

SourceForge Logo