pub struct WGrid { /* private fields */ }
Expand description
This 3D Widget defines a grid. :
Implementations
sourceimpl WGrid
impl WGrid
sourcepub fn new(cells: Vec2i, cells_spacing: Vec2d, color: &Color) -> Result<WGrid>
pub fn new(cells: Vec2i, cells_spacing: Vec2d, color: &Color) -> Result<WGrid>
Constructs a WGrid.
Parameters
- cells: Number of cell columns and rows, respectively.
- cells_spacing: Size of each cell, respectively.
- color: Color of the grid.
C++ default parameters
- cells: Vec2i::all(10)
- cells_spacing: Vec2d::all(1.0)
- color: Color::white()
Trait Implementations
sourceimpl Boxed for WGrid
impl Boxed for WGrid
sourceimpl WGridTrait for WGrid
impl WGridTrait for WGrid
fn as_raw_mut_WGrid(&mut self) -> *mut c_void
sourceimpl WGridTraitConst for WGrid
impl WGridTraitConst for WGrid
fn as_raw_WGrid(&self) -> *const c_void
sourceimpl Widget3DTrait for WGrid
impl Widget3DTrait for WGrid
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
sourcefn update_pose(&mut self, pose: Affine3d) -> Result<()>
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more
sourceimpl Widget3DTraitConst for WGrid
impl Widget3DTraitConst for WGrid
sourceimpl WidgetTrait for WGrid
impl WidgetTrait for WGrid
sourceimpl WidgetTraitConst for WGrid
impl WidgetTraitConst for WGrid
fn as_raw_Widget(&self) -> *const c_void
impl Send for WGrid
Auto Trait Implementations
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