[][src]Struct rg3d_ui::draw::DrawingContext

pub struct DrawingContext { /* fields omitted */ }

Methods

impl DrawingContext[src]

pub fn new() -> DrawingContext[src]

pub fn clear(&mut self)[src]

pub fn get_vertices(&self) -> &[Vertex][src]

pub fn get_triangles(&self) -> &[TriangleDefinition][src]

pub fn set_nesting(&mut self, nesting: u8)[src]

pub fn get_commands(&self) -> &Vec<Command>[src]

pub fn is_command_contains_point(&self, command: &Command, pos: Vec2) -> bool[src]

pub fn push_line(&mut self, a: Vec2, b: Vec2, thickness: f32)[src]

pub fn push_rect(&mut self, rect: &Rect<f32>, thickness: f32)[src]

pub fn push_rect_vary(&mut self, rect: &Rect<f32>, thickness: Thickness)[src]

pub fn push_rect_filled(
    &mut self,
    rect: &Rect<f32>,
    tex_coords: Option<&[Vec2; 4]>
)
[src]

pub fn push_circle(&mut self, origin: Vec2, radius: f32, segments: usize)[src]

pub fn commit(
    &mut self,
    kind: CommandKind,
    brush: Brush,
    texture: CommandTexture
)
[src]

pub fn draw_text(&mut self, position: Vec2, formatted_text: &FormattedText)[src]

pub fn commit_clip_rect(&mut self, clip_rect: &Rect<f32>)[src]

pub fn ready_to_draw(&self) -> bool[src]

pub fn revert_clip_geom(&mut self)[src]

Trait Implementations

impl Default for DrawingContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,