Struct fltk::surface::ImageSurface [−][src]
pub struct ImageSurface { /* fields omitted */ }
Expand description
An image surface object. Example usage:
use fltk::{prelude::*, *}; let but = button::Button::new(0, 0, 80, 40, "Click"); let sur = surface::ImageSurface::new(but.width(), but.height(), false); surface::ImageSurface::push_current(&sur); draw::set_draw_color(enums::Color::White); draw::draw_rectf(0, 0, but.width(), but.height()); sur.draw(&but, 0, 0); let img = sur.image().unwrap(); surface::ImageSurface::pop_current();
Implementations
Gets the high resolution image of an image surface as a shared image
Set the origin coordinates of an image surface
Draw a widget on the image surface
Trait Implementations
Checks whether this surface is the current surface
Push a surface as a current surface
Pop the current surface
Auto Trait Implementations
impl RefUnwindSafe for ImageSurface
impl !Send for ImageSurface
impl !Sync for ImageSurface
impl Unpin for ImageSurface
impl UnwindSafe for ImageSurface