Struct nanovg::ContextBuilder [−][src]
pub struct ContextBuilder { /* fields omitted */ }
A builder that configures and constructs a NanoVG context.
Methods
impl ContextBuilder
[src]
impl ContextBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new context builder.
pub fn antialias(self) -> Self
[src]
pub fn antialias(self) -> Self
Enable antialiased rasterization. Not needed if you have multisampling enabled.
pub fn stencil_strokes(self) -> Self
[src]
pub fn stencil_strokes(self) -> Self
Enable stencil strokes. Overlapping, stroked paths will only be drawn once, for a little performance loss.
pub fn debug(self) -> Self
[src]
pub fn debug(self) -> Self
Enable additional debug checks.
pub fn build(self) -> Result<Context, ()>
[src]
pub fn build(self) -> Result<Context, ()>
Construct the context. Make sure you have enabled one of the 4 OpenGL features, or this function will panic.
Trait Implementations
impl Debug for ContextBuilder
[src]
impl Debug for ContextBuilder
Auto Trait Implementations
impl Send for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Sync for ContextBuilder