(UNDER CONSTRUCTION) cursetree is now a non-binary tree yippiegit add .
also abstracted ncurses WINDOW into the ct_surface structure. and added ct_bounds to complement ct_dims.
This commit is contained in:
parent
b04f0b4aa3
commit
759920a9cc
9 changed files with 476 additions and 193 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
#include "dims.h"
|
||||
|
||||
# ifndef __NCURSES_H
|
||||
#ifndef __NCURSES_H
|
||||
typedef struct _win_st WINDOW;
|
||||
# endif /* __NCURSES_H */
|
||||
#endif /* __NCURSES_H */
|
||||
|
||||
enum crs_termmode {
|
||||
/* tty cbreak mode */
|
||||
|
|
@ -20,22 +20,25 @@ enum crs_termmode {
|
|||
|
||||
int termmode(const enum crs_termmode mode);
|
||||
void termsize(int *const width, int *const height);
|
||||
struct ct_dims *termdims(void);
|
||||
|
||||
void init_ncurses(void);
|
||||
void end_ncurses(void);
|
||||
|
||||
WINDOW *new_window(const int x, const int y, const int width, const int height);
|
||||
WINDOW *new_window_fs(void);
|
||||
void destroy_window(WINDOW *);
|
||||
|
||||
#define winpos(win, x, y) (x = winposx(win), y = winposy(win))
|
||||
#define winsize(win, width, height) (width = winwidth(win), height=winheight(win))
|
||||
#define winsize(win, width, height) \
|
||||
(width = winwidth(win), height = winheight(win))
|
||||
int winposx(WINDOW *const);
|
||||
int winposy(WINDOW *const);
|
||||
int winwidth(WINDOW *const);
|
||||
int winheight(WINDOW *const);
|
||||
struct ct_dims *windims(WINDOW *win);
|
||||
|
||||
int resizemv_window(const int x, const int y, const int width, const int height,
|
||||
WINDOW *const win);
|
||||
int resizemv_window(WINDOW *const win, const int x, const int y,
|
||||
const int width, const int height);
|
||||
|
||||
#endif /* CURSETREE_NCRSWRAP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue