pub struct DrawParams { /* private fields */ }Implementations§
Source§impl DrawParams
impl DrawParams
pub fn transform(&mut self, mat: Mat4)
pub fn tint(&mut self, tint: Color)
pub fn use_texture(&mut self, texture: Texture)
pub fn standard_mode(&mut self)
pub fn sdf_mode(&mut self)
pub fn push_mask(&mut self)
pub fn pop_mask(&mut self)
pub fn commit_mask(&mut self)
pub fn text_color(&mut self, color: Color)
pub fn outline_color(&mut self, color: Color)
pub fn tex_chan_mask(&mut self, mask: (u8, u8, u8, u8))
pub fn body_edge(&mut self, edge: f32, smoothing: f32)
pub fn outline_edge(&mut self, edge: f32, smoothing: f32)
Trait Implementations§
Source§impl Clone for DrawParams
impl Clone for DrawParams
Source§fn clone(&self) -> DrawParams
fn clone(&self) -> DrawParams
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 DrawParams<OpenGlContext> for DrawParams
impl DrawParams<OpenGlContext> for DrawParams
Source§fn apply_all(&mut self, ctx: &mut OpenGlContext)
fn apply_all(&mut self, ctx: &mut OpenGlContext)
Apply the entirety of the current state, as if starting fresh.
Source§fn apply_change(current: &Self, new: &mut Self, ctx: &mut OpenGlContext)
fn apply_change(current: &Self, new: &mut Self, ctx: &mut OpenGlContext)
Apply just the differences between the states.
Auto Trait Implementations§
impl Freeze for DrawParams
impl !RefUnwindSafe for DrawParams
impl !Send for DrawParams
impl !Sync for DrawParams
impl Unpin for DrawParams
impl !UnwindSafe for DrawParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToggleButtonValue<()> for T
impl<T> ToggleButtonValue<()> for T
Source§fn get_value(&self, _extra: &WidgetExtra<'_>)
fn get_value(&self, _extra: &WidgetExtra<'_>)
Get the value associated with this toggle button content.
Source§impl<T> ToggleButtonValue<WidgetId> for T
impl<T> ToggleButtonValue<WidgetId> for T
Source§fn get_value(&self, extra: &WidgetExtra<'_>) -> WidgetId
fn get_value(&self, extra: &WidgetExtra<'_>) -> WidgetId
Get the value associated with this toggle button content.