|
|
(2 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
|
|
GUI theming is made at two levels in glob2: widget theming and background theming |
|
This developers article has been moved to http://globulation2.devjavu.com/ |
|
|
|
|
|
|
|
==Widget theming== |
|
Please go there to find in. Thank you. |
|
|
|
|
|
|
|
Widget drawing is done by the Style helper object, declared in libgag/include/GUIStyle.h. It has a default implementation in libgag/src/GUIStyle.cpp. Glob2 reimplements it partially in src/Glob2Style.h/.cpp to have things like bitmapped buttons, etc... |
⚫ |
|
|
|
|
|
|
|
==Background theming== |
|
|
|
|
|
Each GUI screen inherits from the Glob2Screen class, defined in src/Glob2Screen.h and implemented in src/Glob2Screen.cpp. This class reimplement the Screen::paint virtual method so that a custom paint method is implemented. |
|
|
|
|
⚫ |
|
|
|
[[Category:Developer Resources]] |
Latest revision as of 01:24, 2 October 2009
GUI theming is made at two levels in glob2: widget theming and background theming
Widget theming
Widget drawing is done by the Style helper object, declared in libgag/include/GUIStyle.h. It has a default implementation in libgag/src/GUIStyle.cpp. Glob2 reimplements it partially in src/Glob2Style.h/.cpp to have things like bitmapped buttons, etc...
Background theming
Each GUI screen inherits from the Glob2Screen class, defined in src/Glob2Screen.h and implemented in src/Glob2Screen.cpp. This class reimplement the Screen::paint virtual method so that a custom paint method is implemented.