Home · All Classes · Main Classes · Deprecated |
View class for switch button. More...
Inherits MButtonView.
Public Member Functions | |
MButtonSwitchView (MButton *controller) | |
virtual | ~MButtonSwitchView () |
View class for switch button.
![]() | ![]() | ![]() |
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.
Users can change the state of switch button by tapping on it or dragging the handle/thumb to different position.
MButtonSwitchView::MButtonSwitchView | ( | MButton * | controller | ) |
Constructs the view.
Pointer | to the controller. |
MButtonSwitchView::~MButtonSwitchView | ( | ) | [virtual] |
Destructs the view.
Copyright © 2010 Nokia Corporation | MeeGo Touch |