GlobalInformation Class (singleton!) Used to save global informations like resources directory or painting buffers... More...
#include <SDK_Manila_Sense.h>
Static Public Member Functions | |
static bool | alreadyInitialized () |
Used to be sure that GlobalInformations are loaded. | |
static GlobalInformations * | getInstance () |
Used to get a pointer on GlobalInformations... | |
static void | setName (wstring newName) |
used to set our app name. | |
Public Attributes | |
DIRECTDRAW_GDI * | backBuffer |
Back buffer... Same size than primaryBuffer. | |
DIRECTDRAW_GDI * | background |
Used to print background... | |
wstring * | bg_common_divider_section |
wstring * | bg_common_dotline |
wstring * | bg_common_titlebar |
wstring * | bg_dark |
wstring * | bg_msg_box |
wstring * | btn_checkbox_thirdState |
wstring * | btn_common_checkbox |
wstring * | btn_common_combo_down |
wstring * | btn_common_input |
wstring * | btn_common_listitem |
wstring * | btn_common_listitem_bottom |
wstring * | btn_common_listitem_middle |
wstring * | btn_common_msgbox_large |
wstring * | btn_common_msgbox_small |
wstring * | btn_common_normal |
wstring * | btn_common_slider |
wstring * | btn_common_switch |
wstring * | btn_slider |
wstring * | btn_switch_thirdState |
bool | cantBeClosed |
set to true if you want that your app is minimized in case of being closed | |
CRITICAL_SECTION | criticAddBufPaint |
CRITICAL_SECTION | criticPaint |
Critical sections, not to use! | |
bool | hasMenuBar |
Set to true if you add a menubar to your window (window->setMenu(HMENU m)). | |
HFONT | hFontTitle |
Font used to print title. | |
bool | isActiv |
You should not change this value (internally used to know if running in background or not) Used to preserve battery life. | |
bool | isLandscape |
Used to know if mobile is in landscape(true) or portrait (false). | |
DWORD | lastTick1 |
can be used to measure time (using getTickCount()) | |
DWORD | lastTick2 |
can be used to measure time (using getTickCount()) | |
LPDIRECTDRAW * | ldDDraw |
Not useful now. | |
DWORD | lenght1 |
can be used to measure time (using getTickCount()) | |
DWORD | lenght2 |
can be used to measure time (using getTickCount()) | |
HINSTANCE | m_hInstance |
Global instance of your application (usually not needed). | |
HWND | m_hWnd |
Global handle of your window. | |
bool | mustRedraw |
You should not change this value (internally used to now if something need to be drawn). | |
bool | mustRender |
You should not change this value (internally used to know if app has focus) Used to preserve battery life. | |
double | percentOfVGA |
Used to know the size of our screen. | |
wstring * | pivot_leftarrow |
wstring * | pivot_rightarrow |
DIRECTDRAW_GDI * | primaryBuffer |
Primary Surface. Should call window->beginPaint() before using primaryBuffer. | |
RECT | rcUpdateRegion |
Update region (when drawing occur, only region into this area are redrawed). | |
RECT | rcVisibleDesktopBOTTOM |
Should not beeing used. | |
RECT | rcVisibleDesktopTOP |
Should not beeing used. | |
RECT | rs |
screen size | |
wstring | userDirectory |
User directory, like "\program files\YourApp\". | |
HANDLE | waitForMSG |
Used to stop main app when a message box is displaying. | |
DirectDrawWarp * | window |
Various global values : The windows. |
GlobalInformation Class (singleton!) Used to save global informations like resources directory or painting buffers...
Definition at line 117 of file SDK_Manila_Sense.h.
static bool GlobalInformations::alreadyInitialized | ( | ) | [inline, static] |
Used to be sure that GlobalInformations are loaded.
Definition at line 141 of file SDK_Manila_Sense.h.
GlobalInformations * GlobalInformations::getInstance | ( | ) | [static] |
Used to get a pointer on GlobalInformations...
Definition at line 5 of file GlobalInformations.cpp.
void GlobalInformations::setName | ( | wstring | newName | ) | [static] |
used to set our app name.
automatically set when creating an object of type EventHandler (Your app should implement this class)
Definition at line 11 of file GlobalInformations.cpp.
Back buffer... Same size than primaryBuffer.
Definition at line 181 of file SDK_Manila_Sense.h.
Used to print background...
You can do what you wan with this, but be sure to set window->hasBackground=true if your background is not uniform (else scrolling artifacts)
Definition at line 185 of file SDK_Manila_Sense.h.
Definition at line 144 of file SDK_Manila_Sense.h.
Definition at line 161 of file SDK_Manila_Sense.h.
Definition at line 141 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::bg_dark |
Definition at line 163 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::bg_msg_box |
Definition at line 162 of file SDK_Manila_Sense.h.
Definition at line 149 of file SDK_Manila_Sense.h.
Definition at line 151 of file SDK_Manila_Sense.h.
Definition at line 158 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::btn_common_input |
Definition at line 154 of file SDK_Manila_Sense.h.
Definition at line 155 of file SDK_Manila_Sense.h.
Definition at line 159 of file SDK_Manila_Sense.h.
Definition at line 160 of file SDK_Manila_Sense.h.
Definition at line 145 of file SDK_Manila_Sense.h.
Definition at line 146 of file SDK_Manila_Sense.h.
Definition at line 147 of file SDK_Manila_Sense.h.
Definition at line 152 of file SDK_Manila_Sense.h.
Definition at line 150 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::btn_slider |
Definition at line 153 of file SDK_Manila_Sense.h.
Definition at line 148 of file SDK_Manila_Sense.h.
set to true if you want that your app is minimized in case of being closed
Definition at line 171 of file SDK_Manila_Sense.h.
CRITICAL_SECTION GlobalInformations::criticAddBufPaint |
Definition at line 202 of file SDK_Manila_Sense.h.
CRITICAL_SECTION GlobalInformations::criticPaint |
Critical sections, not to use!
Definition at line 201 of file SDK_Manila_Sense.h.
Set to true if you add a menubar to your window (window->setMenu(HMENU m)).
Definition at line 206 of file SDK_Manila_Sense.h.
Font used to print title.
Definition at line 209 of file SDK_Manila_Sense.h.
You should not change this value (internally used to know if running in background or not) Used to preserve battery life.
Definition at line 188 of file SDK_Manila_Sense.h.
Used to know if mobile is in landscape(true) or portrait (false).
Definition at line 199 of file SDK_Manila_Sense.h.
can be used to measure time (using getTickCount())
Definition at line 217 of file SDK_Manila_Sense.h.
can be used to measure time (using getTickCount())
Definition at line 218 of file SDK_Manila_Sense.h.
LPDIRECTDRAW* GlobalInformations::ldDDraw |
Not useful now.
Definition at line 177 of file SDK_Manila_Sense.h.
can be used to measure time (using getTickCount())
Definition at line 219 of file SDK_Manila_Sense.h.
can be used to measure time (using getTickCount())
Definition at line 220 of file SDK_Manila_Sense.h.
HINSTANCE GlobalInformations::m_hInstance |
Global instance of your application (usually not needed).
Definition at line 173 of file SDK_Manila_Sense.h.
Global handle of your window.
Definition at line 175 of file SDK_Manila_Sense.h.
You should not change this value (internally used to now if something need to be drawn).
Definition at line 193 of file SDK_Manila_Sense.h.
You should not change this value (internally used to know if app has focus) Used to preserve battery life.
Definition at line 191 of file SDK_Manila_Sense.h.
Used to know the size of our screen.
Definition at line 197 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::pivot_leftarrow |
Definition at line 156 of file SDK_Manila_Sense.h.
wstring* GlobalInformations::pivot_rightarrow |
Definition at line 157 of file SDK_Manila_Sense.h.
Primary Surface. Should call window->beginPaint() before using primaryBuffer.
Definition at line 179 of file SDK_Manila_Sense.h.
Update region (when drawing occur, only region into this area are redrawed).
Definition at line 213 of file SDK_Manila_Sense.h.
Should not beeing used.
Definition at line 215 of file SDK_Manila_Sense.h.
Should not beeing used.
Definition at line 214 of file SDK_Manila_Sense.h.
screen size
Definition at line 212 of file SDK_Manila_Sense.h.
User directory, like "\program files\YourApp\".
Definition at line 204 of file SDK_Manila_Sense.h.
Used to stop main app when a message box is displaying.
Definition at line 195 of file SDK_Manila_Sense.h.
Various global values : The windows.
Use this to manually repaint your window
Definition at line 169 of file SDK_Manila_Sense.h.