*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> cdk_screen (3)              
Title
Content
Arch
Section
 

cdk_screen(3)

Contents


NAME    [Toc]    [Back]

       initCDKScreen,  initCDKColor,  registerCDKObject, unregisterCDKObject,
 raiseCDKObject,  lowerCDKObject,  refreshCDKScreen,
  eraseCDKScreen,  destroyCDKScreen,  endCDK - Cdk
       Screen and Widget Manipulation Functions

SYNOPSIS    [Toc]    [Back]

       cc [ flag ... ] file ...  -lcdk [ library ... ]

       #include <cdk.h>

       CDKSCREEN *initCDKScreen (WINDOW *cursesWindow );

       void initCDKColor ();

       void registerCDKObject (CDKSCREEN  *screen  ,  EObjectType
       widgetType , void *object);

       void  unregisterCDKObject(EObjectType  widgetType  ,  void
       *object);

       void   raiseCDKObject(EObjectType   widgetType   ,    void
       *object);

       void    lowerCDKObject(EObjectType   widgetType   ,   void
       *object);

       void refreshCDKScreen(CDKSCREEN *screen);

       void eraseCDKScreen(CDKSCREEN *screen);

       void destroyCDKScreen(CDKSCREEN *screen);

       void endCDK();

DESCRIPTION    [Toc]    [Back]

       One of the features of Cdk is that it will manage  all  of
       the  widgets for you.  These functions perform some of the
       management of the widgets in a screen. The following  outline
 each function and it's purpose.

AVAILABLE FUNCTIONS    [Toc]    [Back]

       CDKSCREEN *initCDKScreen (WINDOW *cursesWindow);
          This  function  takes  a  WINDOW  *  (cursesWindow) and
          returns a pointer to a CDKSCREEN *. Since  all  of  the
          widgets  take  a CDKSCREEN pointer as a first argument,
          this is also one of the first  calls  made.  This  also
          starts  curses,  so no curses initialization calls have
          to be made when using Cdk.

       void initCDKColor ();
          This call starts the Cdk color capabilities. It defines
          64  color  pairs  each of which is accessible using the
          COLOR_PAIR macro. If you do  not  have  color  support,
          this function call makes no difference.

       void  registerCDKObject  (CDKSCREEN  *screen,  EObjectType
       widgetType, void *object);
          This function is called automatically when a widget  is
          created.   If  for  some  reason  an  object  does  get
          unregistered, by calling unregisterCDKObject, the  widget
  can  be registered again by calling this function.
          The widgetType parameter states what  Cdk  widget  type
          this  object is. The object parameter is a void pointer
          to the object.

       void  unregisterCDKObject   (EObjectType   cdktype,   void
       *object);
          This  function removes the widget from the screen. This
          does NOT destroy the object, it removes the widget from
          any further refreshes by the function refreshCDKScreen.
          The widgetType parameter states what  Cdk  widget  type
          this  object is. The object parameter is a void pointer
          to the object.

       void raiseCDKObject (EObjectType cdktype, void *object);
          This function raises the  widget  to  the  top  of  the
          screen.  If  there  are  any  widgets which overlap the
          given object when a refresh is done, calling this function
  has  the effect of raiding the object so no other
          widgets obstruct it. The  widgetType  parameter  states
          what Cdk widget type this object is.  The object parameter
 is a void pointer to the object.

       void lowerCDKObject (EObjectType cdktype, void *object);
              This  function  has  the  opposite  effect  of  the
              raiseCDKObject function call.

       void refreshCDKScreen (CDKSCREEN *screen);
          This function redraws all of the widgets which are currently
 associated to the given screen.

       void eraseCDKScreen (CDKSCREEN *screen);
          This function erases all of the widgets which are  currently
  associated  to  the given screen. This does NOT
          destroy the widgets.

       void destroyCDKScreen (CDKSCREEN *screen);
          This function destroys any memory allocated by the  Cdk
          screen pointer.

       void endCDK();
          This  function cleans up any memory created by starting
          Cdk and shuts down curses.

SEE ALSO    [Toc]    [Back]

      
      
       cdk(3), cdk_binding(3), cdk_display(3)

NOTES    [Toc]    [Back]

       The header file <cdk.h> automatically includes the  header
       files   <curses.h>,   <stdlib.h>,  <string.h>,  <ctype.h>,
       <unistd.h>,  <dirent.h>,  <time.h>,  <errno.h>,   <pwd.h>,
       <grp.h>,  <sys/stat.h>, and <sys/types.h>.  The <curses.h>
       header file includes <stdio.h> and <unctrl.h>.

       If  you  have  Ncurses  installed  on  your  machine   add
       -DNCURSES  to  the  compile  line  to  include the Ncurses
       header files instead.



                           05 Dec 1995              cdk_screen(3)
[ Back ]
 Similar pages
Name OS Title
curs_initscr IRIX curses screen initialization and manipulation routines
curs_initscr Tru64 Curses routines for screen initialization and manipulation
set_term OpenBSD curses screen initialization and manipulation routines
delscreen FreeBSD curses screen initialization and manipulation routines
delscreen Tru64 Curses routines for screen initialization and manipulation
curs_initscr OpenBSD curses screen initialization and manipulation routines
curs_initscr FreeBSD curses screen initialization and manipulation routines
endwin Tru64 Curses routines for screen initialization and manipulation
isendwin Tru64 Curses routines for screen initialization and manipulation
initscr Tru64 Curses routines for screen initialization and manipulation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service