Struct Background
pub struct Background { /* private fields */ }Expand description
Describes a background object of a text panel.
Implementations§
§impl Background
impl Background
pub fn material(&self) -> MaterialWithTransparency
pub fn material(&self) -> MaterialWithTransparency
Access the material property of the background object.
Methods from Deref<Target = Obj>§
pub fn quaternion(&self) -> Xyzw
pub fn quaternion(&self) -> Xyzw
Access the quaternion of the object.
pub fn visible(&self, value: bool) -> Instruction
pub fn visible(&self, value: bool) -> Instruction
Access the visibility of the object.
pub fn parent(&self, parent: Option<&Obj>) -> Instruction
pub fn parent(&self, parent: Option<&Obj>) -> Instruction
Attach the object to a parent, or detach it when parent is None.
pub fn render_order(&self, value: f64) -> Instruction
pub fn render_order(&self, value: f64) -> Instruction
Writes the render order, overriding the default draw-order sort. Mainly relevant for transparent objects without depth writing, where draw order (not depth) determines blending order against other transparent objects.
pub fn render_order_recursive(&self, value: f64) -> Instruction
pub fn render_order_recursive(&self, value: f64) -> Instruction
Writes the render order recursively to every descendant. renderOrder
does not cascade to children in the browser dispatcher’s underlying
renderer, unlike most other object properties.
pub fn material(&self) -> MaterialHelper
pub fn material(&self) -> MaterialHelper
Access the material property of the object.
Trait Implementations§
§impl Clone for Background
impl Clone for Background
§fn clone(&self) -> Background
fn clone(&self) -> Background
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 more§impl Debug for Background
impl Debug for Background
Auto Trait Implementations§
impl Freeze for Background
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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