Home · All Classes · Main Classes · Deprecated
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

MOnDisplayChangeEvent Class Reference

Inherits QGraphicsSceneEvent.

List of all members.

Public Types

enum  State { FullyOnDisplay = 0, FullyOffDisplay, MustBeResolved, PartiallyOnDisplay }

Public Member Functions

 MOnDisplayChangeEvent (State state, const QRectF &viewRect)
 MOnDisplayChangeEvent (bool visible, const QRectF &viewRect)
virtual ~MOnDisplayChangeEvent ()
State state () const
QRectF viewRect () const

Static Public Member Functions

static QEvent::Type eventNumber ()

Protected Attributes

MOnDisplayChangeEventPrivate *const d_ptr

Detailed Description

This event is sent to a MWidget so that it can notify subscribers about changes on its presence on display. The event can be triggered by e.g. panning or switching a MApplicationPage or obscuring the MApplicationWindow with another window. Note that this differs from Qt's explicit hide()/show() semantics. MWidget forwards this event to its children.


Member Enumeration Documentation

Possible visibility states.

Enumerator:
FullyOnDisplay 

Widget is definitely fully on display

FullyOffDisplay 

Widget is definitely fully off display

MustBeResolved 

Widget must use viewRect to verify its presence on the display, as well as of all its children.

PartiallyOnDisplay 

Widget is partially present on the display, according to its bounding rectangle. Widget may still use viewRect to get a more precise (and therefore more computationally expensive) assertion by comparing it against its shape, for instance.


Constructor & Destructor Documentation

MOnDisplayChangeEvent::MOnDisplayChangeEvent ( State  state,
const QRectF viewRect 
)

Constructor.

Parameters:
newState new visibility state
Viewport rectangle. Used to resolve the visibility if widget may be only partially on the display
MOnDisplayChangeEvent::MOnDisplayChangeEvent ( bool  visible,
const QRectF viewRect 
)

Convenience constructor.

Parameters:
visible true : FullyOnDisplay, false : FullyOffDisplay
Viewport rectangle. Used to resolve the visibility if widget may be only partially on the display
MOnDisplayChangeEvent::~MOnDisplayChangeEvent (  )  [virtual]

Destructor.


Member Function Documentation

QEvent::Type MOnDisplayChangeEvent::eventNumber (  )  [static]

Cancel Event definition.

MOnDisplayChangeEvent::State MOnDisplayChangeEvent::state (  )  const

Return the state.

QRectF MOnDisplayChangeEvent::viewRect (  )  const

Return the viewport rectangle.


Member Data Documentation

MOnDisplayChangeEventPrivate* const MOnDisplayChangeEvent::d_ptr [protected]

Copyright © 2010 Nokia Corporation
MeeGo Touch