Struct droom_ui::element::Handle [] [src]

pub struct Handle(_);

An object that can wrap any IUP element.

The handle also provides implementation for traits that mayn't be implemented for the contained element, so be careful when using it.

Methods

impl Handle
[src]

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

Converts this handle object into a element object if they are compatible.

Trait Implementations

impl Element for Handle
[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 Handle
[src]

Formats the value using the given formatter.

impl Copy for Handle
[src]

impl Clone for Handle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl DestroyCb for Handle
[src]

impl Container for Handle
[src]

Note: The wrapped element may not support Container.

Inserts an interface element at the end of the container, after the last element on it. Read more

Inserts an interface element before another child of the container. Read more

Returns the a child of the element given its position. Read more

Returns the position of a child of the given control. Read more

Returns the number of children of the given element.

impl Node for Handle
[src]

Note: The wrapped element may not support Node.

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 Widget for Handle
[src]

Note: The wrapped element may not support Widget.

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 MapCb for Handle
[src]

Note: The wrapped element may not support MapCb.

impl UnmapCb for Handle
[src]

Note: The wrapped element may not support UnmapCb.

impl GetFocusCb for Handle
[src]

Note: The wrapped element may not support GetFocusCb.

impl KillFocusCb for Handle
[src]

Note: The wrapped element may not support KillFocusCb.

impl EnterWindowCb for Handle
[src]

Note: The wrapped element may not support EnterWindowCb.

impl LeaveWindowCb for Handle
[src]

Note: The wrapped element may not support LeaveWindowCb.

impl HelpCb for Handle
[src]

Note: The wrapped element may not support HelpCb.

impl From<Dialog> for Handle
[src]

Performs the conversion.

impl From<MessageDlg> for Handle
[src]

Performs the conversion.

impl From<FileDlg> for Handle
[src]

Performs the conversion.

impl From<VBox> for Handle
[src]

Performs the conversion.

impl From<HBox> for Handle
[src]

Performs the conversion.

impl From<Radio> for Handle
[src]

Performs the conversion.

impl From<Fill> for Handle
[src]

Performs the conversion.

impl From<Label> for Handle
[src]

Performs the conversion.

impl From<Text> for Handle
[src]

Performs the conversion.

impl From<Button> for Handle
[src]

Performs the conversion.

impl From<ProgressBar> for Handle
[src]

Performs the conversion.

impl From<Toggle> for Handle
[src]

Performs the conversion.

impl From<Frame> for Handle
[src]

Performs the conversion.

impl From<List> for Handle
[src]

Performs the conversion.

impl From<Image> for Handle
[src]

Performs the conversion.

impl From<ImageRgb> for Handle
[src]

Performs the conversion.

impl From<ImageRgba> for Handle
[src]

Performs the conversion.

impl From<Timer> for Handle
[src]

Performs the conversion.

impl From<Clipboard> for Handle
[src]

Performs the conversion.