C# Class OpenRA.Mods.Common.Widgets.ButtonWidget

Inheritance: OpenRA.Widgets.Widget
Show file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Background string
BaseLine int
Contrast bool
ContrastColorDark Color
ContrastColorLight Color
Depressed bool
Disabled bool
Font string
GetColor Func
GetColorDisabled Func
GetContrastColorDark Func
GetContrastColorLight Func
GetKey Hotkey>.Func
GetText Func
GetTooltipText Func
Highlighted bool
IsDisabled Func
IsHighlighted Func
OnClick System.Action
OnDoubleClick System.Action
OnKeyPress Action
OnMouseDown Action
OnMouseUp Action
Shadow bool
TextColor Color
TextColorDisabled Color
TooltipContainer string
TooltipTemplate string
VisualHeight int

Protected Properties

Property Type Description
ModRules Ruleset

Public Methods

Method Description
Clone ( ) : OpenRA.Widgets.Widget
Draw ( ) : void
DrawBackground ( Rectangle rect, bool disabled, bool pressed, bool hover, bool highlighted ) : void
DrawBackground ( string baseName, Rectangle rect, bool disabled, bool pressed, bool hover, bool highlighted ) : void
HandleKeyPress ( KeyInput e ) : bool
HandleMouseInput ( MouseInput mi ) : bool
MouseEntered ( ) : void
MouseExited ( ) : void
YieldMouseFocus ( MouseInput mi ) : bool

Protected Methods

Method Description
ButtonWidget ( ButtonWidget other ) : System

Private Methods

Method Description
ButtonWidget ( ModData modData ) : System

Method Details

ButtonWidget() protected method

protected ButtonWidget ( ButtonWidget other ) : System
other ButtonWidget
return System

Clone() public method

public Clone ( ) : OpenRA.Widgets.Widget
return OpenRA.Widgets.Widget

Draw() public method

public Draw ( ) : void
return void

DrawBackground() public method

public DrawBackground ( Rectangle rect, bool disabled, bool pressed, bool hover, bool highlighted ) : void
rect System.Drawing.Rectangle
disabled bool
pressed bool
hover bool
highlighted bool
return void

DrawBackground() public static method

public static DrawBackground ( string baseName, Rectangle rect, bool disabled, bool pressed, bool hover, bool highlighted ) : void
baseName string
rect System.Drawing.Rectangle
disabled bool
pressed bool
hover bool
highlighted bool
return void

HandleKeyPress() public method

public HandleKeyPress ( KeyInput e ) : bool
e KeyInput
return bool

HandleMouseInput() public method

public HandleMouseInput ( MouseInput mi ) : bool
mi MouseInput
return bool

MouseEntered() public method

public MouseEntered ( ) : void
return void

MouseExited() public method

public MouseExited ( ) : void
return void

YieldMouseFocus() public method

public YieldMouseFocus ( MouseInput mi ) : bool
mi MouseInput
return bool

Property Details

Background public property

public string Background
return string

BaseLine public property

public int BaseLine
return int

Contrast public property

public bool Contrast
return bool

ContrastColorDark public property

public Color ContrastColorDark
return Color

ContrastColorLight public property

public Color ContrastColorLight
return Color

Depressed public property

public bool Depressed
return bool

Disabled public property

public bool Disabled
return bool

Font public property

public string Font
return string

GetColor public property

public Func GetColor
return Func

GetColorDisabled public property

public Func GetColorDisabled
return Func

GetContrastColorDark public property

public Func GetContrastColorDark
return Func

GetContrastColorLight public property

public Func GetContrastColorLight
return Func

GetKey public property

public Func GetKey
return Hotkey>.Func

GetText public property

public Func GetText
return Func

GetTooltipText public property

public Func GetTooltipText
return Func

Highlighted public property

public bool Highlighted
return bool

IsDisabled public property

public Func IsDisabled
return Func

IsHighlighted public property

public Func IsHighlighted
return Func

ModRules protected property

protected Ruleset ModRules
return Ruleset

OnClick public property

public Action,System OnClick
return System.Action

OnDoubleClick public property

public Action,System OnDoubleClick
return System.Action

OnKeyPress public property

public Action OnKeyPress
return Action

OnMouseDown public property

public Action OnMouseDown
return Action

OnMouseUp public property

public Action OnMouseUp
return Action

Shadow public property

public bool Shadow
return bool

TextColor public property

public Color TextColor
return Color

TextColorDisabled public property

public Color TextColorDisabled
return Color

TooltipContainer public property

public string TooltipContainer
return string

TooltipTemplate public property

public string TooltipTemplate
return string

VisualHeight public property

public int VisualHeight
return int