Copyright (C) 2000-2012 |
Manpages CdkSection: C Library Functions (3)Updated: 05 Dec 1995 Index Return to Main Contents NAMECdk - Curses Development Kit SYNOPSIScc [ flag ... ] file ... -lcdk [ library ... ] #include <cdk.h> Cdk provides functions to use a large number of pre-defined curses widgets. To use the Cdk widgets the header file cdk.h must be included in the source. The widgets available from Cdk are listed below.
DESCRIPTIONCdk is a library of functions which allow a programmer to quickly create a full screen interactive program with ease. The Cdk widgets support the following features: "* Ncurses library." 5 Instead of using the standard curses library, Cdk can take advantage of the colors that Ncurses provides. To learn how to take advantage of Cdk's color capabilities, read the cdk_display manual page."* Key Bindings." 5 Individual keys can be overridden with a call-back. The call-back is set up using the bindCDKObject function. To learn more about this read the cdk_binding manual page. "* Pre and Post Processing." 5 Certain widgets allow the user to trap a character before and after the character has been applied to the widget. This allows programmers to 'filter' character input. To learn more about this read the cdk_process manual page. "* Self Test Widgets." 5 With the use of the inject function class and the activate function, programmers can have the widgets test themselves. This allows the programmer to perform automated tests on a final program. "* Special Display Formats" 5 There are special character format commands that can be inserted into any string in Cdk and the contents will get mapped to a chtype (see the curses manual page) with character attributes. This allows the programmer to insert format types on each character if they wish. "* The Ability To Build Predefined Screens" 5 Widgets can be associated to any given screen. If there is more than one screen defined, then Cdk has the ability to "flip" from one screen to another with ease. See the cdk_screen manual page for more details.
STANDARD WIDGET BEHAVIORAll of the widgets have a member of the structure called exitType. This member states how the widget exited. There are three values in which to check for, they are as follows:
SEE ALSOcdk(3), cdk_binding(3), cdk_display(3), cdk_screen(3)NOTESThe 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.
IndexThis document was created by man2html, using the manual pages. Time: 10:36:33 GMT, March 29, 2024 |