GEOS SDK TechDocs
|
|
2.2 Strategy and Internals
|
3 Geode Parameters File
You might have noticed some of the names of variables, messages, and routines and seen a pattern of naming. Geoworks has developed a few naming conventions for various different items in the system. You don't have to follow these conventions, of course; it may help, however, if you keep to our conventions until you're familiar with most of the system. Some of the items that have special naming conventions are
helloTextColor
is a good example. Variables with just one word in the name are all lower case.
Class
. Typically, the first portion of a class' name will describe the particular application, library, or module it is associated with. The second portion of the name should reflect the class' superclass. Each portion of the class name should be capitalized. Thus,
HelloProcessClass
conforms because it begins with the application's name (Hello), then has the superclass' name (Process), and finally has the suffix Class.
Color
is reflected in the C_ portion of the constant's name.)
GrCreateState()
is a graphics system routine, as is
GrInvalRect()
.
MSG_
should reflect the class in which the message is defined. For example,
MSG_HELLO_CHANGE_TO_BLUE
follows all these conventions.
GI_visMoniker
is a field of
GenClass
(hence the
GI_
), and
visMoniker
is the variable name of the field.
GEOS SDK TechDocs
|
|
2.2 Strategy and Internals
|
3 Geode Parameters File