C# Класс Gum.Wireframe.GraphicalUiElement

Наследование: IRenderable, IPositionedSizedObject, IVisible
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ChildrenUpdatingParentLayoutCalls int
IsAllLayoutSuspended bool
ShowLineRectangles bool
UpdateLayoutCallCount int

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
CallCustomInitialize ( ) : void

Приватные методы

Метод Описание
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

Описание методов

Activity() публичный Метод

public Activity ( FlatRedBall camera ) : void
camera FlatRedBall
Результат void

AddCategory() публичный Метод

public AddCategory ( DataTypes category ) : void
category DataTypes
Результат void

AddExposedVariable() публичный Метод

public AddExposedVariable ( string variableName, string underlyingVariable ) : void
variableName string
underlyingVariable string
Результат void

AddStates() публичный Метод

public AddStates ( List list ) : void
list List
Результат void

AddToManagers() публичный Метод

public AddToManagers ( ) : void
Результат void

AddToManagers() публичный Метод

public AddToManagers ( SystemManagers managers, Layer layer ) : void
managers RenderingLibrary.SystemManagers
layer RenderingLibrary.Graphics.Layer
Результат void

ApplyState() публичный Метод

public ApplyState ( DataTypes state ) : void
state DataTypes
Результат void

ApplyState() публичный Метод

public ApplyState ( List variableSaveValues ) : void
variableSaveValues List
Результат void

ApplyState() публичный Метод

public ApplyState ( string name ) : void
name string
Результат void

ApplyState() публичный Метод

public ApplyState ( string categoryName, string stateName ) : void
categoryName string
stateName string
Результат void

AssignReferences() публичный Метод

public AssignReferences ( ) : void
Результат void

CallClick() публичный Метод

public CallClick ( ) : void
Результат void

CallCustomInitialize() защищенный Метод

protected CallCustomInitialize ( ) : void
Результат void

CallLosePush() публичный Метод

public CallLosePush ( ) : void
Результат void

CallRollOff() публичный Метод

public CallRollOff ( ) : void
Результат void

CallRollOn() публичный Метод

public CallRollOn ( ) : void
Результат void

CallRollOver() публичный Метод

public CallRollOver ( ) : void
Результат void

CloseWindow() публичный Метод

public CloseWindow ( ) : void
Результат void

Destroy() публичный Метод

public Destroy ( ) : void
Результат void

FlatRedBall() публичный Метод

public FlatRedBall ( string stateName ) : void
stateName string
Результат void

GetChildByName() публичный Метод

public GetChildByName ( string name ) : IPositionedSizedObject
name string
Результат IPositionedSizedObject

GetGraphicalUiElementByName() публичный Метод

public GetGraphicalUiElementByName ( string name ) : GraphicalUiElement
name string
Результат GraphicalUiElement

GetIfDimensionsDependOnChildren() публичный Метод

public GetIfDimensionsDependOnChildren ( ) : bool
Результат bool

GetParentOffsets() публичный Метод

public GetParentOffsets ( float &parentOriginOffsetX, float &parentOriginOffsetY ) : void
parentOriginOffsetX float
parentOriginOffsetY float
Результат void

GetParentVisibility() публичный Метод

public GetParentVisibility ( ) : bool
Результат bool

GetUsedTextures() публичный Метод

public GetUsedTextures ( List listToFill ) : void
listToFill List
Результат void

GraphicalUiElement() публичный Метод

public GraphicalUiElement ( ) : System
Результат System

GraphicalUiElement() публичный Метод

public GraphicalUiElement ( IRenderable containedObject, GraphicalUiElement whatContainsThis ) : System
containedObject IRenderable
whatContainsThis GraphicalUiElement
Результат System

HasCursorOver() публичный Метод

public HasCursorOver ( Cursor cursor ) : bool
cursor Cursor
Результат bool

InterpolateBetween() публичный Метод

public InterpolateBetween ( Gum first, Gum second, float interpolationValue ) : void
first Gum
second Gum
interpolationValue float
Результат void

InterpolateTo() публичный Метод

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
Результат FlatRedBall.Glue.StateInterpolation.Tweener

IsExposedVariable() публичный Метод

public IsExposedVariable ( string variableName ) : bool
variableName string
Результат bool

IsPointOnWindow() публичный Метод

public IsPointOnWindow ( float x, float y ) : bool
x float
y float
Результат bool

MoveToFrbLayer() публичный Метод

public MoveToFrbLayer ( FlatRedBall layer, FlatRedBall containingScreen ) : void
layer FlatRedBall
containingScreen FlatRedBall
Результат void

MoveToFrbLayer() публичный Метод

public MoveToFrbLayer ( FlatRedBall frbLayer, global gumLayer ) : void
frbLayer FlatRedBall
gumLayer global
Результат void

MoveToLayer() публичный Метод

public MoveToLayer ( Layer layer ) : void
layer RenderingLibrary.Graphics.Layer
Результат void

OnDragging() публичный Метод

public OnDragging ( ) : void
Результат void

OnLosingFocus() публичный Метод

public OnLosingFocus ( ) : void
Результат void

OnResize() публичный Метод

public OnResize ( ) : void
Результат void

OnResizeEnd() публичный Метод

public OnResizeEnd ( ) : void
Результат void

OverlapsWindow() публичный Метод

public OverlapsWindow ( IWindow otherWindow ) : bool
otherWindow IWindow
Результат bool

RemoveFromManagers() публичный Метод

public RemoveFromManagers ( ) : void
Результат void

ResumeLayout() публичный Метод

public ResumeLayout ( bool recursive = false ) : void
recursive bool
Результат void

SetContainedObject() публичный Метод

public SetContainedObject ( IRenderable containedObject ) : void
containedObject IRenderable
Результат void

SetGueValues() публичный Метод

public SetGueValues ( IVariableFinder rvf ) : void
rvf IVariableFinder
Результат void

SetProperty() публичный Метод

public SetProperty ( string propertyName, object value ) : void
propertyName string
value object
Результат void

SetScaleTL() публичный Метод

public SetScaleTL ( float newScaleX, float newScaleY ) : void
newScaleX float
newScaleY float
Результат void

SetScaleTL() публичный Метод

public SetScaleTL ( float newScaleX, float newScaleY, bool keepTopLeftStatic ) : void
newScaleX float
newScaleY float
keepTopLeftStatic bool
Результат void

StopAnimations() публичный Метод

public StopAnimations ( ) : void
Результат void

SuspendLayout() публичный Метод

public SuspendLayout ( bool recursive = false ) : void
recursive bool
Результат void

TestCollision() публичный Метод

public TestCollision ( Cursor cursor ) : void
cursor Cursor
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

UpdateDependencies() публичный Метод

public UpdateDependencies ( ) : void
Результат void

UpdateLayout() публичный Метод

public UpdateLayout ( ) : void
Результат void

UpdateLayout() публичный Метод

public UpdateLayout ( bool updateParent, bool updateChildren ) : void
updateParent bool
updateChildren bool
Результат void

UpdateLayout() публичный Метод

public UpdateLayout ( bool updateParent, int childrenUpdateDepth ) : void
updateParent bool
childrenUpdateDepth int
Результат void

Описание свойств

ChildrenUpdatingParentLayoutCalls публичное статическое свойство

public static int ChildrenUpdatingParentLayoutCalls
Результат int

IsAllLayoutSuspended публичное статическое свойство

public static bool IsAllLayoutSuspended
Результат bool

ShowLineRectangles публичное статическое свойство

public static bool ShowLineRectangles
Результат bool

UpdateLayoutCallCount публичное статическое свойство

public static int UpdateLayoutCallCount
Результат int