mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
ncplane_options: make margin fields unsigned
This commit is contained in:
parent
538dff91ba
commit
46ebc1d9c6
2
USAGE.md
2
USAGE.md
@ -811,7 +811,7 @@ typedef struct ncplane_options {
|
|||||||
const char* name; // name (used only for debugging), may be NULL
|
const char* name; // name (used only for debugging), may be NULL
|
||||||
int (*resizecb)(struct ncplane*); // callback when parent is resized
|
int (*resizecb)(struct ncplane*); // callback when parent is resized
|
||||||
uint64_t flags; // closure over NCPLANE_OPTION_*
|
uint64_t flags; // closure over NCPLANE_OPTION_*
|
||||||
int margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED)
|
unsigned margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED)
|
||||||
} ncplane_options;
|
} ncplane_options;
|
||||||
|
|
||||||
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to
|
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to
|
||||||
|
@ -25,7 +25,7 @@ typedef struct ncplane_options {
|
|||||||
const char* name; // name (used only for debugging), may be NULL
|
const char* name; // name (used only for debugging), may be NULL
|
||||||
int (*resizecb)(struct ncplane*); // called on parent resize
|
int (*resizecb)(struct ncplane*); // called on parent resize
|
||||||
uint64_t flags; // closure over NCPLANE_OPTION_*
|
uint64_t flags; // closure over NCPLANE_OPTION_*
|
||||||
int margin_b, margin_r; // bottom and right margins
|
unsigned margin_b, margin_r; // bottom and right margins
|
||||||
} ncplane_options;
|
} ncplane_options;
|
||||||
|
|
||||||
#define NCSTYLE_MASK 0xffffu
|
#define NCSTYLE_MASK 0xffffu
|
||||||
|
@ -1272,7 +1272,7 @@ typedef struct ncplane_options {
|
|||||||
const char* name; // name (used only for debugging), may be NULL
|
const char* name; // name (used only for debugging), may be NULL
|
||||||
int (*resizecb)(struct ncplane*); // callback when parent is resized
|
int (*resizecb)(struct ncplane*); // callback when parent is resized
|
||||||
uint64_t flags; // closure over NCPLANE_OPTION_*
|
uint64_t flags; // closure over NCPLANE_OPTION_*
|
||||||
int margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED)
|
unsigned margin_b, margin_r; // margins (require NCPLANE_OPTION_MARGINALIZED)
|
||||||
} ncplane_options;
|
} ncplane_options;
|
||||||
|
|
||||||
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to
|
// Create a new ncplane bound to plane 'n', at the offset 'y'x'x' (relative to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user