Struct alacritty::renderer::rects::RectShaderProgram
source · pub struct RectShaderProgram {
program: ShaderProgram,
u_cell_width: Option<c_int>,
u_cell_height: Option<c_int>,
u_padding_x: Option<c_int>,
u_padding_y: Option<c_int>,
u_underline_position: Option<c_int>,
u_underline_thickness: Option<c_int>,
u_undercurl_position: Option<c_int>,
}
Expand description
Rectangle drawing program.
Fields§
§program: ShaderProgram
Shader program.
u_cell_width: Option<c_int>
Cell width.
u_cell_height: Option<c_int>
Cell height.
u_padding_x: Option<c_int>
Terminal padding.
u_padding_y: Option<c_int>
A padding from the bottom of the screen to viewport.
u_underline_position: Option<c_int>
Underline position.
u_underline_thickness: Option<c_int>
Underline thickness.
u_undercurl_position: Option<c_int>
Undercurl position.
Implementations§
source§impl RectShaderProgram
impl RectShaderProgram
pub fn new( shader_version: ShaderVersion, kind: RectKind ) -> Result<Self, ShaderError>
fn id(&self) -> c_uint
pub fn update_uniforms(&self, size_info: &SizeInfo, metrics: &Metrics)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RectShaderProgram
impl Send for RectShaderProgram
impl Sync for RectShaderProgram
impl Unpin for RectShaderProgram
impl UnwindSafe for RectShaderProgram
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