Struct dui::control::text::Text [] [src]

pub struct Text(_);

See the [IUP Text Documentation][1]. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptext.html

Methods

impl Text
[src]

[src]

Creates a editable text-field.

[src]

Creates a spin control.

The spin increments and decrements an integer number.

[src]

Converts a (lin, col) character positioning into an absolute position.

lin and col starts at 1, pos starts at 0. For single line controls pos is always col-1.

[src]

Converts an absolute position into a (lin, col) character positioning.

lin and col starts at 1, pos starts at 0. For single line controls lin is always 1, and col is always pos+1.

Trait Implementations

impl Element for Text
[src]

[src]

Gets the raw IUP handle associated with this element.

[src]

Constructs an Element from a raw IUP handle. Read more

[src]

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

[src]

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

[src]

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

[src]

Constructs an Element from a raw IUP handle. Read more

[src]

Gets the [class name][1] of this element. [1]: http://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassname.html Read more

[src]

Destroys an interface element and all its children. Read more

[src]

Checks if a specific attribute exists in the element.

[src]

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

[src]

Sets an interface element attribute. Read more

[src]

Gets an interface element attribute. Read more

[src]

Sets a raw interface element attribute. Read more

[src]

Gets a raw interface element attribute.

[src]

Associates a element with an attribute. Read more

[src]

Gets the handle associated with an attribute.

[src]

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

[src]

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

[src]

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

[src]

Associates a handle name with an interface element. Read more

[src]

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

impl Debug for Text
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Text
[src]

impl Clone for Text
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl DestroyCb for Text
[src]

[src]

[src]

impl From<Text> for Handle
[src]

[src]

Performs the conversion.

impl Widget for Text
[src]

[src]

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

[src]

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

[src]

Shows an interfance element. Read more

[src]

Hides an interface element. Read more

impl Node for Text
[src]

[src]

Detaches an interface element from its parent. Read more

[src]

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

[src]

Returns the parent of a element.

[src]

Returns the brother of an element.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Force the element and its children to be redraw immediately.

impl ConvertXYToPos for Text
[src]

Returns a position in the string.

[src]

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

impl MapCb for Text
[src]

[src]

[src]

impl UnmapCb for Text
[src]

[src]

[src]

impl GetFocusCb for Text
[src]

[src]

[src]

impl KillFocusCb for Text
[src]

[src]

[src]

impl EnterWindowCb for Text
[src]

[src]

[src]

impl LeaveWindowCb for Text
[src]

[src]

[src]

impl HelpCb for Text
[src]

[src]

[src]

impl ButtonCb for Text
[src]

Action generated when any mouse button is pressed or released.

Use convert_xy_to_pos to convert (x,y) coordinates in character positioning.

[src]

[src]

impl CaretCb for Text
[src]

Action generated when the caret/cursor position is changed.

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

[src]

[src]

impl DropFilesCb for Text
[src]

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

[src]

[src]

impl MotionCb for Text
[src]

Action generated when the mouse is moved.

Use convert_xy_to_pos to convert (x,y) coordinates in character positioning.

[src]

[src]

impl SpinCb for Text
[src]

Action generated when a spin button is pressed.

Valid only when the element is a spin (Text::new_spin or SPIN=YES attribute). When this callback is called the ACTION callback is not called. The VALUE attribute can be changed during this callback only if SPINAUTO=NO.

The i32 parameter received by the callback is the value of the spin (after incremented).

May return CallbackReturn::Ignore but that is only allowed on Windows and Motif.

[src]

[src]

impl ValueChangedCb for Text
[src]

Called after the value was interactively changed by the user.

[src]

[src]

impl TextAction for Text
[src]

See the TextAction documentation.

[src]

[src]

Auto Trait Implementations

impl !Send for Text

impl !Sync for Text