pub struct Plot3DBuilder<'ui> { /* private fields */ }Expand description
Configures a 3D plot in the current ImGui window and table cell.
Implementations§
Source§impl Plot3DBuilder<'_>
impl Plot3DBuilder<'_>
pub fn size(self, size: [f32; 2]) -> Self
pub fn flags(self, flags: Plot3DFlags) -> Self
Sourcepub fn build<R>(self, draw: impl FnOnce(&Plot3DScope<'_>) -> R) -> Option<R>
pub fn build<R>(self, draw: impl FnOnce(&Plot3DScope<'_>) -> R) -> Option<R>
Draws a plot with the default setup. Returns None if the plot is skipped.
Sourcepub fn build_with_setup<R>(
self,
setup: impl FnOnce(&Plot3DSetup<'_>),
draw: impl FnOnce(&Plot3DScope<'_>) -> R,
) -> Option<R>
pub fn build_with_setup<R>( self, setup: impl FnOnce(&Plot3DSetup<'_>), draw: impl FnOnce(&Plot3DScope<'_>) -> R, ) -> Option<R>
Configures the axes, finishes native setup, and draws the plot. A skipped plot runs neither closure. Both closures can use other ImGui windows and must return to the host window and table cell to operate on this plot.
§Panics
Starting a second plot on this ImPlot3D context while one is open panics before BeginPlot.
Auto Trait Implementations§
impl<'ui> !RefUnwindSafe for Plot3DBuilder<'ui>
impl<'ui> !Send for Plot3DBuilder<'ui>
impl<'ui> !Sync for Plot3DBuilder<'ui>
impl<'ui> !UnwindSafe for Plot3DBuilder<'ui>
impl<'ui> Forget for Plot3DBuilder<'ui>
impl<'ui> Freeze for Plot3DBuilder<'ui>
impl<'ui> Move for Plot3DBuilder<'ui>
impl<'ui> Unpin for Plot3DBuilder<'ui>
impl<'ui> UnsafeUnpin for Plot3DBuilder<'ui>
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