[−][src]Struct rg3d_ui::draw::DrawingContext
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]
&mut self,
rect: &Rect<f32>,
tex_coords: Option<&[Vec2; 4]>
)
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]
&mut self,
kind: CommandKind,
brush: Brush,
texture: CommandTexture
)
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
impl !RefUnwindSafe for DrawingContext
impl Send for DrawingContext
impl Sync for DrawingContext
impl Unpin for DrawingContext
impl !UnwindSafe for DrawingContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,