Label Methods

GeonBit.UI

Label Methods

The Label type exposes the following members.

Methods
  NameDescription
Public methodAddChild
Add a child entity.
(Inherited from Entity.)
Public methodBringToFront
Bring this entity to be on front (inside its parent).
(Inherited from Entity.)
Public methodCalcDestRect
Calculate and return the destination rectangle, eg the space this entity is rendered on.
(Inherited from Entity.)
Public methodCalcInternalRect
Calculate and return the internal destination rectangle (note: this relay on the dest rect having a valid value first).
(Inherited from Entity.)
Public methodCalcTextActualRectWithWrap
Calculate the paragraph actual destination rect with word-wrap and other factors taken into consideration.
(Inherited from Paragraph.)
Public methodClearChildren
Remove all children entities.
(Inherited from Entity.)
Public methodDraw
Draw this entity and its children.
(Inherited from Entity.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFindT(String, Boolean)
Find and return first occurance of a child entity with a given identifier and specific type.
(Inherited from Entity.)
Public methodGetActiveStyle
Return stylesheet property for current entity state (or default if undefined for state).
(Inherited from Entity.)
Public methodGetActualDestRect
Get the actual destination rect that this paragraph takes (based on text content, font size, and word wrap).
(Inherited from Paragraph.)
Public methodGetCharacterActualSize
Get the size, in pixels, of a single character in paragraph.
(Inherited from Paragraph.)
Public methodGetChildren
Return all children of this entity.
(Inherited from Entity.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetProcessedText
Return the processed text that is actually displayed on screen, after word-wrap etc.
(Inherited from Paragraph.)
Public methodGetRelativeOffset
Return the relative offset, in pixels, from parent top-left corner.
(Inherited from Entity.)
Public methodGetStyleProperty
Return stylesheet property for a given state.
(Inherited from Entity.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDeepChildOf
Check if this entity is a descendant of another entity. This goes up all the way to root.
(Inherited from Entity.)
Public methodIsDisabled
Return if this entity is currently disabled, due to self or one of the parents / grandparents being disabled.
(Inherited from Entity.)
Public methodIsInsideEntity
Test if a given point is inside entity's boundaries.
(Inherited from Entity.)
Public methodIsLocked
Return if this entity is currently locked, due to self or one of the parents / grandparents being locked.
(Inherited from Entity.)
Public methodIsNaturallyInteractable
Return true if this entity is naturally interactable, like buttons, lists, etc. Entities that are not naturally interactable are things like paragraph, colored rectangle, icon, etc.
(Inherited from Entity.)
Public methodIsVisible
Return if this entity is currently visible, eg this and all its parents and grandparents are visible.
(Inherited from Entity.)
Public methodIterateChildren
Iterate over children and call 'callback' for every direct child of this entity.
(Inherited from Entity.)
Public methodMarkAsDirty
Mark that this entity boundaries or style changed and it need to recalculate cached destination rect and other things.
(Inherited from Entity.)
Public methodPropagateEventsTo
Propagate all events trigger by this entity to a given other entity. For example, if "OnClick" will be called on this entity, it will trigger OnClick on 'other' as well.
(Inherited from Entity.)
Public methodRemoveChild
Remove child entity.
(Inherited from Entity.)
Public methodRemoveFromParent
Remove this entity from its parent.
(Inherited from Entity.)
Public methodSetAnchor
Set the anchor of this entity.
(Inherited from Entity.)
Public methodSetOffset
Set the offset of this entity.
(Inherited from Entity.)
Public methodSetPosition
Set the position and anchor of this entity.
(Inherited from Entity.)
Public methodSetStyleProperty
Set a stylesheet property.
(Inherited from Entity.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Called every frame to update entity state and call events.
(Inherited from Entity.)
Public methodUpdateDestinationRects
Update dest rect and internal dest rect. This is called internally whenever a change is made to the entity or its parent.
(Inherited from Paragraph.)
Public methodUpdateDestinationRectsIfDirty
Update dest rect and internal dest rect, but only if needed (eg if something changed since last update).
(Inherited from Entity.)
Public methodUpdateStyle
Update the entire stylesheet from a different stylesheet.
(Inherited from Entity.)
Public methodWrapText
Wrap text to fit destination rect. Most if this code is coming from: http://stackoverflow.com/questions/15986473/how-do-i-implement-word-wrap
(Inherited from Paragraph.)
Top
See Also