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

Inheritance: OpenRA.Widgets.Widget
Mostra file Open project: OpenRA/OpenRA

Public Properties

Property Type Description
EdgeCornerScrollThreshold int
EdgeScrollThreshold int
TooltipContainer string
TooltipTemplate string

Private Properties

Property Type Description
CheckForDirections ScrollDirection
IsZoomAllowed bool
JumpToBookmark WPos?
JumpToSavedBookmark void
SaveBookmark void
SaveCurrentPositionToBookmark void
ViewportControllerWidget System
Zoom void

Public Methods

Method Description
Draw ( ) : void
GetCursor ( int2 pos ) : string
HandleKeyPress ( KeyInput e ) : bool
HandleMouseInput ( MouseInput mi ) : bool
MouseEntered ( ) : void
MouseExited ( ) : void
UpdateMouseover ( ) : void
YieldKeyboardFocus ( ) : bool

Private Methods

Method Description
CheckForDirections ( ) : ScrollDirection
IsZoomAllowed ( float zoom ) : bool
JumpToBookmark ( int index ) : WPos?
JumpToSavedBookmark ( int index ) : void
SaveBookmark ( int index, WPos position ) : void
SaveCurrentPositionToBookmark ( int index ) : void
ViewportControllerWidget ( World world, WorldRenderer worldRenderer ) : System
Zoom ( int direction ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

GetCursor() public method

public GetCursor ( int2 pos ) : string
pos int2
return string

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

UpdateMouseover() public method

public UpdateMouseover ( ) : void
return void

YieldKeyboardFocus() public method

public YieldKeyboardFocus ( ) : bool
return bool

Property Details

EdgeCornerScrollThreshold public_oe property

public int EdgeCornerScrollThreshold
return int

EdgeScrollThreshold public_oe property

public int EdgeScrollThreshold
return int

TooltipContainer public_oe property

public string TooltipContainer
return string

TooltipTemplate public_oe property

public string TooltipTemplate
return string