Struct libnotcurses_sys::ffi::ncplane_options [−][src]
#[repr(C)]pub struct ncplane_options { pub y: c_int, pub x: c_int, pub rows: c_int, pub cols: c_int, pub userptr: *mut c_void, pub name: *const c_char, pub resizecb: Option<unsafe extern "C" fn(arg1: *mut ncplane) -> c_int>, pub flags: u64, pub margin_b: c_int, pub margin_r: c_int, }
Fields
y: c_int
vertical placement relative to parent plane
x: c_int
horizontal placement relative to parent plane
rows: c_int
rows, must be positive (unless NCPLANE_OPTION_MARGINALIZED)
cols: c_int
columns, must be positive (unless NCPLANE_OPTION_MARGINALIZED)
userptr: *mut c_void
user curry, may be NULL
name: *const c_char
name (used only for debugging), may be NULL
resizecb: Option<unsafe extern "C" fn(arg1: *mut ncplane) -> c_int>
callback when parent is resized
flags: u64
closure over NCPLANE_OPTION_*
margin_b: c_int
margins (require NCPLANE_OPTION_MARGINALIZED)
margin_r: c_int
margins (require NCPLANE_OPTION_MARGINALIZED)
Implementations
New NcPlaneOptions using the horizontal x.
New NcPlaneOptions with horizontal alignment.
New NcPlaneOptions, with flags.
pub fn with_flags_aligned(
y: NcOffset,
align: NcAlign,
rows: NcDim,
cols: NcDim,
resizecb: Option<NcResizeCb>,
flags: u64
) -> Self
[src]
pub fn with_flags_aligned(
y: NcOffset,
align: NcAlign,
rows: NcDim,
cols: NcDim,
resizecb: Option<NcResizeCb>,
flags: u64
) -> Self
[src]New NcPlaneOptions, with flags and horizontal alignment.
Note: Already includes the NCPLANE_OPTION_HORALIGNED flag.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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 ncplane_options
impl !Send for ncplane_options
impl !Sync for ncplane_options
impl Unpin for ncplane_options
impl UnwindSafe for ncplane_options
Blanket Implementations
Mutably borrows from an owned value. Read more