Struct droom_ui::control::list::List [] [src]

pub struct List(_);

Methods

impl List
[src]

Creates an interface element that displays a list of items.

Creates an interface element that displays a list of items in a dropdown.

Creates an interface element that displays a list of items with a edit box for text input.

Sets the list of items.

Gets the item at the specified id (starts from 1).

Panics

Panics if id is less than 1.

Clears the list of items. Ignored if called before being mapped.

Trait Implementations

impl Element for List
[src]

Gets the raw IUP handle associated with this element.

Constructs an Element from a raw IUP handle. Read more

Gets the [class name][1] the derived object should be targeting. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassname.html Read more

Constructs a specialized Element object from a general Handle if they are compatible.

Constructs from a name associated with a element handle (with Element::add_handle_name or LED).

Constructs an Element from a raw IUP handle. Read more

Destroys an interface element and all its children. Read more

Checks if a specific attribute exists in the element.

Returns the names of all attributes of an element that are set in its internal hash table only. Read more

Sets an interface element attribute. Read more

Gets an interface element attribute. Read more

Sets a raw interface element attribute. Read more

Gets a raw interface element attribute.

Associates a element with an attribute. Read more

Gets the handle associated with an attribute.

Clears the value associated with an attribute and use the default value.

Removes an attribute from element and its children if the attrib is inheritable. Read more

Returns the identifier of an interface element that has an associated handle name using Element::add_handle_name or using LED. Read more

Associates a handle name with an interface element. Read more

Clears the handle name association on the specified name. Read more

impl Debug for List
[src]

Formats the value using the given formatter.

impl Copy for List
[src]

impl Clone for List
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl DestroyCb for List
[src]

impl Widget for List
[src]

Creates (maps) the native interface objects corresponding to the given IUP interface elements. Read more

Unmap the element from the native system. It will also unmap all its children. Read more

Shows an interfance element. Read more

Hides an interface element. Read more

impl Node for List
[src]

Detaches an interface element from its parent. Read more

Moves an interface element from one position in the hierarchy tree to another. Read more

Returns the parent of a element.

Returns the brother of an element.

Returns the handle of the dialog that contains that interface element. Read more

Returns the identifier of the child element that has the NAME attribute equals to the given value on the same dialog hierarchy. Read more

Updates the size and layout of all controls in the same dialog. Read more

Updates the size and layout of controls after changing size attributes, or attributes that affect the size of the control. Read more

Mark the element to be redraw when the control returns to the system.

Mark the element children to be redraw when the control returns to the system.

Force the element and its children to be redraw immediately.

impl ConvertXYToPos for List
[src]

Returns a list item position from it's xy coordinate.

Converts a x,y coordinate in an item position in the container. Read more

impl MapCb for List
[src]

impl UnmapCb for List
[src]

impl GetFocusCb for List
[src]

impl KillFocusCb for List
[src]

impl EnterWindowCb for List
[src]

impl LeaveWindowCb for List
[src]

impl HelpCb for List
[src]

impl ButtonCb for List
[src]

Action generated when any mouse button is pressed or released inside the list.

Called only when DROPDOWN=NO. If the list has an editbox the message is called when cursor is at the listbox only (ignored at the editbox).

Use convert_xy_to_pos to convert (x,y) coordinates in item position.

impl CaretCb for List
[src]

Action generated when the caret/cursor position is changed. Valid only when EDITBOX=YES.

For lists lin (2nd param) is always 1, and pos (3rd param) is always col-1.

impl DropFilesCb for List
[src]

Action generated when one or more files are dropped in the element.

impl MotionCb for List
[src]

Action generated when the mouse is moved over the list. Called only when DROPDOWN=NO.

If the list has an editbox the message is called when cursor is at the listbox only (ignored at the editbox).

Use convert_xy_to_pos to convert (x,y) coordinates in item position.

impl ValueChangedCb for List
[src]

Called after the value was interactively changed by the user. Called when the selection is changed or when the text is edited.

impl ListAction for List
[src]

See the ListAction documentation.