Cross-Platform GUI Programming with wxWidgets

For code examples, we mostly follow the wxWidgets style guidelines, for example:

  • Words within class names and functions have an initial capital, for example MyFunkyClass.

  • The m_ prefix denotes a member variable, s_ denotes a static variable, g_ denotes a global variable; local variables generally start with a lowercase letter, for example textCtrl.

You can find more about the wxWidgets style guidelines at http://www.wxwidgets.org/standard.htm.

Sometimes we'll also use comments that can be parsed by the documentation tool Doxygen, such as:

/*! A class description */ /// A function description

Classes, functions, identifiers, variables, and standard wxWidgets objects are marked with a teletype font in the text. User interface commands, such as menu and button labels, are marked in italics.

    Категории