Struct conrod::widget::button::Image[][src]

pub struct Image {
    pub image_id: Id,
    pub hover_image_id: Option<Id>,
    pub press_image_id: Option<Id>,
    pub color: ImageColor,
    pub src_rect: Option<Rect>,
}

The Button displays an Image on top.

Fields

The id of the Image to be used.

The image displayed when the mouse hovers over the button.

The image displayed when the mouse has captured and is pressing the button.

If Some, maps the image's luminance to this Color.

The rectangular area of the original source image that should be displayed.

Trait Implementations

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

Auto Trait Implementations

impl Send for Image

impl Sync for Image