Next: , Up: Part I Getting Started   [Contents][Index]


2.1 Naming Conventions

The names of all Forms Library functions and user-accessible data structures begin with fl_ or FL_, and use an "underscore-between-words" convention, that is when function and variable names are composed of more than one word, an underscore is inserted between each word. For example,

fl_state
fl_set_object_label()
fl_show_form()

All Forms Library macros, constants and types also follow this convention, except that (at least) the first two letters are capitalized. For example,

FL_min()
FL_NORMAL_BUTTON
FL_OBJECT

The term "form" often can be taken to mean a window of your application. But be aware that there are also can be forms that themselves contain further forms, so "form" and "window" aren’t necessarily synonyms.

The only exceptions from the above convention are names of functions related to image manipulations - they start with flimage_. And then there’s a single function called flps_init() that allows customization of the way hardcopies are created from an existing user interface.