Attrdesc

AttributeDesc

class lxu.attrdesc.AttributeDesc

This is equivalent to the CLxAttributeDesc class.

add(name, type)

Add an attribute to the end of the attribute list. Takes a name and value type string.

arg_flag(flag)

Set argument flags for a command argument attribute.

by_index(index)

Get the name of an attribute by index.

by_name(name)

Get the index of an attribute by name.

chan_add_dependency(channel, itemtype)
chan_dep_byindex(name, index)
chan_dep_count(name)
chan_enabled(name, item, read, msg)
chan_flags(fl)
chan_set_custom(cust)
chan_uihints(name, obj)
chan_uivalue(name)
chmod_array(flags)

Set the attribute to be accessed from a channel modifier as a ValueArray.

chmod_bind(cmod)

Bind the channel modifier to data object.

chmod_define(cmod)

Define the inputs and outputs of a channel modifier.

chmod_matrix(flags)

Set the attribute to be accessed from a channel modifier as a Matrix.

chmod_time()

Add time as a channel modifier input.

chmod_value(flags)

Set the attribute to be accessed from a channel modifier as a Value.

count()

Get the number of attributes.

default_val(val)

Set the default value for the attribute.

dialog_init(attr)

Initialize command dialog.

eval_attach(eval, item)

Attach channels to an Evaluation, returing base index.

eval_flag(flag)

Set evaluation flags for a channel attribute.

eval_read(attr, base)

Read eval channels from Attributes (already cast for speed) and base index, returing an object with named attributes. Types will match the intrinsic type for read, and will be value objects for write.

eval_time()

Add time as an evaluation attribute.

need_chan_ui()
read_args(attr)

Read command arguments into struct.

read_args_isset(attr, data)

Read command argument “set” status into struct.

set_hint(hint)

Set the optional hint vector for an attribute.

set_max(maxval)
set_min(minval)
setup_args(cmd)

Set command arguments from attributes.

setup_channels(add_obj)

Setup the channels for a package using the description.

vector_type(vtype)

Set the optional vector type for an attribute.

AttributeDescData

class lxu.attrdesc.AttributeDescData

AttributeDescVector

class lxu.attrdesc.AttributeDescVector
Set(vector)

CustomChannelUI

class lxu.attrdesc.CustomChannelUI

This class can be specialized by the client for custom UI behaviors on specific channels.

enabled(item, read, msg)

Implement this method to return false when the channel is disabled. The message can also be set.

hints(hints)

Implement this method to set hints on the UIHints object. If this returns true then it overrides any other default hints.

uivalue()

Implement this method to return a new UIValueHints object for the channel.