Skip to content

luxe API (2025.1.2)


luxe: ui/block module


BlockListener

import "luxe: ui/block" for BlockListener

no docs found


BlockListener.block returns Block

no docs found

BlockListener.handle returns Handle

no docs found

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

no docs found

ModifiedPip

import "luxe: ui/block" for ModifiedPip

no docs found


ModifiedPip.control returns Control

no docs found

ModifiedPip.kind returns BlockFieldModified

no docs found

ModifiedPip.kind=(value : BlockFieldModified) returns unknown

no docs found

ModifiedPip.color returns unknown

no docs found

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

no docs found

UIBlock

import "luxe: ui/block" for UIBlock

no docs found


UIBlock.create(ui: Entity) returns unknown

no docs found

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

no docs found

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

no docs found

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

no docs found

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

no docs found

UIBlock.refresh(control: Control) returns unknown

no docs found

UIBlock.get_handle_assets(control: Control) returns Bool

no docs found

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

no docs found

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

no docs found

UIBlock.get_block_fields(control: Any) returns Map

no docs found

UIBlockAssetEvent

import "luxe: ui/block" for UIBlockAssetEvent

no docs found


UIBlockAssetEvent.tags returns List

no docs found

UIBlockAssetEvent.original returns String

no docs found

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

no docs found

UIBlockAssetEvent.done(value: String) returns unknown

no docs found

UIBlockChange

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.


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

no docs found

UIBlockChange.refresh() returns unknown

no docs found

UIBlockChange.handle() returns unknown

no docs found

UIBlockChange.set_refresh(fn: Fn) returns unknown

no docs found

UIBlockChange.set_handler(fn: Fn) returns unknown

no docs found

UIBlockChange.kind returns UIBlockChangeType

The type of change event

UIBlockChange.block returns Block

The root block in which the change occurred

UIBlockChange.instance returns Num

The instance of the root block

UIBlockChange.blocks returns List

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

UIBlockChange.instances returns List

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

UIBlockChange.field returns List

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

UIBlockChange.array_indices returns Num

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

UIBlockChange.field_index(idx: Num) returns 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 returns Any

The default value in the leaf block for this field

UIBlockChange.get_field_value() returns 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() returns Any

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

UIBlockChange.leaf_block returns Block

no docs found

UIBlockChange.leaf_instance returns BlockInstance

no docs found

UIBlockChange.leaf_field_index returns Num

no docs found

UIBlockChange.leaf_array_index returns Num

no docs found

UIBlockChange.get_change_value() returns Any

no docs found

UIBlockChange.field_is_array() returns Bool

no docs found

UIBlockChange.field_is_object() returns Bool

no docs found

UIBlockChange.value returns Any

The intended change value based on type

UIBlockChange.edit_value returns Any

The value from the ui at the time of the change

UIBlockChangeType

import "luxe: ui/block" for UIBlockChangeType

no docs found


UIBlockChangeType.NORMAL returns unknown

no docs found

UIBlockChangeType.RESET returns unknown

no docs found

UIBlockChangeType.ARRAY_ADD returns unknown

no docs found

UIBlockChangeType.ARRAY_REMOVE returns unknown

no docs found

UIBlockChangeType.ARRAY_CLEAR returns unknown

no docs found

UIBlockChangeType.ARRAY_RESET returns unknown

no docs found

UIBlockChangeType.ARRAY_ELEMENT_RESET returns unknown

no docs found

UIBlockChangeType.ARRAY_REORDER returns unknown

no docs found

UIBlockChangeType.BLOCK returns unknown

no docs found

UIBlockEventType

import "luxe: ui/block" for UIBlockEventType

no docs found


UIBlockEventType.asset returns unknown

no docs found

UIBlockEventType.link returns unknown

no docs found

UIBlockLinkEvent

import "luxe: ui/block" for UIBlockLinkEvent

no docs found


UIBlockLinkEvent.original returns List

no docs found

UIBlockLinkEvent.tag returns String

no docs found

UIBlockLinkEvent.from_drop returns Bool

no docs found

UIBlockLinkEvent.drop_payload returns Bool

no docs found

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

no docs found

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

no docs found

UIBlockLinkEvent.done(value: List) returns unknown

no docs found

UIBlockState

import "luxe: ui/block" for UIBlockState

no docs found


UIBlockState.new(ui: Entity, control: Control) returns UIBlockState

no docs found

UIBlockState.get_block_fields() returns unknown

no docs found

UIBlockState.set_show_defaults(show_defaults: Any) returns unknown

no docs found

UIBlockState.clear_listeners() returns unknown

no docs found

UIBlockState.handle_assets returns Bool

no docs found

UIBlockState.handle_assets=(v : Bool) returns unknown

no docs found

UIBlockState.field_h returns unknown

no docs found

UIBlockState.label_w returns unknown

no docs found

UIBlockState.set_sizes(label_width: Num, label_size: Num, field_height: Num) returns unknown

no docs found

UIBlockState.set_instance(block: Block, instance: BlockInstance) returns unknown

no docs found

UIBlockState.set_instances(block: Block, instances: List) returns unknown

no docs found

UIBlockState.set_blocks_instances(blocks: List, instances: List) returns unknown

no docs found

UIBlockState.do_refresh() returns unknown

no docs found

UIBlockState.refresh() returns unknown

no docs found

UIBlockState.make_vec(view: ValueView) returns Field

no docs found

UIBlockState.make_color(view: ValueView) returns Field

no docs found

UIBlockState.make_num(view: ValueView) returns Field

no docs found

UIBlockState.make_text(view: ValueView) returns Field

no docs found

UIBlockState.get_asset_picks(types: Any) returns unknown

no docs found

UIBlockState.make_asset(view: ValueView) returns Field

no docs found

UIBlockState.make_link(view: ValueView) returns Field

no docs found

UIBlockState.make_path(view: ValueView, tag: Num) returns Field

no docs found

UIBlockState.make_empty_object(name: String) returns Field

no docs found

UIBlockState.make_empty_object(name: String, display: String) returns Field

no docs found

UIBlockState.make_multiple_message() returns unknown

no docs found

UIBlockState.make_message(display: String) returns unknown

no docs found

UIBlockState.make_bool(default: Bool) returns Field

no docs found

UIBlockState.make_options(options: List, default: String) returns Field

no docs found

UIBlockState.make_object_field(name: String, view: ValueView) returns unknown

no docs found

UIBlockState.make_options_field(view: ValueView) returns Field

no docs found

UIBlockState.make_field(name: String, type: BlockFieldType, view: ValueView) returns Field

no docs found

UIBlockState.make_object(name: String) returns unknown

no docs found

UIBlockState.make_object(name: String, title_color: Color) returns unknown

no docs found

UIBlockState.make_object(name: String, details: String, title_color: Color) returns unknown

no docs found

UIBlockState.make_label(name: String, width: Num) returns unknown

no docs found

UIBlockState.p(depth: Any, value: Any) returns unknown

no docs found

UIBlockState.dump_info(control: Control, d: Num) returns unknown

no docs found

UIBlockState.make_mod_pip(kind: BlockFieldModified) returns ModifiedPip

no docs found

UIBlockState.get_changes(kind: UIBlockChange, value: ValueView, edit_value: Any) returns List

no docs found

UIBlockState.get_changes(kind: UIBlockChange, value: ValueView, edit_value: Any, edit_value_fn: Fn) returns List

no docs found

UIBlockState.get_changes(kind: UIBlockChange, value: ValueView, change_id: String, edit_value: Any, edit_value_fn: Fn) returns List

no docs found

UIBlockState.make_block(instance_view: InstanceView, into: Control) returns unknown

no docs found

UIBlockState.make_block(instance_view: InstanceView, into: Control, indent: Num) returns unknown

no docs found

UIBlockState.hide_tip(from: Control) returns unknown

no docs found

UIBlockState.show_tip(tooltip: String, control: Control) returns unknown

no docs found

UIBlockState.make_group(name: Any) returns unknown

no docs found