MAUI::Screen Class Reference

#include <MAUI/Screen.h>

Inheritance diagram for MAUI::Screen:

MAUtil::KeyListener MAUtil::PointerListener List of all members.

Detailed Description

A Screen is a logically distinct part of a MAUI interface. MAUI applications typically consist of a number of screens that the user can navigate between.


Public Member Functions

 Screen ()
virtual void show ()
void setMain (Widget *main)
WidgetgetMain ()
virtual void keyPressEvent (int keyCode, int nativeCode)
virtual void keyReleaseEvent (int keyCode, int nativeCode)
virtual void pointerPressEvent (MAPoint2d point)
virtual void pointerReleaseEvent (MAPoint2d point)
virtual void pointerMoveEvent (MAPoint2d point)
 ~Screen ()
virtual void keyPressEvent (int keyCode)
virtual void keyReleaseEvent (int keyCode)

Protected Member Functions

virtual void hide ()

Protected Attributes

Widgetmain

Static Protected Attributes

static ScreencurrentScreen


Constructor & Destructor Documentation

MAUI::Screen::Screen  ) 
 

MAUI::Screen::~Screen  ) 
 

Does not delete the main Widget.


Member Function Documentation

virtual void MAUI::Screen::show  )  [virtual]
 

Causes this screen to be shown and all other screens in the application to be hidden.

void MAUI::Screen::setMain Widget main  ) 
 

Sets the main widget for this screen. The widget will be resized to match the screen resolution of the device

Widget* MAUI::Screen::getMain  ) 
 

Returns the main widget of this screen

virtual void MAUI::Screen::keyPressEvent int  keyCode,
int  nativeCode
[inline, virtual]
 

keylistener implementation to overload when inheriting your own screens.

Reimplemented from MAUtil::KeyListener.

virtual void MAUI::Screen::keyReleaseEvent int  keyCode,
int  nativeCode
[inline, virtual]
 

keylistener implementation to overload when inheriting your own screens.

Reimplemented from MAUtil::KeyListener.

virtual void MAUI::Screen::pointerPressEvent MAPoint2d  point  )  [inline, virtual]
 

pointerlistener implementation to overload when inheriting your own screens.

Implements MAUtil::PointerListener.

virtual void MAUI::Screen::pointerReleaseEvent MAPoint2d  point  )  [inline, virtual]
 

pointerlistener implementation to overload when inheriting your own screens.

Implements MAUtil::PointerListener.

virtual void MAUI::Screen::pointerMoveEvent MAPoint2d  point  )  [inline, virtual]
 

pointerlistener implementation to overload when inheriting your own screens.

Implements MAUtil::PointerListener.

virtual void MAUI::Screen::hide  )  [protected, virtual]
 

virtual void MAUtil::KeyListener::keyPressEvent int  keyCode  )  [inline, virtual, inherited]
 

virtual void MAUtil::KeyListener::keyReleaseEvent int  keyCode  )  [inline, virtual, inherited]
 


Member Data Documentation

Screen* MAUI::Screen::currentScreen [static, protected]
 

Widget* MAUI::Screen::main [protected]
 


Generated on Sat Feb 13 00:15:39 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO