Struct gelatin::window::RenderValidity
source · [−]pub struct RenderValidity { /* private fields */ }
Expand description
Stores whether the window contets need to be re-rendered.
Widgets must call invalidate
whenever they go through a
a change that requires the widget to be re-drawn.
This object holds a reference counted bool.
Implementations
sourceimpl RenderValidity
impl RenderValidity
pub fn invalidate(&self)
pub fn get(&self) -> bool
Trait Implementations
sourceimpl Clone for RenderValidity
impl Clone for RenderValidity
sourcefn clone(&self) -> RenderValidity
fn clone(&self) -> RenderValidity
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RenderValidity
impl Debug for RenderValidity
sourceimpl Default for RenderValidity
impl Default for RenderValidity
sourcefn default() -> RenderValidity
fn default() -> RenderValidity
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RenderValidity
impl !Send for RenderValidity
impl !Sync for RenderValidity
impl Unpin for RenderValidity
impl !UnwindSafe for RenderValidity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.