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

Inheritance: OpenRA.Widgets.Widget
Mostra 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_oe property

public string Background
return string

BaseLine public_oe property

public int BaseLine
return int

Contrast public_oe property

public bool Contrast
return bool

ContrastColorDark public_oe property

public Color ContrastColorDark
return Color

ContrastColorLight public_oe property

public Color ContrastColorLight
return Color

Depressed public_oe property

public bool Depressed
return bool

Disabled public_oe property

public bool Disabled
return bool

Font public_oe property

public string Font
return string

GetColor public_oe property

public Func GetColor
return Func

GetColorDisabled public_oe property

public Func GetColorDisabled
return Func

GetContrastColorDark public_oe property

public Func GetContrastColorDark
return Func

GetContrastColorLight public_oe property

public Func GetContrastColorLight
return Func

GetKey public_oe property

public Func GetKey
return Hotkey>.Func

GetText public_oe property

public Func GetText
return Func

GetTooltipText public_oe property

public Func GetTooltipText
return Func

Highlighted public_oe property

public bool Highlighted
return bool

IsDisabled public_oe property

public Func IsDisabled
return Func

IsHighlighted public_oe property

public Func IsHighlighted
return Func

ModRules protected_oe property

protected Ruleset ModRules
return Ruleset

OnClick public_oe property

public Action,System OnClick
return System.Action

OnDoubleClick public_oe property

public Action,System OnDoubleClick
return System.Action

OnKeyPress public_oe property

public Action OnKeyPress
return Action

OnMouseDown public_oe property

public Action OnMouseDown
return Action

OnMouseUp public_oe property

public Action OnMouseUp
return Action

Shadow public_oe property

public bool Shadow
return bool

TextColor public_oe property

public Color TextColor
return Color

TextColorDisabled public_oe property

public Color TextColorDisabled
return Color

TooltipContainer public_oe property

public string TooltipContainer
return string

TooltipTemplate public_oe property

public string TooltipTemplate
return string

VisualHeight public_oe property

public int VisualHeight
return int