Struct droom_ui::image::Image [] [src]

pub struct Image(_);

A one-channel image which each pixel is a byte index to a pallet of RGB colors.

The image is meant to be shown on a label, button, toggle, or as a cursor.

See the IUP Image Documentation.

Methods

impl Image
[src]

Sets the pallet of colors to be used by the pixels.

This is a shortcut to the 0, 1, 2, ..., i attributes.

Panics

Panics if the length of the colors pallet is greater than 256.

Trait Implementations

impl ImageElement for Image
[src]

The type of a single pixel of this image.

Creates a new image element with the specified dimensions from the specified pixel array. Read more

Creates a new image element from the output of the pixels! macro. Read more

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

Formats the value using the given formatter.

impl Copy for Image
[src]

impl Clone for Image
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl DestroyCb for Image
[src]