Home · All Classes · Main Classes · Deprecated
Public Member Functions

MButtonSwitchView Class Reference

View class for switch button. More...

Inherits MButtonView.

List of all members.

Public Member Functions

 MButtonSwitchView (MButton *controller)
virtual ~MButtonSwitchView ()

Detailed Description

View class for switch button.

Overview

switch_button_off.png
switch_button_on.png
switch_button_drag.png

This type of button acts as a visual "toggle switch" that can be turned on or off.

A Switch differs from a push button and an icon button visually: the button looks like a switch, communicating that pressing this button will not go to another view or will not perform any other actions except to toggle the state of the button. In addition to pressing, Switch state can be toggled also by dragging.

A Switch consists always of a graphic image representing a "physical switch", with an optional text label. If a label is needed, it should be placed next to the Switch button.

A Switch button supports two states:

The Switch has its own haptic feedback: switching button from off to on feels different than when switching from on to off.

Interactions

Users can change the state of switch button by tapping on it or dragging the handle/thumb to different position.

Open issues

See also:
MButton MButtonView MButtonSwitchStyle

Constructor & Destructor Documentation

MButtonSwitchView::MButtonSwitchView ( MButton controller  ) 

Constructs the view.

Parameters:
Pointer to the controller.
MButtonSwitchView::~MButtonSwitchView (  )  [virtual]

Destructs the view.


Copyright © 2010 Nokia Corporation
MeeGo Touch