NcVGeom

Type Alias NcVGeom 

Source
pub type NcVGeom = ncvgeom;
Expand description

Describes all geometries of an NcVisual.

Both those which are inherent, and those dependent upon a given rendering regime.

It’s recommended to use NcVisualGeometry instead.

The inner values are calculated at the time of the call, and a font change could make all the fields invalid, except for pixx/pixy.

This type is created by the ncvisual_geom & ncdirectf_geom functions.

Aliased Type§

#[repr(C)]
pub struct NcVGeom {
Show 17 fields pub pixy: u32, pub pixx: u32, pub cdimy: u32, pub cdimx: u32, pub rpixy: u32, pub rpixx: u32, pub rcelly: u32, pub rcellx: u32, pub scaley: u32, pub scalex: u32, pub begy: u32, pub begx: u32, pub leny: u32, pub lenx: u32, pub maxpixely: u32, pub maxpixelx: u32, pub blitter: u32,
}

Fields§

§pixy: u32

true pixel geometry of ncvisual data

§pixx: u32

true pixel geometry of ncvisual data

§cdimy: u32

terminal cell geometry when this was calculated

§cdimx: u32

terminal cell geometry when this was calculated

§rpixy: u32

rendered pixel geometry (per visual_options)

§rpixx: u32

rendered pixel geometry (per visual_options)

§rcelly: u32

rendered cell geometry (per visual_options)

§rcellx: u32

rendered cell geometry (per visual_options)

§scaley: u32

source pixels per filled cell

§scalex: u32

source pixels per filled cell

§begy: u32

upper-left corner of used region

§begx: u32

upper-left corner of used region

§leny: u32

geometry of used region

§lenx: u32

geometry of used region

§maxpixely: u32

only defined for NCBLIT_PIXEL

§maxpixelx: u32

only defined for NCBLIT_PIXEL

§blitter: u32

blitter that will be used

Implementations§

Source§

impl NcVGeom

§Constructors

Source

pub fn new() -> Self

Returns a new NcVGeom with zeroed fields.