C# Class Gum.Wireframe.GraphicalUiElement

Inheritance: IRenderable, IPositionedSizedObject, IVisible
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
ChildrenUpdatingParentLayoutCalls int
IsAllLayoutSuspended bool
ShowLineRectangles bool
UpdateLayoutCallCount int

Private Properties

Свойство Type Description
AddChildren void
AddContainedRenderableToManagers void
AdjustOffsetsByOrigin void
AdjustOffsetsByUnits void
AdjustParentOriginOffsetsByUnits void
AssignSourceFileOnSprite bool
CustomAddChildren void
CustomAddToManagers void
CustomRemoveFromManagers void
GetDimensionFromEdges float
GetIfParentStacks bool
GetIfShouldCallUpdateOnParent bool
GetParentDimensions void
GetParentOffsets void
GetRequiredParentHeight float
GetRequiredParentWidth float
GetWhatToStackAfter IPositionedSizedObject
IRenderable void
IRenderable void
IRenderableIpso void
IsAllLayoutAbsolute bool
IsComponentOrInstanceOfComponent bool
ResumeLayoutNoUpdateRecursive void
SetPropertyOnRenderable void
TryAdjustOffsetsByParentLayoutType void
TryHandleCursorActivity bool
TrySetPropertyOnText bool
TrySetValueOnThis bool
UpdateDimensions void
UpdateHeight void
UpdateLayerScissor void
UpdatePosition void
UpdatePosition void
UpdateTextureCoordinatesDimensionBased void
UpdateTextureCoordinatesNotDimensionBased void
UpdateToFontValues void
UpdateWidth void

Méthodes publiques

Méthode Description
Activity ( FlatRedBall camera ) : void
AddCategory ( DataTypes category ) : void
AddExposedVariable ( string variableName, string underlyingVariable ) : void
AddStates ( List list ) : void
AddToManagers ( ) : void
AddToManagers ( SystemManagers managers, Layer layer ) : void
ApplyState ( DataTypes state ) : void
ApplyState ( List variableSaveValues ) : void
ApplyState ( string name ) : void
ApplyState ( string categoryName, string stateName ) : void
AssignReferences ( ) : void
CallClick ( ) : void
CallLosePush ( ) : void
CallRollOff ( ) : void
CallRollOn ( ) : void
CallRollOver ( ) : void
CloseWindow ( ) : void
Destroy ( ) : void
FlatRedBall ( string stateName ) : void
GetChildByName ( string name ) : IPositionedSizedObject
GetGraphicalUiElementByName ( string name ) : GraphicalUiElement
GetIfDimensionsDependOnChildren ( ) : bool
GetParentOffsets ( float &parentOriginOffsetX, float &parentOriginOffsetY ) : void
GetParentVisibility ( ) : bool
GetUsedTextures ( List listToFill ) : void
GraphicalUiElement ( ) : System
GraphicalUiElement ( IRenderable containedObject, GraphicalUiElement whatContainsThis ) : System
HasCursorOver ( Cursor cursor ) : bool
InterpolateBetween ( Gum first, Gum second, float interpolationValue ) : void
InterpolateTo ( Gum first, Gum second, double secondsToTake, FlatRedBall interpolationType, FlatRedBall easing ) : FlatRedBall.Glue.StateInterpolation.Tweener
IsExposedVariable ( string variableName ) : bool
IsPointOnWindow ( float x, float y ) : bool
MoveToFrbLayer ( FlatRedBall layer, FlatRedBall containingScreen ) : void
MoveToFrbLayer ( FlatRedBall frbLayer, global gumLayer ) : void
MoveToLayer ( Layer layer ) : void
OnDragging ( ) : void
OnLosingFocus ( ) : void
OnResize ( ) : void
OnResizeEnd ( ) : void
OverlapsWindow ( IWindow otherWindow ) : bool
RemoveFromManagers ( ) : void
ResumeLayout ( bool recursive = false ) : void
SetContainedObject ( IRenderable containedObject ) : void
SetGueValues ( IVariableFinder rvf ) : void
SetProperty ( string propertyName, object value ) : void
SetScaleTL ( float newScaleX, float newScaleY ) : void
SetScaleTL ( float newScaleX, float newScaleY, bool keepTopLeftStatic ) : void
StopAnimations ( ) : void
SuspendLayout ( bool recursive = false ) : void
TestCollision ( Cursor cursor ) : void
ToString ( ) : string
UpdateDependencies ( ) : void
UpdateLayout ( ) : void
UpdateLayout ( bool updateParent, bool updateChildren ) : void
UpdateLayout ( bool updateParent, int childrenUpdateDepth ) : void

Méthodes protégées

Méthode Description
CallCustomInitialize ( ) : void

Private Methods

Méthode Description
AddChildren ( SystemManagers managers, Layer layer ) : void
AddContainedRenderableToManagers ( SystemManagers managers, Layer layer ) : void
AdjustOffsetsByOrigin ( float &unitOffsetX, float &unitOffsetY ) : void
AdjustOffsetsByUnits ( float parentWidth, float parentHeight, float &unitOffsetX, float &unitOffsetY ) : void
AdjustParentOriginOffsetsByUnits ( float parentWidth, float parentHeight, float &unitOffsetX, float &unitOffsetY, bool &wasHandledX, bool &wasHandledY ) : void
AssignSourceFileOnSprite ( object value, Sprite sprite ) : bool
CustomAddChildren ( ) : void
CustomAddToManagers ( ) : void
CustomRemoveFromManagers ( ) : void
GetDimensionFromEdges ( float smallEdge, float bigEdge, GeneralUnitType units ) : float
GetIfParentStacks ( ) : bool
GetIfShouldCallUpdateOnParent ( ) : bool
GetParentDimensions ( float &parentWidth, float &parentHeight ) : void
GetParentOffsets ( bool canWrap, bool shouldWrap, float parentWidth, float parentHeight, float &parentOriginOffsetX, float &parentOriginOffsetY, bool &wasHandledX, bool &wasHandledY ) : void
GetRequiredParentHeight ( ) : float
GetRequiredParentWidth ( ) : float
GetWhatToStackAfter ( bool canWrap, bool shouldWrap, float &whatToStackAfterX, float &whatToStackAfterY ) : IPositionedSizedObject
IRenderable ( ) : void
IRenderable ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void
IRenderableIpso ( IRenderableIpso parent ) : void
IsAllLayoutAbsolute ( ) : bool
IsComponentOrInstanceOfComponent ( ) : bool
ResumeLayoutNoUpdateRecursive ( ) : void
SetPropertyOnRenderable ( string propertyName, object value ) : void
TryAdjustOffsetsByParentLayoutType ( bool canWrap, bool shouldWrap, float &unitOffsetX, float &unitOffsetY, bool &wasHandledX, bool &wasHandledY ) : void
TryHandleCursorActivity ( Cursor cursor ) : bool

Tries to handle cursor activity. If this returns true, then either this element or one of its children handled the activity.

This method will always allow children to handle the activity first, as children draw in front of their parents. Only components can have UI elements. Standard elements such as Sprites or Containers cannot themselves handle the activity, but they do give their children the opportunity to handle activity. This is because components (such as buttons) may be part of a container for stacking or other organization. Ultimately this hierarchical logic exists because only the top-most parent is added to the GuiManager, and it is responsible for giving its children the opportunity to perform cursor-related input.

TrySetPropertyOnText ( string propertyName, object value ) : bool
TrySetValueOnThis ( string propertyName, object value ) : bool
UpdateDimensions ( float parentWidth, float parentHeight ) : void
UpdateHeight ( float parentHeight ) : void
UpdateLayerScissor ( ) : void
UpdatePosition ( float parentWidth, float parentHeight ) : void
UpdatePosition ( float parentWidth, float parentHeight, bool wrap ) : void
UpdateTextureCoordinatesDimensionBased ( ) : void
UpdateTextureCoordinatesNotDimensionBased ( ) : void
UpdateToFontValues ( ) : void
UpdateWidth ( float parentWidth ) : void

Method Details

Activity() public méthode

public Activity ( FlatRedBall camera ) : void
camera FlatRedBall
Résultat void

AddCategory() public méthode

public AddCategory ( DataTypes category ) : void
category DataTypes
Résultat void

AddExposedVariable() public méthode

public AddExposedVariable ( string variableName, string underlyingVariable ) : void
variableName string
underlyingVariable string
Résultat void

AddStates() public méthode

public AddStates ( List list ) : void
list List
Résultat void

AddToManagers() public méthode

public AddToManagers ( ) : void
Résultat void

AddToManagers() public méthode

public AddToManagers ( SystemManagers managers, Layer layer ) : void
managers RenderingLibrary.SystemManagers
layer RenderingLibrary.Graphics.Layer
Résultat void

ApplyState() public méthode

public ApplyState ( DataTypes state ) : void
state DataTypes
Résultat void

ApplyState() public méthode

public ApplyState ( List variableSaveValues ) : void
variableSaveValues List
Résultat void

ApplyState() public méthode

public ApplyState ( string name ) : void
name string
Résultat void

ApplyState() public méthode

public ApplyState ( string categoryName, string stateName ) : void
categoryName string
stateName string
Résultat void

AssignReferences() public méthode

public AssignReferences ( ) : void
Résultat void

CallClick() public méthode

public CallClick ( ) : void
Résultat void

CallCustomInitialize() protected méthode

protected CallCustomInitialize ( ) : void
Résultat void

CallLosePush() public méthode

public CallLosePush ( ) : void
Résultat void

CallRollOff() public méthode

public CallRollOff ( ) : void
Résultat void

CallRollOn() public méthode

public CallRollOn ( ) : void
Résultat void

CallRollOver() public méthode

public CallRollOver ( ) : void
Résultat void

CloseWindow() public méthode

public CloseWindow ( ) : void
Résultat void

Destroy() public méthode

public Destroy ( ) : void
Résultat void

FlatRedBall() public méthode

public FlatRedBall ( string stateName ) : void
stateName string
Résultat void

GetChildByName() public méthode

public GetChildByName ( string name ) : IPositionedSizedObject
name string
Résultat IPositionedSizedObject

GetGraphicalUiElementByName() public méthode

public GetGraphicalUiElementByName ( string name ) : GraphicalUiElement
name string
Résultat GraphicalUiElement

GetIfDimensionsDependOnChildren() public méthode

public GetIfDimensionsDependOnChildren ( ) : bool
Résultat bool

GetParentOffsets() public méthode

public GetParentOffsets ( float &parentOriginOffsetX, float &parentOriginOffsetY ) : void
parentOriginOffsetX float
parentOriginOffsetY float
Résultat void

GetParentVisibility() public méthode

public GetParentVisibility ( ) : bool
Résultat bool

GetUsedTextures() public méthode

public GetUsedTextures ( List listToFill ) : void
listToFill List
Résultat void

GraphicalUiElement() public méthode

public GraphicalUiElement ( ) : System
Résultat System

GraphicalUiElement() public méthode

public GraphicalUiElement ( IRenderable containedObject, GraphicalUiElement whatContainsThis ) : System
containedObject IRenderable
whatContainsThis GraphicalUiElement
Résultat System

HasCursorOver() public méthode

public HasCursorOver ( Cursor cursor ) : bool
cursor Cursor
Résultat bool

InterpolateBetween() public méthode

public InterpolateBetween ( Gum first, Gum second, float interpolationValue ) : void
first Gum
second Gum
interpolationValue float
Résultat void

InterpolateTo() public méthode

public InterpolateTo ( Gum first, Gum second, double secondsToTake, FlatRedBall interpolationType, FlatRedBall easing ) : FlatRedBall.Glue.StateInterpolation.Tweener
first Gum
second Gum
secondsToTake double
interpolationType FlatRedBall
easing FlatRedBall
Résultat FlatRedBall.Glue.StateInterpolation.Tweener

IsExposedVariable() public méthode

public IsExposedVariable ( string variableName ) : bool
variableName string
Résultat bool

IsPointOnWindow() public méthode

public IsPointOnWindow ( float x, float y ) : bool
x float
y float
Résultat bool

MoveToFrbLayer() public méthode

public MoveToFrbLayer ( FlatRedBall layer, FlatRedBall containingScreen ) : void
layer FlatRedBall
containingScreen FlatRedBall
Résultat void

MoveToFrbLayer() public méthode

public MoveToFrbLayer ( FlatRedBall frbLayer, global gumLayer ) : void
frbLayer FlatRedBall
gumLayer global
Résultat void

MoveToLayer() public méthode

public MoveToLayer ( Layer layer ) : void
layer RenderingLibrary.Graphics.Layer
Résultat void

OnDragging() public méthode

public OnDragging ( ) : void
Résultat void

OnLosingFocus() public méthode

public OnLosingFocus ( ) : void
Résultat void

OnResize() public méthode

public OnResize ( ) : void
Résultat void

OnResizeEnd() public méthode

public OnResizeEnd ( ) : void
Résultat void

OverlapsWindow() public méthode

public OverlapsWindow ( IWindow otherWindow ) : bool
otherWindow IWindow
Résultat bool

RemoveFromManagers() public méthode

public RemoveFromManagers ( ) : void
Résultat void

ResumeLayout() public méthode

public ResumeLayout ( bool recursive = false ) : void
recursive bool
Résultat void

SetContainedObject() public méthode

public SetContainedObject ( IRenderable containedObject ) : void
containedObject IRenderable
Résultat void

SetGueValues() public méthode

public SetGueValues ( IVariableFinder rvf ) : void
rvf IVariableFinder
Résultat void

SetProperty() public méthode

public SetProperty ( string propertyName, object value ) : void
propertyName string
value object
Résultat void

SetScaleTL() public méthode

public SetScaleTL ( float newScaleX, float newScaleY ) : void
newScaleX float
newScaleY float
Résultat void

SetScaleTL() public méthode

public SetScaleTL ( float newScaleX, float newScaleY, bool keepTopLeftStatic ) : void
newScaleX float
newScaleY float
keepTopLeftStatic bool
Résultat void

StopAnimations() public méthode

public StopAnimations ( ) : void
Résultat void

SuspendLayout() public méthode

public SuspendLayout ( bool recursive = false ) : void
recursive bool
Résultat void

TestCollision() public méthode

public TestCollision ( Cursor cursor ) : void
cursor Cursor
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateDependencies() public méthode

public UpdateDependencies ( ) : void
Résultat void

UpdateLayout() public méthode

public UpdateLayout ( ) : void
Résultat void

UpdateLayout() public méthode

public UpdateLayout ( bool updateParent, bool updateChildren ) : void
updateParent bool
updateChildren bool
Résultat void

UpdateLayout() public méthode

public UpdateLayout ( bool updateParent, int childrenUpdateDepth ) : void
updateParent bool
childrenUpdateDepth int
Résultat void

Property Details

ChildrenUpdatingParentLayoutCalls public_oe static_oe property

public static int ChildrenUpdatingParentLayoutCalls
Résultat int

IsAllLayoutSuspended public_oe static_oe property

public static bool IsAllLayoutSuspended
Résultat bool

ShowLineRectangles public_oe static_oe property

public static bool ShowLineRectangles
Résultat bool

UpdateLayoutCallCount public_oe static_oe property

public static int UpdateLayoutCallCount
Résultat int