Conventions

team bbl


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.

    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net