easy_imgui

Struct WindowDrawList

Source
pub struct WindowDrawList<'ui, A> { /* private fields */ }

Implementations§

Source§

impl<A> WindowDrawList<'_, A>

Source

pub fn add_line(&self, p1: Vector2, p2: Vector2, color: Color, thickness: f32)

Source

pub fn add_rect( &self, p_min: Vector2, p_max: Vector2, color: Color, rounding: f32, flags: DrawFlags, thickness: f32, )

Source

pub fn add_rect_filled( &self, p_min: Vector2, p_max: Vector2, color: Color, rounding: f32, flags: DrawFlags, )

Source

pub fn add_rect_filled_multicolor( &self, p_min: Vector2, p_max: Vector2, col_upr_left: Color, col_upr_right: Color, col_bot_right: Color, col_bot_left: Color, )

Source

pub fn add_quad( &self, p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, color: Color, thickness: f32, )

Source

pub fn add_quad_filled( &self, p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, color: Color, )

Source

pub fn add_triangle( &self, p1: Vector2, p2: Vector2, p3: Vector2, color: Color, thickness: f32, )

Source

pub fn add_triangle_filled( &self, p1: Vector2, p2: Vector2, p3: Vector2, color: Color, )

Source

pub fn add_circle( &self, center: Vector2, radius: f32, color: Color, num_segments: i32, thickness: f32, )

Source

pub fn add_circle_filled( &self, center: Vector2, radius: f32, color: Color, num_segments: i32, )

Source

pub fn add_ngon( &self, center: Vector2, radius: f32, color: Color, num_segments: i32, thickness: f32, )

Source

pub fn add_ngon_filled( &self, center: Vector2, radius: f32, color: Color, num_segments: i32, )

Source

pub fn add_ellipse( &self, center: Vector2, radius: Vector2, color: Color, rot: f32, num_segments: i32, thickness: f32, )

Source

pub fn add_ellipse_filled( &self, center: Vector2, radius: Vector2, color: Color, rot: f32, num_segments: i32, )

Source

pub fn add_text(&self, pos: Vector2, color: Color, text: &str)

Source

pub fn add_text_ex( &self, font: FontId, font_size: f32, pos: Vector2, color: Color, text: &str, wrap_width: f32, cpu_fine_clip_rect: Option<ImVec4>, )

Source

pub fn add_polyline( &self, points: &[ImVec2], color: Color, flags: DrawFlags, thickness: f32, )

Source

pub fn add_convex_poly_filled(&self, points: &[ImVec2], color: Color)

Source

pub fn add_concave_poly_filled(&self, points: &[ImVec2], color: Color)

Source

pub fn add_bezier_cubic( &self, p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, color: Color, thickness: f32, num_segments: i32, )

Source

pub fn add_bezier_quadratic( &self, p1: Vector2, p2: Vector2, p3: Vector2, color: Color, thickness: f32, num_segments: i32, )

Source

pub fn add_image( &self, user_texture_id: TextureId, p_min: Vector2, p_max: Vector2, uv_min: Vector2, uv_max: Vector2, color: Color, )

Source

pub fn add_image_quad( &self, user_texture_id: TextureId, p1: Vector2, p2: Vector2, p3: Vector2, p4: Vector2, uv1: Vector2, uv2: Vector2, uv3: Vector2, uv4: Vector2, color: Color, )

Source

pub fn add_image_rounded( &self, user_texture_id: TextureId, p_min: Vector2, p_max: Vector2, uv_min: Vector2, uv_max: Vector2, color: Color, rounding: f32, flags: DrawFlags, )

Source

pub fn add_callback(&self, cb: impl FnOnce(&mut A) + 'static)

Source

pub fn add_draw_cmd(&self)

Auto Trait Implementations§

§

impl<'ui, A> Freeze for WindowDrawList<'ui, A>

§

impl<'ui, A> !RefUnwindSafe for WindowDrawList<'ui, A>

§

impl<'ui, A> !Send for WindowDrawList<'ui, A>

§

impl<'ui, A> !Sync for WindowDrawList<'ui, A>

§

impl<'ui, A> Unpin for WindowDrawList<'ui, A>

§

impl<'ui, A> !UnwindSafe for WindowDrawList<'ui, A>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.