#[repr(C)]pub enum RenderType {
PreRender = 0,
Render = 1,
PostRender = 2,
OptionsRender = 3,
}Expand description
Type of render callback.
Variants§
PreRender = 0
Before ImGui frame is initialized.
Render = 1
During ImGui frame.
PostRender = 2
After ImGui frame was ended.
OptionsRender = 3
During ImGui frame, appended to options window.
Trait Implementations§
Source§impl AsRef<str> for RenderType
impl AsRef<str> for RenderType
Source§impl Clone for RenderType
impl Clone for RenderType
Source§fn clone(&self) -> RenderType
fn clone(&self) -> RenderType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderType
impl Debug for RenderType
Source§impl<'de> Deserialize<'de> for RenderType
impl<'de> Deserialize<'de> for RenderType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RenderType
impl Display for RenderType
Source§impl<'_derivative_strum> From<&'_derivative_strum RenderType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum RenderType> for &'static str
Source§fn from(x: &'_derivative_strum RenderType) -> &'static str
fn from(x: &'_derivative_strum RenderType) -> &'static str
Converts to this type from the input type.
Source§impl From<RenderType> for &'static str
impl From<RenderType> for &'static str
Source§fn from(x: RenderType) -> &'static str
fn from(x: RenderType) -> &'static str
Converts to this type from the input type.
Source§impl Hash for RenderType
impl Hash for RenderType
Source§impl IntoEnumIterator for RenderType
impl IntoEnumIterator for RenderType
type Iterator = RenderTypeIter
fn iter() -> RenderTypeIter ⓘ
Source§impl Ord for RenderType
impl Ord for RenderType
Source§fn cmp(&self, other: &RenderType) -> Ordering
fn cmp(&self, other: &RenderType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RenderType
impl PartialEq for RenderType
Source§impl PartialOrd for RenderType
impl PartialOrd for RenderType
Source§impl Serialize for RenderType
impl Serialize for RenderType
Source§impl VariantNames for RenderType
impl VariantNames for RenderType
impl Copy for RenderType
impl Eq for RenderType
impl StructuralPartialEq for RenderType
Auto Trait Implementations§
impl Freeze for RenderType
impl RefUnwindSafe for RenderType
impl Send for RenderType
impl Sync for RenderType
impl Unpin for RenderType
impl UnwindSafe for RenderType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more