C# Class Gum.Wireframe.GraphicalUiElement

Inheritance: IRenderable, IPositionedSizedObject, IVisible
ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
ChildrenUpdatingParentLayoutCalls int
IsAllLayoutSuspended bool
ShowLineRectangles bool
UpdateLayoutCallCount int

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
CallCustomInitialize ( ) : void

Private Methods

Method 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 method

public Activity ( FlatRedBall camera ) : void
camera FlatRedBall
return void

AddCategory() public method

public AddCategory ( DataTypes category ) : void
category DataTypes
return void

AddExposedVariable() public method

public AddExposedVariable ( string variableName, string underlyingVariable ) : void
variableName string
underlyingVariable string
return void

AddStates() public method

public AddStates ( List list ) : void
list List
return void

AddToManagers() public method

public AddToManagers ( ) : void
return void

AddToManagers() public method

public AddToManagers ( SystemManagers managers, Layer layer ) : void
managers RenderingLibrary.SystemManagers
layer RenderingLibrary.Graphics.Layer
return void

ApplyState() public method

public ApplyState ( DataTypes state ) : void
state DataTypes
return void

ApplyState() public method

public ApplyState ( List variableSaveValues ) : void
variableSaveValues List
return void

ApplyState() public method

public ApplyState ( string name ) : void
name string
return void

ApplyState() public method

public ApplyState ( string categoryName, string stateName ) : void
categoryName string
stateName string
return void

AssignReferences() public method

public AssignReferences ( ) : void
return void

CallClick() public method

public CallClick ( ) : void
return void

CallCustomInitialize() protected method

protected CallCustomInitialize ( ) : void
return void

CallLosePush() public method

public CallLosePush ( ) : void
return void

CallRollOff() public method

public CallRollOff ( ) : void
return void

CallRollOn() public method

public CallRollOn ( ) : void
return void

CallRollOver() public method

public CallRollOver ( ) : void
return void

CloseWindow() public method

public CloseWindow ( ) : void
return void

Destroy() public method

public Destroy ( ) : void
return void

FlatRedBall() public method

public FlatRedBall ( string stateName ) : void
stateName string
return void

GetChildByName() public method

public GetChildByName ( string name ) : IPositionedSizedObject
name string
return IPositionedSizedObject

GetGraphicalUiElementByName() public method

public GetGraphicalUiElementByName ( string name ) : GraphicalUiElement
name string
return GraphicalUiElement

GetIfDimensionsDependOnChildren() public method

public GetIfDimensionsDependOnChildren ( ) : bool
return bool

GetParentOffsets() public method

public GetParentOffsets ( float &parentOriginOffsetX, float &parentOriginOffsetY ) : void
parentOriginOffsetX float
parentOriginOffsetY float
return void

GetParentVisibility() public method

public GetParentVisibility ( ) : bool
return bool

GetUsedTextures() public method

public GetUsedTextures ( List listToFill ) : void
listToFill List
return void

GraphicalUiElement() public method

public GraphicalUiElement ( ) : System
return System

GraphicalUiElement() public method

public GraphicalUiElement ( IRenderable containedObject, GraphicalUiElement whatContainsThis ) : System
containedObject IRenderable
whatContainsThis GraphicalUiElement
return System

HasCursorOver() public method

public HasCursorOver ( Cursor cursor ) : bool
cursor Cursor
return bool

InterpolateBetween() public method

public InterpolateBetween ( Gum first, Gum second, float interpolationValue ) : void
first Gum
second Gum
interpolationValue float
return void

InterpolateTo() public method

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
return FlatRedBall.Glue.StateInterpolation.Tweener

IsExposedVariable() public method

public IsExposedVariable ( string variableName ) : bool
variableName string
return bool

IsPointOnWindow() public method

public IsPointOnWindow ( float x, float y ) : bool
x float
y float
return bool

MoveToFrbLayer() public method

public MoveToFrbLayer ( FlatRedBall layer, FlatRedBall containingScreen ) : void
layer FlatRedBall
containingScreen FlatRedBall
return void

MoveToFrbLayer() public method

public MoveToFrbLayer ( FlatRedBall frbLayer, global gumLayer ) : void
frbLayer FlatRedBall
gumLayer global
return void

MoveToLayer() public method

public MoveToLayer ( Layer layer ) : void
layer RenderingLibrary.Graphics.Layer
return void

OnDragging() public method

public OnDragging ( ) : void
return void

OnLosingFocus() public method

public OnLosingFocus ( ) : void
return void

OnResize() public method

public OnResize ( ) : void
return void

OnResizeEnd() public method

public OnResizeEnd ( ) : void
return void

OverlapsWindow() public method

public OverlapsWindow ( IWindow otherWindow ) : bool
otherWindow IWindow
return bool

RemoveFromManagers() public method

public RemoveFromManagers ( ) : void
return void

ResumeLayout() public method

public ResumeLayout ( bool recursive = false ) : void
recursive bool
return void

SetContainedObject() public method

public SetContainedObject ( IRenderable containedObject ) : void
containedObject IRenderable
return void

SetGueValues() public method

public SetGueValues ( IVariableFinder rvf ) : void
rvf IVariableFinder
return void

SetProperty() public method

public SetProperty ( string propertyName, object value ) : void
propertyName string
value object
return void

SetScaleTL() public method

public SetScaleTL ( float newScaleX, float newScaleY ) : void
newScaleX float
newScaleY float
return void

SetScaleTL() public method

public SetScaleTL ( float newScaleX, float newScaleY, bool keepTopLeftStatic ) : void
newScaleX float
newScaleY float
keepTopLeftStatic bool
return void

StopAnimations() public method

public StopAnimations ( ) : void
return void

SuspendLayout() public method

public SuspendLayout ( bool recursive = false ) : void
recursive bool
return void

TestCollision() public method

public TestCollision ( Cursor cursor ) : void
cursor Cursor
return void

ToString() public method

public ToString ( ) : string
return string

UpdateDependencies() public method

public UpdateDependencies ( ) : void
return void

UpdateLayout() public method

public UpdateLayout ( ) : void
return void

UpdateLayout() public method

public UpdateLayout ( bool updateParent, bool updateChildren ) : void
updateParent bool
updateChildren bool
return void

UpdateLayout() public method

public UpdateLayout ( bool updateParent, int childrenUpdateDepth ) : void
updateParent bool
childrenUpdateDepth int
return void

Property Details

ChildrenUpdatingParentLayoutCalls public_oe static_oe property

public static int ChildrenUpdatingParentLayoutCalls
return int

IsAllLayoutSuspended public_oe static_oe property

public static bool IsAllLayoutSuspended
return bool

ShowLineRectangles public_oe static_oe property

public static bool ShowLineRectangles
return bool

UpdateLayoutCallCount public_oe static_oe property

public static int UpdateLayoutCallCount
return int