Struct widgetry::GfxCtx [−][src]
pub struct GfxCtx<'a> { pub(crate) inner: GfxCtxInnards<'a>, uniforms: Uniforms, screencap_mode: bool, pub(crate) naming_hint: Option<String>, pub canvas: &'a Canvas, pub prerender: &'a Prerender, style: &'a Style, pub(crate) num_draw_calls: usize, pub(crate) num_forks: usize, }
Fields
inner: GfxCtxInnards<'a>
uniforms: Uniforms
screencap_mode: bool
naming_hint: Option<String>
canvas: &'a Canvas
prerender: &'a Prerender
style: &'a Style
num_draw_calls: usize
num_forks: usize
Implementations
impl<'a> GfxCtx<'a>
[src]
impl<'a> GfxCtx<'a>
[src]pub(crate) fn new(
prerender: &'a Prerender,
canvas: &'a Canvas,
style: &'a Style,
screencap_mode: bool
) -> GfxCtx<'a>
[src]
prerender: &'a Prerender,
canvas: &'a Canvas,
style: &'a Style,
screencap_mode: bool
) -> GfxCtx<'a>
pub fn fork(
&mut self,
top_left_map: Pt2D,
top_left_screen: ScreenPt,
zoom: f64,
z: Option<f32>
)
[src]
&mut self,
top_left_map: Pt2D,
top_left_screen: ScreenPt,
zoom: f64,
z: Option<f32>
)