Changeset b2b0773 for popwin.c


Ignore:
Timestamp:
Jun 9, 2003, 10:54:18 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6bf73ce
Parents:
d559df9
Message:
Changes to help build on OSX
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popwin.c

    r1aee7d9 rb2b0773  
    33static const char fileIdent[] = "$Id$";
    44
    5 int owl_popwin_init(owl_popwin *pw) {
     5int owl_popwin_init(owl_popwin *pw)
     6{
    67  pw->active=0;
    78  pw->needsfirstrefresh=0;
     
    1112}
    1213
    13 int owl_popwin_up(owl_popwin *pw) {
     14int owl_popwin_up(owl_popwin *pw)
     15{
    1416  int glines, gcols, startcol, startline;
    1517
     
    5052}
    5153
    52 int owl_popwin_display_text(owl_popwin *pw, char *text) {
     54int owl_popwin_display_text(owl_popwin *pw, char *text)
     55{
    5356  waddstr(pw->popwin, text);
    5457  wnoutrefresh(pw->popwin);
     
    5962}             
    6063
    61 int owl_popwin_close(owl_popwin *pw) {
     64int owl_popwin_close(owl_popwin *pw)
     65{
    6266  delwin(pw->popwin);
    6367  delwin(pw->borderwin);
     
    6973}
    7074
    71 int owl_popwin_is_active(owl_popwin *pw) {
     75int owl_popwin_is_active(owl_popwin *pw)
     76{
    7277  if (pw->active==1) return(1);
    7378  return(0);
    7479}
    7580
    76 int owl_popwin_refresh(owl_popwin *pw) {
    77   /* this will refresh the border as well as the text area */
     81/* this will refresh the border as well as the text area */
     82int owl_popwin_refresh(owl_popwin *pw)
     83{
    7884  touchwin(pw->borderwin);
    7985  touchwin(pw->popwin);
     
    8591}
    8692
    87 void owl_popwin_set_handler(owl_popwin *pw, void (*func)(int ch)) {
     93void owl_popwin_set_handler(owl_popwin *pw, void (*func)(int ch))
     94{
    8895  pw->handler=func;
    8996}
    9097
    91 void owl_popwin_unset_handler(owl_popwin *pw) {
     98void owl_popwin_unset_handler(owl_popwin *pw)
     99{
    92100  pw->handler=NULL;
    93101}
    94102
    95 WINDOW *owl_popwin_get_curswin(owl_popwin *pw) {
     103WINDOW *owl_popwin_get_curswin(owl_popwin *pw)
     104{
    96105  return(pw->popwin);
    97106}
    98107
    99 int owl_popwin_get_lines(owl_popwin *pw) {
     108int owl_popwin_get_lines(owl_popwin *pw)
     109{
    100110  return(pw->lines-2);
    101111}
    102112
    103 int owl_popwin_get_cols(owl_popwin *pw) {
     113int owl_popwin_get_cols(owl_popwin *pw)
     114{
    104115  return(pw->cols-2);
    105116}
    106117
    107 int owl_popwin_needs_first_refresh(owl_popwin *pw) {
     118int owl_popwin_needs_first_refresh(owl_popwin *pw)
     119{
    108120  if (pw->needsfirstrefresh) return(1);
    109121  return(0);
    110122}
    111123
    112 void owl_popwin_no_needs_first_refresh(owl_popwin *pw) {
     124void owl_popwin_no_needs_first_refresh(owl_popwin *pw)
     125{
    113126  pw->needsfirstrefresh=0;
    114127}
Note: See TracChangeset for help on using the changeset viewer.