TextBlock
Constructors
Properties
Returns a list of all the non-null View.name values of this and the descendants
Shortcut for adjusting the multiplicative alpha value manually. Equivalent to ColorTransform.mA + View.invalidate
Returns the number of ancestors of this view. Views without parents return 0.
A collection with all the children Views.
Recursively retrieves the top ancestor in the container hierarchy.
An optional Filter attached to this view. Filters allow to render this view to a texture, and to control how to render that texture (using shaders, repeating the texture, etc.). You add multiple filters by creating a composite filter ComposedFilter.
Usually a value between 0.0, 1.0
Returns the first child of this container or null when the container doesn't have children
Returns the global bounds of this object. Note this incurs in allocations. Use getGlobalBounds (out) to avoid it
Global transform Matrix. Matrix that concatenates all the affine transforms of this view and its ancestors.
The inverted version of the globalMatrix
Computed speed combining all the speeds from ancestors
Indicates if this class is a container or not. This is only overridden by Container. This check is performed like this, to avoid type checks. That might be an expensive operation in some targets.
Local transform MMatrix. If you plan to change its components manually instead of setting it directly, you should call the View.invalidate method.
Determines if mouse events will be handled for this view and its children
Returns the number of children this container has
Indicates if this view is going to propagate the events that reach this node to its children
Recursively retrieves the ancestor in the container hierarchy that is a View.Reference like the stage or null when can't be found.
The concatenated/global version of the local alpha
The concatenated/global version of the local alpha
The actual blendMode of the view after computing the ancestors and reaching a view with a non BlendMode.INHERIT.
The concatenated/global version of the local colorMul
Ratio speed of this node, affecting all the View.addUpdater
Returns the global bounds of this object. Note this incurs in allocations. Use getGlobalBounds (out) to avoid it
Functions
Like setTransform but without invalidation. If used at all, should be used with care and invalidate when required.
Dumps a view and its children for debugging purposes into a String.
Creates a Ellipse of radiusX, radiusY and fill. The autoScaling determines if the underlying texture will be updated when the hierarchy is scaled. The callback allows to configure the Circle instance.
Iterates children in render order
Iterates all the children of this container in normal order of rendering.
Iterates all the children of this container in normal order of rendering.
Iterates all the children of this container in reverse order of rendering.
Iterates all the children of this container in normal order of rendering. Providing an index in addition to the child to the callback.
Iterates all the children of this container in reverse order of rendering.
Iterates all the children of this container in normal order of rendering. Providing an index in addition to the child to the callback.
Iterates all the descendant Views including this calling the handler. Iteration happens in Pre-order (NLR).
Alias for getChildAt
Finds the View at a given index. Remarks: if index is outside bounds 0..numChildren - 1, an IndexOutOfBoundsException will be thrown.
Finds the View at a given index. If the index is not valid, it returns null.
Retrieves the index of a given child View.
Returns the global bounds of this object.
Get local bounds of the view.
Converts the global point p (using root/stage as reference) into the local coordinate system. Allows to define out to avoid allocation.
Checks if this view has the specified ancestor.
Determines the view at the global point defined by xD and yD if any, or null
With imageDataView it is possible to display an image inside a Container or View. It supports layers and animations. Animations consist of a series of frames which are defined e.g. by tag names in Aseprite files.
Invalidates the View after changing some of its properties so the geometry can be computed again. If you change the localMatrix directly, you should call invalidateMatrix instead.
Invalidates the localMatrix, so it gets updated from the decomposed properties: xD, yD, scaleXD, scaleYD, rotation, skewX and skewY.
Computes the local X and Y coordinates of the mouse using the coords from the Views object
Converts the local point p into a global point (using root/stage as reference). Allows to define out to avoid allocation.
Converts the local point p into a point in window coordinates.
Alias for removeChild.
Handles a DropFileEvent. The event happens when a drag&drop file over the window happens.
Alias for addChild.
Removes the specified view from this container.
Removes all Views children from this container.
Removes this view from its parent.
Converts a point p in the nearest ancestor marked as View.Reference into the local coordinate system. Allows to define out to avoid allocation.
Creates a new SceneContainer, allowing to configure with callback, and attaches the newly created container to the receiver this Container It requires to specify the Views singleton instance, and allows to specify a defaultTransition.
Scroll ancestors to make this view is visible
Tries to set the global bounds of the object. If there are rotations in the ancestors, this might not work as expected.
Sets the MatrixTransform decomposed version of the transformation, that directly includes xD, yD, scaleXD, scaleYD, rotation, skewX and skewY.
Creates a new SolidRect of size and color color and allows you to configure it via callback. Once created, it is added to this receiver Container.
Sorts all the children by using the specified comparator.