Enum webrender_api::Parameter
source · pub enum Parameter {
Bool(BoolParameter, bool),
Int(IntParameter, i32),
Float(FloatParameter, f32),
}
Expand description
A configuration option that can be changed at runtime.
§Adding a new configuration option
- Add a new enum variant here.
- Add the entry in WR_BOOL_PARAMETER_LIST in gfxPlatform.cpp.
- React to the parameter change anywhere in WebRender where a SetParam message is received.
Variants§
Trait Implementations§
source§impl PartialEq for Parameter
impl PartialEq for Parameter
impl Copy for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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