Struct gooey::frontends::renderers::kludgine::Kludgine [−][src]
pub struct Kludgine { /* fields omitted */ }
Trait Implementations
Returns the current system theme.
Returns a new renderer instance with the state such that each operation
executes as if the origin is bounds.origin
. The returned instance’s
size()
should equal bounds.size
. Read more
The scaling factors to use when rendering.
pub fn render_text(
&self,
text: &str,
baseline_origin: impl Displayable<f32, Pixels = Point<f32, Pixels>>,
options: &TextOptions
)
pub fn render_text(
&self,
text: &str,
baseline_origin: impl Displayable<f32, Pixels = Point<f32, Pixels>>,
options: &TextOptions
)
Renders text
at baseline_origin
with options
.
Measures text
using options
.
pub fn stroke_rect(
&self,
rect: &impl Displayable<f32, Pixels = Rect<f32, Pixels>>,
options: &StrokeOptions
)
pub fn stroke_rect(
&self,
rect: &impl Displayable<f32, Pixels = Rect<f32, Pixels>>,
options: &StrokeOptions
)
Strokes the outline of rect
using options
.
Fills rect
using color
.
pub fn stroke_line<P>(&self, point_a: P, point_b: P, options: &StrokeOptions) where
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
pub fn stroke_line<P>(&self, point_a: P, point_b: P, options: &StrokeOptions) where
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
Draws a line between point_a
and point_b
using options
.
pub fn draw_image(
&self,
image: &Image,
location: impl Displayable<f32, Pixels = Point<f32, Pixels>>
)
pub fn draw_image(
&self,
image: &Image,
location: impl Displayable<f32, Pixels = Point<f32, Pixels>>
)
Draws an image
at location
.
fn render_text_with_style<F, P>(
&self,
text: &str,
baseline_origin: P,
style: &Style
) where
F: FallbackComponent<Value = ColorPair>,
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
fn render_text_with_style<F, P>(
&self,
text: &str,
baseline_origin: P,
style: &Style
) where
F: FallbackComponent<Value = ColorPair>,
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
Renders text
at baseline_origin
with options
.
Measures text
using style
.
fn fill_rect_with_style<F, R>(&self, rect: &R, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
R: Displayable<f32, Pixels = Rect<f32, Pixels>>,
fn fill_rect_with_style<F, R>(&self, rect: &R, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
R: Displayable<f32, Pixels = Rect<f32, Pixels>>,
Fills rect
using style
.
fn stroke_rect_with_style<F, R>(&self, rect: &R, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
R: Displayable<f32, Pixels = Rect<f32, Pixels>>,
fn stroke_rect_with_style<F, R>(&self, rect: &R, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
R: Displayable<f32, Pixels = Rect<f32, Pixels>>,
Strokes the outline of rect
using style
.
fn stroke_line_with_style<F, P>(&self, point_a: P, point_b: P, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
fn stroke_line_with_style<F, P>(&self, point_a: P, point_b: P, style: &Style) where
F: FallbackComponent<Value = ColorPair>,
P: Displayable<f32, Pixels = Point<f32, Pixels>>,
Draws a line between point_a
and point_b
using style
.
Auto Trait Implementations
impl !RefUnwindSafe for Kludgine
impl !UnwindSafe for Kludgine
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more