Struct fltk::draw::Offscreen [−][src]
Opaque type around Fl_Offscreen
Implementations
impl Offscreen
[src]
pub fn new(w: i32, h: i32) -> Option<Offscreen>
[src]
Creates a new offscreen type
pub unsafe fn uninit() -> Offscreen
[src]
pub fn begin(&self)
[src]
Begins drawing in the offscreen
pub fn end(&self)
[src]
Ends drawing in the offscreen
pub fn copy(&self, x: i32, y: i32, w: i32, h: i32, srcx: i32, srcy: i32)
[src]
Copies the offscreen
pub fn rescale(&mut self)
[src]
Rescales the offscreen
pub fn is_valid(&self) -> bool
[src]
Checks the validity of the offscreen
pub unsafe fn shallow_copy(&self) -> Offscreen
[src]
Performs a shallow copy of the offscreen
Safety
This can lead to multiple mutable references to the same offscreen
Trait Implementations
impl Debug for Offscreen
[src]
impl Drop for Offscreen
[src]
impl Send for Offscreen
[src]
impl Sync for Offscreen
[src]
Auto Trait Implementations
impl RefUnwindSafe for Offscreen
[src]
impl Unpin for Offscreen
[src]
impl UnwindSafe for Offscreen
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,