C# Class Nez.UI.CheckBox

A checkbox is a button that contains an image indicating the checked or unchecked state and a label
Inheritance: TextButton
Mostra file Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
CheckBox ( string text, CheckBoxStyle style ) : System
CheckBox ( string text, Skin skin, string styleName = null ) : System
draw ( Graphics graphics, float parentAlpha ) : void
getImage ( ) : Image
getImageCell ( ) : Cell
getStyle ( ) : CheckBoxStyle

Returns the checkbox's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called

setStyle ( ButtonStyle style ) : void

Method Details

CheckBox() public method

public CheckBox ( string text, CheckBoxStyle style ) : System
text string
style CheckBoxStyle
return System

CheckBox() public method

public CheckBox ( string text, Skin skin, string styleName = null ) : System
text string
skin Skin
styleName string
return System

draw() public method

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
return void

getImage() public method

public getImage ( ) : Image
return Image

getImageCell() public method

public getImageCell ( ) : Cell
return Cell

getStyle() public method

Returns the checkbox's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called
public getStyle ( ) : CheckBoxStyle
return CheckBoxStyle

setStyle() public method

public setStyle ( ButtonStyle style ) : void
style ButtonStyle
return void