Struct widgetry::backend_glow::GfxCtxInnards [−][src]
pub struct GfxCtxInnards<'a> { gl: &'a Context, program: &'a <Context as HasContext>::Program, current_clip: Option<[i32; 4]>, }
Fields
gl: &'a Context
program: &'a <Context as HasContext>::Program
current_clip: Option<[i32; 4]>
Implementations
impl<'a> GfxCtxInnards<'a>
[src]
impl<'a> GfxCtxInnards<'a>
[src]pub fn new(
gl: &'a Context,
program: &'a <Context as HasContext>::Program
) -> Self
[src]
gl: &'a Context,
program: &'a <Context as HasContext>::Program
) -> Self
pub fn clear(&mut self, color: Color)
[src]
pub fn redraw(
&mut self,
obj: &Drawable,
uniforms: &Uniforms,
_: &PrerenderInnards
)
[src]
&mut self,
obj: &Drawable,
uniforms: &Uniforms,
_: &PrerenderInnards
)
pub fn enable_clipping(
&mut self,
rect: ScreenRectangle,
scale_factor: f64,
canvas: &Canvas
)
[src]
&mut self,
rect: ScreenRectangle,
scale_factor: f64,
canvas: &Canvas
)
pub fn disable_clipping(&mut self, scale_factor: f64, canvas: &Canvas)
[src]
pub fn take_clip(
&mut self,
scale_factor: f64,
canvas: &Canvas
) -> Option<[i32; 4]>
[src]
&mut self,
scale_factor: f64,
canvas: &Canvas
) -> Option<[i32; 4]>