C# Class MonoGdx.Scene2D.Actor

Mostrar archivo Open project: jaquadro/MonoGdx Class Usage Examples

Public Methods

Method Description
Act ( float delta ) : void
AddAction ( SceneAction action ) : void
AddHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
AddHandler ( RoutedEvent routedEvent, Delegate handler, bool capturing ) : bool
CaptureTouch ( int pointer ) : void
Clear ( ) : void
ClearActions ( ) : void
ClearHandlers ( ) : void
ClipBegin ( ) : bool
ClipBegin ( float x, float y, float width, float height ) : bool
ClipEnd ( ) : void
Draw ( GdxSpriteBatch spriteBatch, float parentAlpha ) : void
Hit ( float x, float y, bool touchable ) : Actor
IsAscendentOf ( Actor actor ) : bool
IsDescendentOf ( Actor actor ) : bool
LocalToAscendantCoordinates ( Actor ascendant, Vector2 localCoords ) : Vector2
LocalToParentCoordinates ( Vector2 localCoords ) : Vector2
LocalToStageCoordinates ( Vector2 localCoords ) : Vector2
ParentToLocalCoordinates ( Vector2 parentCoords ) : Vector2
RaiseEvent ( RoutedEventArgs e ) : bool
ReleaseTouchCapture ( int pointer ) : void
Remove ( ) : bool
RemoveAction ( SceneAction action ) : void
RemoveHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
Rotate ( float amount ) : void
Scale ( float scale ) : void
Scale ( float scaleX, float ScaleY ) : void
ScreenToLocalCoordinates ( Vector2 screenCoords ) : Vector2
SetBounds ( float x, float y, float width, float height ) : void
SetOrigin ( float originX, float originY ) : void
SetPosition ( float x, float y ) : void
SetScale ( float scale ) : void
SetScale ( float scaleX, float scaleY ) : void
SetSize ( float width, float height ) : void
Size ( float size ) : void
Size ( float width, float height ) : void
StageToLocalCoordinates ( Vector2 stageCoords ) : Vector2
ToBack ( ) : void
ToFront ( ) : void
ToString ( ) : string
Translate ( float x, float y ) : void

Protected Methods

Method Description
InitializeEventArgs ( RoutedEventArgs e, RoutedEvent routedEvent ) : RoutedEventArgs
OnGotKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
OnGotScrollFocus ( ScrollFocusChangedEventArgs e ) : void
OnGotTouchCapture ( TouchEventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLostKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
OnLostScrollFocus ( ScrollFocusChangedEventArgs e ) : void
OnLostTouchCapture ( TouchEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnPreviewKeyDown ( KeyEventArgs e ) : void
OnPreviewKeyUp ( KeyEventArgs e ) : void
OnPreviewMouseMove ( MouseEventArgs e ) : void
OnPreviewScroll ( ScrollEventArgs e ) : void
OnPreviewTouchDown ( TouchEventArgs e ) : void
OnPreviewTouchDrag ( TouchEventArgs e ) : void
OnPreviewTouchUp ( TouchEventArgs e ) : void
OnScroll ( ScrollEventArgs e ) : void
OnTouchDown ( TouchEventArgs e ) : void
OnTouchDrag ( TouchEventArgs e ) : void
OnTouchEnter ( TouchEventArgs e ) : void
OnTouchLeave ( TouchEventArgs e ) : void
OnTouchUp ( TouchEventArgs e ) : void

Private Methods

Method Description
Actor ( ) : System
GotKeyboardFocusClass ( Actor sender, KeyboardFocusChangedEventArgs e ) : void
GotScrollFocusClass ( Actor sender, ScrollFocusChangedEventArgs e ) : void
GotTouchCaptureClass ( Actor sender, TouchEventArgs e ) : void
InvokeHandler ( RoutedEventArgs args ) : bool
KeyDownClass ( Actor sender, KeyEventArgs e ) : void
KeyUpClass ( Actor sender, KeyEventArgs e ) : void
LostKeyboardFocusClass ( Actor sender, KeyboardFocusChangedEventArgs e ) : void
LostScrollFocusClass ( Actor sender, ScrollFocusChangedEventArgs e ) : void
LostTouchCaptureClass ( Actor sender, TouchEventArgs e ) : void
MouseMoveClass ( Actor sender, MouseEventArgs e ) : void
PreviewKeyDownClass ( Actor sender, KeyEventArgs e ) : void
PreviewKeyUpClass ( Actor sender, KeyEventArgs e ) : void
PreviewMouseMoveClass ( Actor sender, MouseEventArgs e ) : void
PreviewScrollClass ( Actor sender, ScrollEventArgs e ) : void
PreviewTouchDownClass ( Actor sender, TouchEventArgs e ) : void
PreviewTouchDragClass ( Actor sender, TouchEventArgs e ) : void
PreviewTouchUpClass ( Actor sender, TouchEventArgs e ) : void
ScrollClass ( Actor sender, ScrollEventArgs e ) : void
TouchDownClass ( Actor sender, TouchEventArgs e ) : void
TouchDragClass ( Actor sender, TouchEventArgs e ) : void
TouchEnterClass ( Actor sender, TouchEventArgs e ) : void
TouchLeaveClass ( Actor sender, TouchEventArgs e ) : void
TouchUpClass ( Actor sender, TouchEventArgs e ) : void

Method Details

Act() public method

public Act ( float delta ) : void
delta float
return void

AddAction() public method

public AddAction ( SceneAction action ) : void
action SceneAction
return void

AddHandler() public method

public AddHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
routedEvent RoutedEvent
handler System.Delegate
return bool

AddHandler() public method

public AddHandler ( RoutedEvent routedEvent, Delegate handler, bool capturing ) : bool
routedEvent RoutedEvent
handler System.Delegate
capturing bool
return bool

CaptureTouch() public method

public CaptureTouch ( int pointer ) : void
pointer int
return void

Clear() public method

public Clear ( ) : void
return void

ClearActions() public method

public ClearActions ( ) : void
return void

ClearHandlers() public method

public ClearHandlers ( ) : void
return void

ClipBegin() public method

public ClipBegin ( ) : bool
return bool

ClipBegin() public method

public ClipBegin ( float x, float y, float width, float height ) : bool
x float
y float
width float
height float
return bool

ClipEnd() public method

public ClipEnd ( ) : void
return void

Draw() public method

public Draw ( GdxSpriteBatch spriteBatch, float parentAlpha ) : void
spriteBatch MonoGdx.Graphics.G2D.GdxSpriteBatch
parentAlpha float
return void

Hit() public method

public Hit ( float x, float y, bool touchable ) : Actor
x float
y float
touchable bool
return Actor

InitializeEventArgs() protected method

protected InitializeEventArgs ( RoutedEventArgs e, RoutedEvent routedEvent ) : RoutedEventArgs
e RoutedEventArgs
routedEvent RoutedEvent
return RoutedEventArgs

IsAscendentOf() public method

public IsAscendentOf ( Actor actor ) : bool
actor Actor
return bool

IsDescendentOf() public method

public IsDescendentOf ( Actor actor ) : bool
actor Actor
return bool

LocalToAscendantCoordinates() public method

public LocalToAscendantCoordinates ( Actor ascendant, Vector2 localCoords ) : Vector2
ascendant Actor
localCoords Vector2
return Vector2

LocalToParentCoordinates() public method

public LocalToParentCoordinates ( Vector2 localCoords ) : Vector2
localCoords Vector2
return Vector2

LocalToStageCoordinates() public method

public LocalToStageCoordinates ( Vector2 localCoords ) : Vector2
localCoords Vector2
return Vector2

OnGotKeyboardFocus() protected method

protected OnGotKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
e KeyboardFocusChangedEventArgs
return void

OnGotScrollFocus() protected method

protected OnGotScrollFocus ( ScrollFocusChangedEventArgs e ) : void
e ScrollFocusChangedEventArgs
return void

OnGotTouchCapture() protected method

protected OnGotTouchCapture ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnLostKeyboardFocus() protected method

protected OnLostKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
e KeyboardFocusChangedEventArgs
return void

OnLostScrollFocus() protected method

protected OnLostScrollFocus ( ScrollFocusChangedEventArgs e ) : void
e ScrollFocusChangedEventArgs
return void

OnLostTouchCapture() protected method

protected OnLostTouchCapture ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnPreviewKeyUp() protected method

protected OnPreviewKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnPreviewMouseMove() protected method

protected OnPreviewMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPreviewScroll() protected method

protected OnPreviewScroll ( ScrollEventArgs e ) : void
e ScrollEventArgs
return void

OnPreviewTouchDown() protected method

protected OnPreviewTouchDown ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnPreviewTouchDrag() protected method

protected OnPreviewTouchDrag ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnPreviewTouchUp() protected method

protected OnPreviewTouchUp ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnScroll() protected method

protected OnScroll ( ScrollEventArgs e ) : void
e ScrollEventArgs
return void

OnTouchDown() protected method

protected OnTouchDown ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnTouchDrag() protected method

protected OnTouchDrag ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnTouchEnter() protected method

protected OnTouchEnter ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnTouchLeave() protected method

protected OnTouchLeave ( TouchEventArgs e ) : void
e TouchEventArgs
return void

OnTouchUp() protected method

protected OnTouchUp ( TouchEventArgs e ) : void
e TouchEventArgs
return void

ParentToLocalCoordinates() public method

public ParentToLocalCoordinates ( Vector2 parentCoords ) : Vector2
parentCoords Vector2
return Vector2

RaiseEvent() public method

public RaiseEvent ( RoutedEventArgs e ) : bool
e RoutedEventArgs
return bool

ReleaseTouchCapture() public method

public ReleaseTouchCapture ( int pointer ) : void
pointer int
return void

Remove() public method

public Remove ( ) : bool
return bool

RemoveAction() public method

public RemoveAction ( SceneAction action ) : void
action SceneAction
return void

RemoveHandler() public method

public RemoveHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
routedEvent RoutedEvent
handler Delegate
return bool

Rotate() public method

public Rotate ( float amount ) : void
amount float
return void

Scale() public method

public Scale ( float scale ) : void
scale float
return void

Scale() public method

public Scale ( float scaleX, float ScaleY ) : void
scaleX float
ScaleY float
return void

ScreenToLocalCoordinates() public method

public ScreenToLocalCoordinates ( Vector2 screenCoords ) : Vector2
screenCoords Vector2
return Vector2

SetBounds() public method

public SetBounds ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

SetOrigin() public method

public SetOrigin ( float originX, float originY ) : void
originX float
originY float
return void

SetPosition() public method

public SetPosition ( float x, float y ) : void
x float
y float
return void

SetScale() public method

public SetScale ( float scale ) : void
scale float
return void

SetScale() public method

public SetScale ( float scaleX, float scaleY ) : void
scaleX float
scaleY float
return void

SetSize() public method

public SetSize ( float width, float height ) : void
width float
height float
return void

Size() public method

public Size ( float size ) : void
size float
return void

Size() public method

public Size ( float width, float height ) : void
width float
height float
return void

StageToLocalCoordinates() public method

public StageToLocalCoordinates ( Vector2 stageCoords ) : Vector2
stageCoords Vector2
return Vector2

ToBack() public method

public ToBack ( ) : void
return void

ToFront() public method

public ToFront ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Translate() public method

public Translate ( float x, float y ) : void
x float
y float
return void