2 * Copyright (C) 2008 Diego Hernan Borghetti.
17 E_View
*e_view_new(E_Screen
*sc
)
21 v
= (E_View
*)malloc(sizeof(E_View
));
25 /* by default, all the screen. */
35 v
->stfg
= e_config_get_int("View", "foreground");
36 v
->stbg
= e_config_get_int("View", "background");
51 void e_view_free(E_View
*v
)
56 void e_view_move(E_View
*v
, int row
, int col
)
60 v
->rrow
= row
+ v
->nrow
;
67 void e_view_resize(E_View
*v
, int nrow
, int ncol
)
71 v
->rrow
= v
->row
+ nrow
;
72 v
->rcol
= v
->col
+ ncol
;
78 void e_view_redraw(E_View
*v
)
80 if (!(v
->flag
& VIEW_REDRAW
))
81 v
->flag
|= VIEW_REDRAW
;
84 void e_view_show(E_View
*v
)
86 if (!(v
->flag
& VIEW_SHOW
))
90 void e_view_unshow(E_View
*v
)
92 if (v
->flag
& VIEW_SHOW
)
93 v
->flag
&= ~VIEW_SHOW
;