C# Class NativeUI.UIMenuItem

Mostrar archivo Open project: Guad/NativeUI Class Usage Examples

Protected Properties

Property Type Description
_badgeLeft Sprite
_badgeRight Sprite
_labelText NativeUI.UIResText
_rectangle NativeUI.UIResRectangle
_selectedSprite Sprite
_text NativeUI.UIResText

Public Methods

Method Description
Draw ( ) : void

Draw this item.

Position ( int y ) : void

Set item's position.

SetLeftBadge ( BadgeStyle badge ) : void

Set the left badge. Set it to None to remove the badge.

SetRightBadge ( BadgeStyle badge ) : void

Set the right badge. Set it to None to remove the badge.

SetRightLabel ( string text ) : void

Set the right label.

UIMenuItem ( string text ) : System

Basic menu button.

UIMenuItem ( string text, string description ) : System

Basic menu button.

Private Methods

Method Description
BadgeToColor ( BadgeStyle badge, bool selected ) : Color
BadgeToSpriteLib ( BadgeStyle badge ) : string
BadgeToSpriteName ( BadgeStyle badge, bool selected ) : string
ItemActivate ( NativeUI.UIMenu sender ) : void

Method Details

Draw() public method

Draw this item.
public Draw ( ) : void
return void

Position() public method

Set item's position.
public Position ( int y ) : void
y int
return void

SetLeftBadge() public method

Set the left badge. Set it to None to remove the badge.
public SetLeftBadge ( BadgeStyle badge ) : void
badge BadgeStyle
return void

SetRightBadge() public method

Set the right badge. Set it to None to remove the badge.
public SetRightBadge ( BadgeStyle badge ) : void
badge BadgeStyle
return void

SetRightLabel() public method

Set the right label.
public SetRightLabel ( string text ) : void
text string Text as label. Set it to "" to remove the label.
return void

UIMenuItem() public method

Basic menu button.
public UIMenuItem ( string text ) : System
text string Button label.
return System

UIMenuItem() public method

Basic menu button.
public UIMenuItem ( string text, string description ) : System
text string Button label.
description string Description.
return System

Property Details

_badgeLeft protected_oe property

protected Sprite,NativeUI _badgeLeft
return Sprite

_badgeRight protected_oe property

protected Sprite,NativeUI _badgeRight
return Sprite

_labelText protected_oe property

protected UIResText,NativeUI _labelText
return NativeUI.UIResText

_rectangle protected_oe property

protected UIResRectangle,NativeUI _rectangle
return NativeUI.UIResRectangle

_selectedSprite protected_oe property

protected Sprite,NativeUI _selectedSprite
return Sprite

_text protected_oe property

protected UIResText,NativeUI _text
return NativeUI.UIResText