Trait libnotcurses_sys::NcBoxMaskApi[][src]

pub trait NcBoxMaskApi {
    const GRAD_TOP: NcBoxMask;
    const GRAD_RIGHT: NcBoxMask;
    const GRAD_BOTTOM: NcBoxMask;
    const GRAD_LEFT: NcBoxMask;
    const MASK_TOP: NcBoxMask;
    const MASK_RIGHT: NcBoxMask;
    const MASK_BOTTOM: NcBoxMask;
    const MASK_LEFT: NcBoxMask;
    const CORNER_MASK: NcBoxMask;
    const CORNER_SHIFT: NcBoxMask;
}
Expand description

Enables the NcBoxMask associated methods and constants.

Associated Constants

NcBoxMask top gradient mask.

NcBoxMask right gradient mask.

NcBoxMask bottom gradient mask.

NcBoxMask left gradient mask.

NcBoxMask top border mask.

NcBoxMask right border mask.

NcBoxMask bottom border mask.

NcBoxMask left border mask.

NcBoxMask corner mask to control the drawing of boxes corners.

By default, vertexes are drawn whether their connecting edges are drawn or not. The value of the bits control this, and are interpreted as the number of connecting edges necessary to draw a given corner.

At 0 (the default), corners are always drawn. At 3, corners are never drawn (since at most 2 edges can touch a box’s corner),.

The number of bits NcBoxMask::CORNER_MASK is shifted.

Implementors