Skip to content

luxe: ui/block


import "luxe: ui/block" for BlockListener

no docs found

BlockListener.block : Block

no docs found

BlockListener.handle : Handle

no docs found

BlockListener.new(block : Block, handle : Handle) : BlockListener

no docs found

import "luxe: ui/block" for BlockWindowState

no docs found

var collapsed : Bool = false

BlockWindowState.new() : BlockWindowState

no docs found

import "luxe: ui/block" for ModifiedPip

no docs found

ModifiedPip.control : Control

no docs found

ModifiedPip.kind : BlockFieldModified

no docs found

ModifiedPip.kind=(value : BlockFieldModified) : unknown

no docs found

ModifiedPip.color : unknown

no docs found

ModifiedPip.new(ui : UI, kind : BlockFieldModified) : ModifiedPip

no docs found

import "luxe: ui/block" for UIBlock

no docs found

UIBlock.create(ui : Entity) : unknown

no docs found

UIBlock.set_block_instance(control : Control, block : Block, instance : BlockInstance) : unknown

no docs found

UIBlock.set_block_instances(control : Control, block : Block, instances : List) : unknown

no docs found

UIBlock.set_blocks_instances(control : Control, blocks : List, instances : List) : unknown

no docs found

UIBlock.set_sizes(control : Control, label_width : Num, label_size : Num, field_height : Num) : unknown

no docs found

UIBlock.refresh(control : Control) : unknown

no docs found

UIBlock.set_allow_gizmo(control : Control, yes : Bool) : None

no docs found

UIBlock.get_handle_assets(control : Control) : Bool

no docs found

UIBlock.set_handle_assets(control : Control, yes : Bool) : None

no docs found

UIBlock.set_show_defaults(control : Control, yes : Bool) : unknown

no docs found

UIBlock.get_block_fields(control : Any) : Map

no docs found

import "luxe: ui/block" for UIBlockAssetEvent

no docs found

var view : ValueView = null

UIBlockAssetEvent.tags : List

no docs found

UIBlockAssetEvent.original : String

no docs found

UIBlockAssetEvent.new(tags_in : List, original_in : String, view : ValueView, fn : Fn) : UIBlockAssetEvent

no docs found

UIBlockAssetEvent.done(value : String) : unknown

no docs found

import "luxe: ui/block" for UIBlockChange

A change in the block ui can inside a nested block, each with it’s own individual instance, list of nested fields, and list of nested array index values each step down. This tracks that for changes.

var change_id : Any = null

UIBlockChange.new(kind : UIBlockChangeType, root : Block, root_instance : BlockInstance, blocks : List, instances : List, fields : List, indices : List, edit_value : Any) : UIBlockChange

no docs found

UIBlockChange.refresh() : unknown

no docs found

UIBlockChange.handle() : unknown

no docs found

UIBlockChange.set_refresh(fn : Fn) : unknown

no docs found

UIBlockChange.set_handler(fn : Fn) : unknown

no docs found

UIBlockChange.kind : UIBlockChangeType

The type of change event

UIBlockChange.block : Block

The root block in which the change occurred

UIBlockChange.instance : Num

The instance of the root block

UIBlockChange.blocks : List

The list of blocks down the chain e.g some.nested.field

UIBlockChange.instances : List

The list of instances for each block down the chain e.g some.nested.field

UIBlockChange.field : List

The list of nested fields for each block, e.g some.nested.field -> [“some”, “nested”, “field”]

UIBlockChange.array_indices : Num

The array index for each nested block. e.g some.nested[2].block[3] is [0, 2, 3]

UIBlockChange.field_index(idx : Num) : Num

The field index for the field in the fields list. e.g [“some”, “nested”, “field”] -> field_index[1] returns the field index of nested in the second block down

UIBlockChange.default : Any

The default value in the leaf block for this field

UIBlockChange.get_field_value() : Any

The current value in the leaf block for this field (e.g for an array, returns the contents of the array)

UIBlockChange.get_leaf_value() : Any

The current value in the leaf for this block/field/array?

UIBlockChange.leaf_block : Block

no docs found

UIBlockChange.leaf_instance : BlockInstance

no docs found

UIBlockChange.leaf_field_index : Num

no docs found

UIBlockChange.leaf_array_index : Num

no docs found

UIBlockChange.get_change_value() : Any

no docs found

UIBlockChange.field_is_array() : Bool

no docs found

UIBlockChange.field_is_object() : Bool

no docs found

UIBlockChange.value : Any

The intended change value based on type

UIBlockChange.edit_value : Any

The value from the ui at the time of the change

import "luxe: ui/block" for UIBlockChangeType

no docs found

UIBlockChangeType.NORMAL : unknown

no docs found

UIBlockChangeType.RESET : unknown

no docs found

UIBlockChangeType.ARRAY_ADD : unknown

no docs found

UIBlockChangeType.ARRAY_REMOVE : unknown

no docs found

UIBlockChangeType.ARRAY_CLEAR : unknown

no docs found

UIBlockChangeType.ARRAY_RESET : unknown

no docs found

UIBlockChangeType.ARRAY_ELEMENT_RESET : unknown

no docs found

UIBlockChangeType.ARRAY_REORDER : unknown

no docs found

UIBlockChangeType.BLOCK : unknown

no docs found

import "luxe: ui/block" for UIBlockEventType

no docs found

UIBlockEventType.asset : unknown

no docs found

UIBlockEventType.link : unknown

no docs found

UIBlockEventType.gizmo : unknown

no docs found

import "luxe: ui/block" for UIBlockGizmoEvent

no docs found

var view : ValueView = null
var kind : String = "translate"
var on_done : Fn = null
var is_done : Bool = false

UIBlockGizmoEvent.original : String

no docs found

UIBlockGizmoEvent.new(kind_in : String, original_in : String, view : ValueView, fn : Fn) : UIBlockGizmoEvent

no docs found

UIBlockGizmoEvent.done() : unknown

no docs found

UIBlockGizmoEvent.update(value : String) : unknown

no docs found

import "luxe: ui/block" for UIBlockLinkEvent

no docs found

UIBlockLinkEvent.original : List

no docs found

UIBlockLinkEvent.tag : String

no docs found

UIBlockLinkEvent.from_drop : Bool

no docs found

UIBlockLinkEvent.drop_payload : Any

no docs found

UIBlockLinkEvent.link_target : Any

no docs found

UIBlockLinkEvent.new(original_in : List, tag : ID32, link_target : Handle, fn : Fn) : UIBlockLinkEvent

no docs found

UIBlockLinkEvent.new(original_in : List, tag : ID32, link_target : Handle, drop_payload : Handle, fn : Fn) : UIBlockLinkEvent

no docs found

UIBlockLinkEvent.done(value : List) : unknown

no docs found