RenPyResolvedDisplayable class
A single resolved displayable (or layout container) in a resolved screen.
Everything here is already evaluated: properties map property names to
their concrete Dart values, positional holds the evaluated positional
arguments, children are nested resolved displayables, and action is a
parsed RenPyScreenAction descriptor when the node carries one. styleName
is the effective style this displayable resolves to (honoring an explicit
style property and the inherited style_prefix), and style is that
style flattened through its is parent chain.
Constructors
-
RenPyResolvedDisplayable({required String kind, Map<
String, Object?> properties = const {}, List<Object?> positional = const [], List<RenPyResolvedDisplayable> children = const [], RenPyScreenAction? action, RenPyScreenAction? alternateAction, String? text, String? interpolatedText, String? styleName, Map<String, Object?> style = const {}, bool isHasLayout = false})
Properties
- action → RenPyScreenAction?
-
The parsed
actiondescriptor, when present.final - alternateAction → RenPyScreenAction?
-
The parsed
alternateaction descriptor, when present.final -
children
→ List<
RenPyResolvedDisplayable> -
Nested resolved displayables.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interpolatedText → String?
-
text with RenPy
[expression]references substituted against the live screen scope at resolution time, so it reflects screen parameters andfor/$locals the resolved tree no longer carries. Inline{tags}are preserved for the text renderer. Null when the node carries no text.final - isHasLayout → bool
-
Whether this node is a
has <layout>hint rather than a real displayable.final - kind → String
-
The displayable name (
vbox,text,textbutton,frame, ...).final -
positional
→ List<
Object?> -
Evaluated positional arguments, in order. For
text/label/textbuttonthe first positional is the displayed string.final -
properties
→ Map<
String, Object?> -
Property name -> evaluated value (e.g.
xalign->0.5).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
style
→ Map<
String, Object?> -
The flattened style property map (parent chain merged), evaluated values.
final
- styleName → String?
-
The effective style name this displayable resolves to, or null when none
applies.
final
- text → String?
-
The resolved text content for
text/label/textbutton, when present. This is the first positional rendered as a string, with RenPy[var]references left literal (substitution is the renderer's job).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited