pub struct WGrid { /* private fields */ }
Expand description
This 3D Widget defines a grid. :
Implementations§
source§impl 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§
source§impl Boxed for WGrid
impl Boxed for WGrid
source§impl WGridTrait for WGrid
impl WGridTrait for WGrid
fn as_raw_mut_WGrid(&mut self) -> *mut c_void
source§impl WGridTraitConst for WGrid
impl WGridTraitConst for WGrid
fn as_raw_WGrid(&self) -> *const c_void
source§impl Widget3DTrait for WGrid
impl Widget3DTrait for WGrid
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
source§fn 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