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

Inheritance: OpenRA.Widgets.Widget
Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
ModRules Ruleset

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
ButtonWidget ( ButtonWidget other ) : System

Private Methods

Méthode Description
ButtonWidget ( ModData modData ) : System

Method Details

ButtonWidget() protected méthode

protected ButtonWidget ( ButtonWidget other ) : System
other ButtonWidget
Résultat System

Clone() public méthode

public Clone ( ) : OpenRA.Widgets.Widget
Résultat OpenRA.Widgets.Widget

Draw() public méthode

public Draw ( ) : void
Résultat void

DrawBackground() public méthode

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
Résultat void

DrawBackground() public static méthode

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
Résultat void

HandleKeyPress() public méthode

public HandleKeyPress ( KeyInput e ) : bool
e KeyInput
Résultat bool

HandleMouseInput() public méthode

public HandleMouseInput ( MouseInput mi ) : bool
mi MouseInput
Résultat bool

MouseEntered() public méthode

public MouseEntered ( ) : void
Résultat void

MouseExited() public méthode

public MouseExited ( ) : void
Résultat void

YieldMouseFocus() public méthode

public YieldMouseFocus ( MouseInput mi ) : bool
mi MouseInput
Résultat bool

Property Details

Background public_oe property

public string Background
Résultat string

BaseLine public_oe property

public int BaseLine
Résultat int

Contrast public_oe property

public bool Contrast
Résultat bool

ContrastColorDark public_oe property

public Color ContrastColorDark
Résultat Color

ContrastColorLight public_oe property

public Color ContrastColorLight
Résultat Color

Depressed public_oe property

public bool Depressed
Résultat bool

Disabled public_oe property

public bool Disabled
Résultat bool

Font public_oe property

public string Font
Résultat string

GetColor public_oe property

public Func GetColor
Résultat Func

GetColorDisabled public_oe property

public Func GetColorDisabled
Résultat Func

GetContrastColorDark public_oe property

public Func GetContrastColorDark
Résultat Func

GetContrastColorLight public_oe property

public Func GetContrastColorLight
Résultat Func

GetKey public_oe property

public Func GetKey
Résultat Hotkey>.Func

GetText public_oe property

public Func GetText
Résultat Func

GetTooltipText public_oe property

public Func GetTooltipText
Résultat Func

Highlighted public_oe property

public bool Highlighted
Résultat bool

IsDisabled public_oe property

public Func IsDisabled
Résultat Func

IsHighlighted public_oe property

public Func IsHighlighted
Résultat Func

ModRules protected_oe property

protected Ruleset ModRules
Résultat Ruleset

OnClick public_oe property

public Action,System OnClick
Résultat System.Action

OnDoubleClick public_oe property

public Action,System OnDoubleClick
Résultat System.Action

OnKeyPress public_oe property

public Action OnKeyPress
Résultat Action

OnMouseDown public_oe property

public Action OnMouseDown
Résultat Action

OnMouseUp public_oe property

public Action OnMouseUp
Résultat Action

Shadow public_oe property

public bool Shadow
Résultat bool

TextColor public_oe property

public Color TextColor
Résultat Color

TextColorDisabled public_oe property

public Color TextColorDisabled
Résultat Color

TooltipContainer public_oe property

public string TooltipContainer
Résultat string

TooltipTemplate public_oe property

public string TooltipTemplate
Résultat string

VisualHeight public_oe property

public int VisualHeight
Résultat int