¶
luxe API (2025.1.2)¶
luxe: system/text.modifier module¶
Data¶
import "luxe: system/text.modifier" for Data
no docs found
var text : String = "hello"var size : Num = 16var align : TextAlignH = TextAlignH.centervar vertical : TextAlignV = TextAlignV.centervar color : Color = [1, 1, 1, 1]var bounds : Float4 = [0, 0, 0, 0]var font : Asset = "luxe: font/lato"var material : Asset = "luxe: material/font"
System¶
import "luxe: system/text.modifier" for System
no docs found
- new(world:
World)
World)
¶System
no docs found
Text¶
import "luxe: system/text.modifier" for Text
no docs found
- create(entity:
Any, material:Any, default_size:Any, default_font:Any, default_color:Any) - destroy(entity:
Any) - set_size(entity:
Any, default_size:Any) - get_size(entity:
Any) - set_font(entity:
Any, default_font:Any) - get_font(entity:
Any) - set_style(entity:
Entity, style:TextStyle) - get_style(entity:
Entity) - set_outline(entity:
Entity, radius:Num, softness:Num, color:Color, offset:Float2) - set_shadow(entity:
Entity, radius:Num, softness:Num, color:Color, offset:Float2) - set_max_visible(entity:
Entity, max_visible:Num) - get_max_visible(entity:
Entity) - set_color(entity:
Any, default_color:Any) - get_color(entity:
Any) - set_align(entity:
Any, align:Any, align_vertical:Any) - set_align(entity:
Any, align:Any) - get_align(entity:
Any) - set_align_vertical(entity:
Any, align_vertical:Any) - get_align_vertical(entity:
Any) - set_bounds(entity:
Any, x:Any, y:Any, w:Any, h:Any) - get_bounds(entity:
Any) - set_attr(entity:
Entity, start:Num, length:Num, type:TextAttrType, key:String, value:Any) - attr_clear(entity:
Any) - commit(entity:
Any) - get_render_text(entity:
Any) - get_geometry(entity:
Any) - get_extents(entity:
Any, offset:Any, count:Any) - get_extents(entity:
Any) - contains(entity:
Any, x:Any, y:Any) - has(entity:
Any) - set_loc(entity:
Entity, space:String, key:String) - set_loc(entity:
Entity, key:String) - set_loc_with_args(entity:
Entity, space:String, key:String, args:List) - set_loc_with_args(entity:
Entity, key:String, args:List) - get_text(entity:
Any) - set_text_buffer(entity:
Any, string:Any) - set_text(entity:
Any, string:Any)
Any, material: Any, default_size: Any, default_font: Any, default_color: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, default_size: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, default_font: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Entity, style: TextStyle)
¶None
no docs found
Entity)
¶TextStyle
no docs found
Entity, radius: Num, softness: Num, color: Color, offset: Float2)
¶unknown
no docs found
Entity, radius: Num, softness: Num, color: Color, offset: Float2)
¶unknown
no docs found
Entity, max_visible: Num)
¶None
no docs found
Entity)
¶Num
no docs found
Any, default_color: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, align: Any, align_vertical: Any)
¶unknown
no docs found
Any, align: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, align_vertical: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, x: Any, y: Any, w: Any, h: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Entity, start: Num, length: Num, type: TextAttrType, key: String, value: Any)
¶None
no docs found
Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, offset: Any, count: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, x: Any, y: Any)
¶unknown
no docs found
Any)
¶unknown
no docs found
Entity, space: String, key: String)
¶unknown
no docs found
Entity, key: String)
¶unknown
no docs found
Entity, space: String, key: String, args: List)
¶unknown
no docs found
Entity, key: String, args: List)
¶unknown
no docs found
Any)
¶unknown
no docs found
Any, string: Any)
¶unknown
no docs found
Any, string: Any)
¶unknown
no docs found
TextAlignH¶
import "luxe: system/text.modifier" for TextAlignH
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
TextAlignV¶
import "luxe: system/text.modifier" for TextAlignV
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found