NcBoxMask_u32

Type Alias NcBoxMask_u32 

Source
pub type NcBoxMask_u32 = u32;
Expand description

Controls the drawing of borders, gradients and corners.

It’s recommended to use NcBoxMask instead.

NcBoxMax_u32 is defined in the least significant byte, where bits [3, 0] are are a border mask, and bits [7, 4] are a gradient mask.

The drawing of the corners is defined in the second byte, see NCBOXCORNER_MASK.

§Associated c_api constants

§Diagram

MASK_TOP    0x0001  0b00000001
MASK_RIGHT  0x0002  0b00000010
MASK_BOTTOM 0x0004  0b00000100
MASK_LEFT   0x0008  0b00001000

GRAD_TOP    0x0010  0b00010000
GRAD_RIGHT  0x0020  0b00100000
GRAD_BOTTOM 0x0040  0b01000000
GRAD_LEFT   0x0080  0b10000000

NCBOXCORNER_MASK  0x0300  0b00000111_00000000

NCBOXCORNER_SHIFT 8

Trait Implementations§

Source§

impl<'a, 'b> BitAnd<&'b NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: NcBoxMask) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b NcBoxMask> for NcBoxMask_u32

Source§

fn bitand_assign(&mut self, rhs: &'b NcBoxMask)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

fn bitand_assign(&mut self, rhs: &'b mut NcBoxMask)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<NcBoxMask> for NcBoxMask_u32

Source§

fn bitand_assign(&mut self, rhs: NcBoxMask)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitOr<&'b NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: NcBoxMask) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b NcBoxMask> for NcBoxMask_u32

Source§

fn bitor_assign(&mut self, rhs: &'b NcBoxMask)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

fn bitor_assign(&mut self, rhs: &'b mut NcBoxMask)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<NcBoxMask> for NcBoxMask_u32

Source§

fn bitor_assign(&mut self, rhs: NcBoxMask)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitXor<&'b NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: NcBoxMask) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b NcBoxMask> for NcBoxMask_u32

Source§

fn bitxor_assign(&mut self, rhs: &'b NcBoxMask)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

fn bitxor_assign(&mut self, rhs: &'b mut NcBoxMask)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<NcBoxMask> for NcBoxMask_u32

Source§

fn bitxor_assign(&mut self, rhs: NcBoxMask)

Performs the ^= operation. Read more
Source§

impl<'a> From<&'a NcBoxMask> for &'a NcBoxMask_u32

Source§

fn from(s: &'a NcBoxMask) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NcBoxMask> for &'a mut NcBoxMask_u32

Source§

fn from(s: &'a mut NcBoxMask) -> Self

Converts to this type from the input type.
Source§

impl From<NcBoxMask> for NcBoxMask_u32

Source§

fn from(s: NcBoxMask) -> Self

Converts to this type from the input type.
Source§

impl<'a, 'b> Shl<&'b NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: NcBoxMask) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b NcBoxMask> for NcBoxMask_u32

Source§

fn shl_assign(&mut self, rhs: &'b NcBoxMask)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

fn shl_assign(&mut self, rhs: &'b mut NcBoxMask)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<NcBoxMask> for NcBoxMask_u32

Source§

fn shl_assign(&mut self, rhs: NcBoxMask)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> Shr<&'b NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<NcBoxMask> for &'a NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<NcBoxMask> for NcBoxMask_u32

Source§

type Output = NcBoxMask

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: NcBoxMask) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b NcBoxMask> for NcBoxMask_u32

Source§

fn shr_assign(&mut self, rhs: &'b NcBoxMask)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b mut NcBoxMask> for NcBoxMask_u32

Source§

fn shr_assign(&mut self, rhs: &'b mut NcBoxMask)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<NcBoxMask> for NcBoxMask_u32

Source§

fn shr_assign(&mut self, rhs: NcBoxMask)

Performs the >>= operation. Read more