minwin
app
button
canvas
combo
component
dialog
event
font
geometry
group
icon
image
label
layout
listbox
menu
multidg
paint
peer
peerimpl
scroll
text
window
|
minwin.app
An Application encapsulates the global state provided by
the OS when starting the application and it manages the event queue.
- void sysAssert(bool passed, char[] msg, int id = 0);
- Assert a condition is true and if not throw an exception.
If passed is false then throw a MinWinException with the given message and possible error code.
If the error code is 0 then the system will be queried for the error code if supported.
For example on Windows GetLastError will be called to get the error code.
- const int NO_ID;
- Constant indicating the system error does not have an error code.
- class MinWinException: object.Exception;
- Exception raised when a system call fails.
- this(char[] msg);
- Construct an exception with the given message.
- this(char[] msg, int id);
- Construct an exception with the given message and system error code.
- Application gApp;
- Global data and routines for the entire application
- struct Application;
- Representation of application-level data and functions.
An Application encapsulates the global state provided by
the OS when starting the application and it manages the event queue.
- char[] rsrc(char[] id, char[] group = "strings");
- Return the string resource with given id and group, if supported.
- char[][] cmdLineArgs;
- Return the strings passed to the application at startup.
- MultiDelegate!() idleDelegate;
- A multi-delegate that gets called during idle time in the event queue.
- uint idleTime;
- Read/write property to specify the idle time between calls to the idleDelegate.
- int enterEventLoop();
- Begin processing events from the event queue and stop when an exit message is processed. Returns 0 if an error occurred.
- void exitEventLoop();
- Post a request to the event queue to exit the event loop.
- HINSTANCE hInstance;
- Windows global hInstance passed to WinMain.
- HINSTANCE hPrevInstance;
- Windows global hPrevInstance passed to WinMain.
- LPSTR lpCmdLine;
- Windows global lpCmdLine passed to WinMain.
- int nCmdShow;
- Windows global nCmdShow passed to WinMain.
- Event event;
- Windows current event being processed by the main loop.
|