Struct native_windows_gui::Plotters
source · [−]pub struct Plotters {
pub handle: ControlHandle,
/* private fields */
}
Expand description
A canvas-like control that act as a backend for the plotters library. The plotters control use direct2D to render to the canvas.
Fields
handle: ControlHandle
Implementations
sourceimpl Plotters
impl Plotters
pub fn builder() -> PlottersBuilder
sourcepub fn draw<'a>(&'a self) -> Result<PlottersDrawingArea<'a>, PlottersError>
pub fn draw<'a>(&'a self) -> Result<PlottersDrawingArea<'a>, PlottersError>
Prepare the plotters canvas for drawing. Returns an object that can be DrawingArea. This method may fail if an internal error occured during the last draw call
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Return true if the control user can interact with the control, return false otherwise
sourcepub fn set_enabled(&self, v: bool)
pub fn set_enabled(&self, v: bool)
Enable or disable the control
sourcepub fn visible(&self) -> bool
pub fn visible(&self) -> bool
Return true if the control is visible to the user. Will return true even if the control is outside of the parent client view (ex: at the position (10000, 10000))
sourcepub fn set_visible(&self, v: bool)
pub fn set_visible(&self, v: bool)
Show or hide the control to the user
sourcepub fn physical_size(&self) -> (u32, u32)
pub fn physical_size(&self) -> (u32, u32)
Return the physical size of canvas in pixels considering the dpi scale
sourcepub fn set_position(&self, x: i32, y: i32)
pub fn set_position(&self, x: i32, y: i32)
Set the position of the button in the parent window
sourcepub fn class_name(&self) -> &'static str
pub fn class_name(&self) -> &'static str
Winapi class name used during control creation
pub fn flags(&self) -> u32
sourcepub fn forced_flags(&self) -> u32
pub fn forced_flags(&self) -> u32
Winapi flags required by the control
Trait Implementations
sourceimpl From<&Plotters> for ControlHandle
impl From<&Plotters> for ControlHandle
sourceimpl From<&mut Plotters> for ControlHandle
impl From<&mut Plotters> for ControlHandle
sourceimpl PartialEq<ControlHandle> for Plotters
impl PartialEq<ControlHandle> for Plotters
sourcefn eq(&self, other: &ControlHandle) -> bool
fn eq(&self, other: &ControlHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialEq<Plotters> for ControlHandle
impl PartialEq<Plotters> for ControlHandle
Auto Trait Implementations
impl !RefUnwindSafe for Plotters
impl !Send for Plotters
impl !Sync for Plotters
impl Unpin for Plotters
impl UnwindSafe for Plotters
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