Struct rg3d_ui::draw::DrawingContext [−][src]
Implementations
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 get_commands(&self) -> &Vec<Command>
[src]
pub fn push_opacity(&mut self, opacity: f32)
[src]
pub fn pop_opacity(&mut self)
[src]
pub fn triangle_points(
&self,
triangle: &TriangleDefinition
) -> Option<(&Vertex, &Vertex, &Vertex)>
[src]
&self,
triangle: &TriangleDefinition
) -> Option<(&Vertex, &Vertex, &Vertex)>
pub fn is_command_contains_point(
&self,
command: &Command,
pos: Vector2<f32>
) -> bool
[src]
&self,
command: &Command,
pos: Vector2<f32>
) -> bool
pub fn commit(
&mut self,
clip_bounds: Rect<f32>,
brush: Brush,
texture: CommandTexture,
clipping_geometry: Option<ClippingGeometry>
)
[src]
&mut self,
clip_bounds: Rect<f32>,
brush: Brush,
texture: CommandTexture,
clipping_geometry: Option<ClippingGeometry>
)
pub fn draw_text(
&mut self,
clip_bounds: Rect<f32>,
position: Vector2<f32>,
formatted_text: &FormattedText
)
[src]
&mut self,
clip_bounds: Rect<f32>,
position: Vector2<f32>,
formatted_text: &FormattedText
)
Trait Implementations
impl Default for DrawingContext
[src]
impl Draw for DrawingContext
[src]
fn push_vertex(&mut self, pos: Vector2<f32>, tex_coord: Vector2<f32>)
[src]
fn push_vertex_raw(&mut self, vertex: Vertex)
[src]
fn push_triangle(&mut self, a: u32, b: u32, c: u32)
[src]
fn last_vertex_index(&self) -> u32
[src]
fn push_triangle_multicolor(&mut self, vertices: [(Vector2<f32>, Color); 3])
[src]
fn push_triangle_filled(&mut self, vertices: [Vector2<f32>; 3])
[src]
fn push_line(&mut self, a: Vector2<f32>, b: Vector2<f32>, thickness: f32)
[src]
fn push_rect(&mut self, rect: &Rect<f32>, thickness: f32)
[src]
fn push_rect_vary(&mut self, rect: &Rect<f32>, thickness: Thickness)
[src]
fn push_rect_filled(
&mut self,
rect: &Rect<f32>,
tex_coords: Option<&[Vector2<f32>; 4]>
)
[src]
&mut self,
rect: &Rect<f32>,
tex_coords: Option<&[Vector2<f32>; 4]>
)
fn push_rect_multicolor(&mut self, rect: &Rect<f32>, colors: [Color; 4])
[src]
fn push_circle(
&mut self,
origin: Vector2<f32>,
radius: f32,
segments: usize,
color: Color
)
[src]
&mut self,
origin: Vector2<f32>,
radius: f32,
segments: usize,
color: Color
)
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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.
pub 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.
pub 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>,