Struct libnotcurses_sys::ffi::ncvgeom [−][src]
#[repr(C)]pub struct ncvgeom {}Show fields
pub pixy: c_int, pub pixx: c_int, pub cdimy: c_int, pub cdimx: c_int, pub rpixy: c_int, pub rpixx: c_int, pub rcelly: c_int, pub rcellx: c_int, pub scaley: c_int, pub scalex: c_int, pub maxpixely: c_int, pub maxpixelx: c_int, pub blitter: ncblitter_e,
Expand description
FIXME this ought be used in the rendered mode API as well; it’s currently only used by direct mode. describes all geometries of an ncvisual–both those which are inherent, and those in a given rendering regime. pixy and pixx are the true internal pixel geometry, taken directly from the load (and updated by ncvisual_resize()). cdimy/cdimx are the cell pixel geometry at the time of this call (it can change with a font change, in which case all values other than pixy/pixx are invalidated). rpixy/rpixx are the pixel geometry as handed to the blitter, following any scaling. scaley/scalex are the number of input pixels drawn to full cell; when using NCBLIT_PIXEL, they are equivalent to cdimy/cdimx. rcelly/rcellx are the cell geometry as written by the blitter, following any padding (there is padding whenever rpix{y, x} is not evenly divided by scale{y, x}, and also sometimes for Sixel). maxpixely/maxpixelx are defined only when NCBLIT_PIXEL is used, and specify the largest bitmap that the terminal is willing to accept.
Fields
pixy: c_inttrue pixel geometry of ncvisual data
pixx: c_inttrue pixel geometry of ncvisual data
cdimy: c_intterminal cell geometry when this was calculated
cdimx: c_intterminal cell geometry when this was calculated
rpixy: c_intrendered pixel geometry
rpixx: c_intrendered pixel geometry
rcelly: c_intrendered cell geometry
rcellx: c_intrendered cell geometry
scaley: c_intpixels per filled cell
scalex: c_intpixels per filled cell
maxpixely: c_intonly defined for NCBLIT_PIXEL
maxpixelx: c_intonly defined for NCBLIT_PIXEL
blitter: ncblitter_eblitter that will be used
Implementations
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ncvgeom
impl UnwindSafe for ncvgeom
Blanket Implementations
Mutably borrows from an owned value. Read more