C# Class MonoGdx.Scene2D.Actor

Afficher le fichier Open project: jaquadro/MonoGdx Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

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

public Act ( float delta ) : void
delta float
Résultat void

AddAction() public méthode

public AddAction ( SceneAction action ) : void
action SceneAction
Résultat void

AddHandler() public méthode

public AddHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
routedEvent RoutedEvent
handler System.Delegate
Résultat bool

AddHandler() public méthode

public AddHandler ( RoutedEvent routedEvent, Delegate handler, bool capturing ) : bool
routedEvent RoutedEvent
handler System.Delegate
capturing bool
Résultat bool

CaptureTouch() public méthode

public CaptureTouch ( int pointer ) : void
pointer int
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

ClearActions() public méthode

public ClearActions ( ) : void
Résultat void

ClearHandlers() public méthode

public ClearHandlers ( ) : void
Résultat void

ClipBegin() public méthode

public ClipBegin ( ) : bool
Résultat bool

ClipBegin() public méthode

public ClipBegin ( float x, float y, float width, float height ) : bool
x float
y float
width float
height float
Résultat bool

ClipEnd() public méthode

public ClipEnd ( ) : void
Résultat void

Draw() public méthode

public Draw ( GdxSpriteBatch spriteBatch, float parentAlpha ) : void
spriteBatch MonoGdx.Graphics.G2D.GdxSpriteBatch
parentAlpha float
Résultat void

Hit() public méthode

public Hit ( float x, float y, bool touchable ) : Actor
x float
y float
touchable bool
Résultat Actor

InitializeEventArgs() protected méthode

protected InitializeEventArgs ( RoutedEventArgs e, RoutedEvent routedEvent ) : RoutedEventArgs
e RoutedEventArgs
routedEvent RoutedEvent
Résultat RoutedEventArgs

IsAscendentOf() public méthode

public IsAscendentOf ( Actor actor ) : bool
actor Actor
Résultat bool

IsDescendentOf() public méthode

public IsDescendentOf ( Actor actor ) : bool
actor Actor
Résultat bool

LocalToAscendantCoordinates() public méthode

public LocalToAscendantCoordinates ( Actor ascendant, Vector2 localCoords ) : Vector2
ascendant Actor
localCoords Vector2
Résultat Vector2

LocalToParentCoordinates() public méthode

public LocalToParentCoordinates ( Vector2 localCoords ) : Vector2
localCoords Vector2
Résultat Vector2

LocalToStageCoordinates() public méthode

public LocalToStageCoordinates ( Vector2 localCoords ) : Vector2
localCoords Vector2
Résultat Vector2

OnGotKeyboardFocus() protected méthode

protected OnGotKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
e KeyboardFocusChangedEventArgs
Résultat void

OnGotScrollFocus() protected méthode

protected OnGotScrollFocus ( ScrollFocusChangedEventArgs e ) : void
e ScrollFocusChangedEventArgs
Résultat void

OnGotTouchCapture() protected méthode

protected OnGotTouchCapture ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnLostKeyboardFocus() protected méthode

protected OnLostKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
e KeyboardFocusChangedEventArgs
Résultat void

OnLostScrollFocus() protected méthode

protected OnLostScrollFocus ( ScrollFocusChangedEventArgs e ) : void
e ScrollFocusChangedEventArgs
Résultat void

OnLostTouchCapture() protected méthode

protected OnLostTouchCapture ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPreviewKeyDown() protected méthode

protected OnPreviewKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnPreviewKeyUp() protected méthode

protected OnPreviewKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnPreviewMouseMove() protected méthode

protected OnPreviewMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPreviewScroll() protected méthode

protected OnPreviewScroll ( ScrollEventArgs e ) : void
e ScrollEventArgs
Résultat void

OnPreviewTouchDown() protected méthode

protected OnPreviewTouchDown ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnPreviewTouchDrag() protected méthode

protected OnPreviewTouchDrag ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnPreviewTouchUp() protected méthode

protected OnPreviewTouchUp ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnScroll() protected méthode

protected OnScroll ( ScrollEventArgs e ) : void
e ScrollEventArgs
Résultat void

OnTouchDown() protected méthode

protected OnTouchDown ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnTouchDrag() protected méthode

protected OnTouchDrag ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnTouchEnter() protected méthode

protected OnTouchEnter ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnTouchLeave() protected méthode

protected OnTouchLeave ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

OnTouchUp() protected méthode

protected OnTouchUp ( TouchEventArgs e ) : void
e TouchEventArgs
Résultat void

ParentToLocalCoordinates() public méthode

public ParentToLocalCoordinates ( Vector2 parentCoords ) : Vector2
parentCoords Vector2
Résultat Vector2

RaiseEvent() public méthode

public RaiseEvent ( RoutedEventArgs e ) : bool
e RoutedEventArgs
Résultat bool

ReleaseTouchCapture() public méthode

public ReleaseTouchCapture ( int pointer ) : void
pointer int
Résultat void

Remove() public méthode

public Remove ( ) : bool
Résultat bool

RemoveAction() public méthode

public RemoveAction ( SceneAction action ) : void
action SceneAction
Résultat void

RemoveHandler() public méthode

public RemoveHandler ( RoutedEvent routedEvent, Delegate handler ) : bool
routedEvent RoutedEvent
handler Delegate
Résultat bool

Rotate() public méthode

public Rotate ( float amount ) : void
amount float
Résultat void

Scale() public méthode

public Scale ( float scale ) : void
scale float
Résultat void

Scale() public méthode

public Scale ( float scaleX, float ScaleY ) : void
scaleX float
ScaleY float
Résultat void

ScreenToLocalCoordinates() public méthode

public ScreenToLocalCoordinates ( Vector2 screenCoords ) : Vector2
screenCoords Vector2
Résultat Vector2

SetBounds() public méthode

public SetBounds ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
Résultat void

SetOrigin() public méthode

public SetOrigin ( float originX, float originY ) : void
originX float
originY float
Résultat void

SetPosition() public méthode

public SetPosition ( float x, float y ) : void
x float
y float
Résultat void

SetScale() public méthode

public SetScale ( float scale ) : void
scale float
Résultat void

SetScale() public méthode

public SetScale ( float scaleX, float scaleY ) : void
scaleX float
scaleY float
Résultat void

SetSize() public méthode

public SetSize ( float width, float height ) : void
width float
height float
Résultat void

Size() public méthode

public Size ( float size ) : void
size float
Résultat void

Size() public méthode

public Size ( float width, float height ) : void
width float
height float
Résultat void

StageToLocalCoordinates() public méthode

public StageToLocalCoordinates ( Vector2 stageCoords ) : Vector2
stageCoords Vector2
Résultat Vector2

ToBack() public méthode

public ToBack ( ) : void
Résultat void

ToFront() public méthode

public ToFront ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Translate() public méthode

public Translate ( float x, float y ) : void
x float
y float
Résultat void