pub struct Nvg {}Implementations§
Source§impl Nvg
impl Nvg
pub fn save()
pub fn restore()
pub fn reset()
pub fn create_font(name: &str) -> i32
pub fn text_bounds(x: f32, y: f32, text: &str, bounds: &Rect) -> f32
pub fn text_box_bounds(x: f32, y: f32, break_row_width: f32, text: &str) -> Rect
pub fn text(x: f32, y: f32, text: &str) -> f32
pub fn text_box(x: f32, y: f32, break_row_width: f32, text: &str)
pub fn stroke_color(color: &Color)
pub fn stroke_paint(paint: &VGPaint)
pub fn fill_color(color: &Color)
pub fn fill_paint(paint: &VGPaint)
pub fn miter_limit(limit: f32)
pub fn stroke_width(size: f32)
pub fn global_alpha(alpha: f32)
pub fn reset_transform()
pub fn apply_transform(node: &dyn INode)
pub fn translate(x: f32, y: f32)
pub fn rotate(angle: f32)
pub fn skew_x(angle: f32)
pub fn skew_y(angle: f32)
pub fn scale(x: f32, y: f32)
pub fn image_size(image: i32) -> Size
pub fn delete_image(image: i32)
pub fn linear_gradient( sx: f32, sy: f32, ex: f32, ey: f32, icol: &Color, ocol: &Color, ) -> VGPaint
pub fn box_gradient( x: f32, y: f32, w: f32, h: f32, r: f32, f: f32, icol: &Color, ocol: &Color, ) -> VGPaint
pub fn radial_gradient( cx: f32, cy: f32, inr: f32, outr: f32, icol: &Color, ocol: &Color, ) -> VGPaint
pub fn image_pattern( ox: f32, oy: f32, ex: f32, ey: f32, angle: f32, image: i32, alpha: f32, ) -> VGPaint
pub fn scissor(x: f32, y: f32, w: f32, h: f32)
pub fn intersect_scissor(x: f32, y: f32, w: f32, h: f32)
pub fn reset_scissor()
pub fn begin_path()
pub fn move_to(x: f32, y: f32)
pub fn line_to(x: f32, y: f32)
pub fn bezier_to(c_1x: f32, c_1y: f32, c_2x: f32, c_2y: f32, x: f32, y: f32)
pub fn quad_to(cx: f32, cy: f32, x: f32, y: f32)
pub fn arc_to(x_1: f32, y_1: f32, x_2: f32, y_2: f32, radius: f32)
pub fn close_path()
pub fn rect(x: f32, y: f32, w: f32, h: f32)
pub fn rounded_rect(x: f32, y: f32, w: f32, h: f32, r: f32)
pub fn rounded_rect_varying( x: f32, y: f32, w: f32, h: f32, rad_top_left: f32, rad_top_right: f32, rad_bottom_right: f32, rad_bottom_left: f32, )
pub fn ellipse(cx: f32, cy: f32, rx: f32, ry: f32)
pub fn circle(cx: f32, cy: f32, r: f32)
pub fn fill()
pub fn stroke()
pub fn find_font(name: &str) -> i32
pub fn add_fallback_font_id(base_font: i32, fallback_font: i32) -> i32
pub fn add_fallback_font(base_font: &str, fallback_font: &str) -> i32
pub fn font_size(size: f32)
pub fn font_blur(blur: f32)
pub fn text_letter_spacing(spacing: f32)
pub fn text_line_height(line_height: f32)
pub fn font_face_id(font: i32)
pub fn font_face(font: &str)
pub fn dora_ssr()
pub fn get_dora_ssr(scale: f32) -> Texture2D
Source§impl Nvg
impl Nvg
pub fn create_image( w: i32, h: i32, filename: &str, image_flags: BitFlags<NvgImageFlag>, ) -> i32
pub fn line_cap(cap: NvgLineCap)
pub fn line_join(join: NvgLineJoin)
pub fn path_winding(winding: NvgWinding)
pub fn arc(x: f32, y: f32, r: f32, a0: f32, a1: f32, dir: NvgArcDir)
pub fn text_align(h_align: NvgHAlign, v_align: NvgVAlign)
Auto Trait Implementations§
impl Freeze for Nvg
impl RefUnwindSafe for Nvg
impl Send for Nvg
impl Sync for Nvg
impl Unpin for Nvg
impl UnwindSafe for Nvg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more