[−][src]Enum egui::paint::command::PaintCmd
Variants
Paint nothing. This can be useful as a placeholder.
Fields of Path
Fields of Text
Triangles(Triangles)
Implementations
impl PaintCmd
[src]
pub fn line_segment(points: [Pos2; 2], stroke: impl Into<Stroke>) -> Self
[src]
pub fn line(points: Vec<Pos2>, stroke: impl Into<Stroke>) -> Self
[src]
pub fn closed_line(points: Vec<Pos2>, stroke: impl Into<Stroke>) -> Self
[src]
pub fn polygon(
points: Vec<Pos2>,
fill: impl Into<Srgba>,
stroke: impl Into<Stroke>
) -> Self
[src]
points: Vec<Pos2>,
fill: impl Into<Srgba>,
stroke: impl Into<Stroke>
) -> Self
pub fn circle_filled(
center: Pos2,
radius: f32,
fill_color: impl Into<Srgba>
) -> Self
[src]
center: Pos2,
radius: f32,
fill_color: impl Into<Srgba>
) -> Self
pub fn circle_stroke(
center: Pos2,
radius: f32,
stroke: impl Into<Stroke>
) -> Self
[src]
center: Pos2,
radius: f32,
stroke: impl Into<Stroke>
) -> Self
pub fn rect_filled(
rect: Rect,
corner_radius: f32,
fill_color: impl Into<Srgba>
) -> Self
[src]
rect: Rect,
corner_radius: f32,
fill_color: impl Into<Srgba>
) -> Self
pub fn rect_stroke(
rect: Rect,
corner_radius: f32,
stroke: impl Into<Stroke>
) -> Self
[src]
rect: Rect,
corner_radius: f32,
stroke: impl Into<Stroke>
) -> Self
pub fn text(
fonts: &Fonts,
pos: Pos2,
anchor: (Align, Align),
text: impl Into<String>,
text_style: TextStyle,
color: Srgba
) -> Self
[src]
fonts: &Fonts,
pos: Pos2,
anchor: (Align, Align),
text: impl Into<String>,
text_style: TextStyle,
color: Srgba
) -> Self
impl PaintCmd
[src]
pub fn triangles(triangles: Triangles) -> Self
[src]
pub fn texture_id(&self) -> TextureId
[src]
pub fn translate(&mut self, delta: Vec2)
[src]
Translate location by this much, in-place
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PaintCmd
[src]
impl Send for PaintCmd
[src]
impl Sync for PaintCmd
[src]
impl Unpin for PaintCmd
[src]
impl UnwindSafe for PaintCmd
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,