(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
26
cursetree/surface.h
Normal file
26
cursetree/surface.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef CURSETREE_SURFACE_H
|
||||
#define CURSETREE_SURFACE_H
|
||||
|
||||
#include "dims.h"
|
||||
|
||||
#ifndef __NCURSES_H
|
||||
typedef struct _win_st WINDOW;
|
||||
#endif /* __NCURSES_H */
|
||||
|
||||
struct ct_surface {
|
||||
struct ct_dims *dims;
|
||||
struct ct_bounds *bounds;
|
||||
WINDOW *win;
|
||||
unsigned char updatereq;
|
||||
};
|
||||
|
||||
struct ct_surface *new_surface(struct ct_dims *const dims,
|
||||
struct ct_bounds *const bounds);
|
||||
void destroy_surface(struct ct_surface *const surface);
|
||||
|
||||
void resize_surface(struct ct_surface *const surface,
|
||||
struct ct_dims *const dims);
|
||||
void rebind_surface(struct ct_surface *const surface,
|
||||
struct ct_bounds *const bounds);
|
||||
|
||||
#endif /* CURSETREE_SURFACE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue