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

Inheritance: OpenRA.Widgets.Widget
Exibir arquivo Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Align ScrollPanelAlign
Background string
BorderWidth int
Button string
ButtonDepth int
CollapseHiddenChildren bool
ContentHeight int
ItemSpacing int
Layout ILayout
MinimumThumbSize int
ScrollbarWidth int
SmoothScrollSpeed float
TopBottomSpacing int

Protected Properties

Property Type Description
backgroundRect System.Drawing.Rectangle
downButtonRect System.Drawing.Rectangle
downDisabled bool
downPressed bool
scrollbarRect System.Drawing.Rectangle
thumbPressed bool
thumbRect System.Drawing.Rectangle
upButtonRect System.Drawing.Rectangle
upDisabled bool
upPressed bool

Public Methods

Method Description
AddChild ( OpenRA.Widgets.Widget child ) : void
Bind ( IObservableCollection c, Widget>.Func makeWidget, Func widgetItemEquals, bool autoScroll ) : void
BindingAdd ( object item ) : void
BindingAddImpl ( object item ) : void
BindingRefresh ( ) : void
BindingRemove ( object item ) : void
BindingRemoveAt ( int index ) : void
BindingSet ( object oldItem, object newItem ) : void
DrawOuter ( ) : void
GetEventBounds ( ) : Rectangle
HandleMouseInput ( MouseInput mi ) : bool
RemoveChild ( OpenRA.Widgets.Widget child ) : void
RemoveChildren ( ) : void
ReplaceChild ( OpenRA.Widgets.Widget oldChild, OpenRA.Widgets.Widget newChild ) : void
Scroll ( int amount, bool smooth = false ) : void
ScrollToBottom ( bool smooth = false ) : void
ScrollToItem ( OpenRA.Widgets.Widget item, bool smooth = false ) : void
ScrollToItem ( string itemKey, bool smooth = false ) : void
ScrollToSelectedItem ( ) : void
ScrollToTop ( bool smooth = false ) : void
Tick ( ) : void
Unbind ( ) : void
YieldMouseFocus ( MouseInput mi ) : bool

Protected Methods

Method Description
SetListOffset ( float value, bool smooth ) : void

Private Methods

Method Description
ScrollPanelWidget ( ModData modData ) : System

Method Details

AddChild() public method

public AddChild ( OpenRA.Widgets.Widget child ) : void
child OpenRA.Widgets.Widget
return void

Bind() public method

public Bind ( IObservableCollection c, Widget>.Func makeWidget, Func widgetItemEquals, bool autoScroll ) : void
c IObservableCollection
makeWidget Widget>.Func
widgetItemEquals Func
autoScroll bool
return void

BindingAdd() public method

public BindingAdd ( object item ) : void
item object
return void

BindingAddImpl() public method

public BindingAddImpl ( object item ) : void
item object
return void

BindingRefresh() public method

public BindingRefresh ( ) : void
return void

BindingRemove() public method

public BindingRemove ( object item ) : void
item object
return void

BindingRemoveAt() public method

public BindingRemoveAt ( int index ) : void
index int
return void

BindingSet() public method

public BindingSet ( object oldItem, object newItem ) : void
oldItem object
newItem object
return void

DrawOuter() public method

public DrawOuter ( ) : void
return void

GetEventBounds() public method

public GetEventBounds ( ) : Rectangle
return System.Drawing.Rectangle

HandleMouseInput() public method

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

RemoveChild() public method

public RemoveChild ( OpenRA.Widgets.Widget child ) : void
child OpenRA.Widgets.Widget
return void

RemoveChildren() public method

public RemoveChildren ( ) : void
return void

ReplaceChild() public method

public ReplaceChild ( OpenRA.Widgets.Widget oldChild, OpenRA.Widgets.Widget newChild ) : void
oldChild OpenRA.Widgets.Widget
newChild OpenRA.Widgets.Widget
return void

Scroll() public method

public Scroll ( int amount, bool smooth = false ) : void
amount int
smooth bool
return void

ScrollToBottom() public method

public ScrollToBottom ( bool smooth = false ) : void
smooth bool
return void

ScrollToItem() public method

public ScrollToItem ( OpenRA.Widgets.Widget item, bool smooth = false ) : void
item OpenRA.Widgets.Widget
smooth bool
return void

ScrollToItem() public method

public ScrollToItem ( string itemKey, bool smooth = false ) : void
itemKey string
smooth bool
return void

ScrollToSelectedItem() public method

public ScrollToSelectedItem ( ) : void
return void

ScrollToTop() public method

public ScrollToTop ( bool smooth = false ) : void
smooth bool
return void

SetListOffset() protected method

protected SetListOffset ( float value, bool smooth ) : void
value float
smooth bool
return void

Tick() public method

public Tick ( ) : void
return void

Unbind() public method

public Unbind ( ) : void
return void

YieldMouseFocus() public method

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

Property Details

Align public_oe property

public ScrollPanelAlign Align
return ScrollPanelAlign

Background public_oe property

public string Background
return string

BorderWidth public_oe property

public int BorderWidth
return int

Button public_oe property

public string Button
return string

ButtonDepth public_oe property

public int ButtonDepth
return int

CollapseHiddenChildren public_oe property

public bool CollapseHiddenChildren
return bool

ContentHeight public_oe property

public int ContentHeight
return int

ItemSpacing public_oe property

public int ItemSpacing
return int

Layout public_oe property

public ILayout Layout
return ILayout

MinimumThumbSize public_oe property

public int MinimumThumbSize
return int

ScrollbarWidth public_oe property

public int ScrollbarWidth
return int

SmoothScrollSpeed public_oe property

public float SmoothScrollSpeed
return float

TopBottomSpacing public_oe property

public int TopBottomSpacing
return int

backgroundRect protected_oe property

protected Rectangle,System.Drawing backgroundRect
return System.Drawing.Rectangle

downButtonRect protected_oe property

protected Rectangle,System.Drawing downButtonRect
return System.Drawing.Rectangle

downDisabled protected_oe property

protected bool downDisabled
return bool

downPressed protected_oe property

protected bool downPressed
return bool

scrollbarRect protected_oe property

protected Rectangle,System.Drawing scrollbarRect
return System.Drawing.Rectangle

thumbPressed protected_oe property

protected bool thumbPressed
return bool

thumbRect protected_oe property

protected Rectangle,System.Drawing thumbRect
return System.Drawing.Rectangle

upButtonRect protected_oe property

protected Rectangle,System.Drawing upButtonRect
return System.Drawing.Rectangle

upDisabled protected_oe property

protected bool upDisabled
return bool

upPressed protected_oe property

protected bool upPressed
return bool