Back to index

tetex-bin  3.0
Functions
lib_slkrefr.c File Reference
#include <curses.priv.h>
#include <term.h>

Go to the source code of this file.

Functions

static void slk_intern_refresh (SLK *slk)
 slk_noutrefresh (void)
 slk_refresh (void)

Function Documentation

static void slk_intern_refresh ( SLK slk) [static]

Definition at line 47 of file lib_slkrefr.c.

{
    int i;
    int fmt = SP->slk_format;

    for (i = 0; i < slk->labcnt; i++) {
       if (slk->dirty || slk->ent[i].dirty) {
           if (slk->ent[i].visible) {
              if (num_labels > 0 && SLK_STDFMT(fmt)) {
                  if (i < num_labels) {
                     TPUTS_TRACE("plab_norm");
                     putp(tparm(plab_norm, i + 1, slk->ent[i].form_text));
                  }
              } else {
                  wmove(slk->win, SLK_LINES(fmt) - 1, slk->ent[i].ent_x);
                  if (SP && SP->_slk)
                     wattrset(slk->win, SP->_slk->attr);
                  waddnstr(slk->win, slk->ent[i].form_text,
                          MAX_SKEY_LEN(fmt));
                  /* if we simulate SLK's, it's looking much more
                     natural to use the current ATTRIBUTE also
                     for the label window */
                  wattrset(slk->win, stdscr->_attrs);
              }
           }
           slk->ent[i].dirty = FALSE;
       }
    }
    slk->dirty = FALSE;

    if (num_labels > 0) {
       if (slk->hidden) {
           TPUTS_TRACE("label_off");
           putp(label_off);
       } else {
           TPUTS_TRACE("label_on");
           putp(label_on);
       }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 92 of file lib_slkrefr.c.

{
    T((T_CALLED("slk_noutrefresh()")));

    if (SP == NULL || SP->_slk == NULL)
       returnCode(ERR);
    if (SP->_slk->hidden)
       returnCode(OK);
    slk_intern_refresh(SP->_slk);

    returnCode(wnoutrefresh(SP->_slk->win));
}

Here is the call graph for this function:

Definition at line 109 of file lib_slkrefr.c.

{
    T((T_CALLED("slk_refresh()")));

    if (SP == NULL || SP->_slk == NULL)
       returnCode(ERR);
    if (SP->_slk->hidden)
       returnCode(OK);
    slk_intern_refresh(SP->_slk);

    returnCode(wrefresh(SP->_slk->win));
}

Here is the call graph for this function:

Here is the caller graph for this function: