Package-level declarations
Types
A CpuGraphics class that automatically keeps a circle shape with radius and color. The autoScaling property determines if the underlying texture will be updated when the hierarchy is scaled.
Allows to safely interact with the children of a container instance.
A CpuGraphics class that automatically keeps a ellipse shape with radiusX, radiusY and color. The autoScaling property determines if the underlying texture will be updated when the hierarchy is scaled.
Represents something that can be rendered. Usually a View.
A Sprite is basically an Image with added abilities to display a SpriteAnimation The regular usage is to initialize the Sprite with one SpriteAnimation. The first displayed bitmap will be the first element of the SpriteAnimations spriteStack.
KorGE includes a DOM-based tree of views that makes a chain of affine transforms starting with the Stage, that is the root node.
Heavyweight singleton object within the application that contains information about the Views. It contains information about the coroutineContext, the gameWindow, the injector, the input and contains a reference to the root view.
Properties
Returns a list of all the non-null View.name values of this and the descendants
Returns the number of ancestors of this view. Views without parents return 0.
Functions
Adds an updatable block that will be executed every time time, the calls will be discretized on each frame and will handle accumulations. The first properly allows to adjust if the updatable will be called immediately after calling this function. To avoid executing too many blocks, when there is a long pause, limitCallsPerFrame limits the number of times the block can be executed in a single frame.
Adds a block that will be executed per frame to this view. As parameter the block will receive a TimeSpan with the time elapsed since the previous frame.
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 all the descendant Views including this calling the handler. Iteration happens in Pre-order (NLR).
Checks if this view has the specified ancestor.
Scroll ancestors to make this view is visible
Chainable method returning this that sets View.skewX and View.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.