Public Member Functions | |
| this () | |
| Constructs the Application object. | |
| this (HINSTANCE h) | |
| Constructs an Application object to refer to another application instance by handle. | |
| int | run () |
| Runs the application. | |
| HICON | icon (uint id) |
| Loads a specified icon resource. | |
| HICON | icon (cstring name) |
| Loads a specified icon resource. | |
| HCURSOR | cursor (uint id) |
| Loads a specified mouse cursor resource. | |
| HCURSOR | cursor (cstring name) |
| Loads a specified mouse cursor resource. | |
| char[] | stringTable (uint id) |
| Loads a string from a string table resource. | |
Properties | |
| final override uint | toHash () |
| Returns the hash value of this Application. | |
| HINSTANCE | handle () |
| The Windows handle to the application instance represented by this Application object. | |
| WindowBase | mainWindow () |
| The application's main window. | |
| WindowBase | mainWindow (WindowBase w) |
| The application's main window. | |
Operators | |
| final override intBool | opEquals (Object o) |
| final bool | opEquals (Application a) |
| smjg.libs.sdwf.application.Application.this | ( | ) |
Constructs the Application object.
The correct instance handle for the process is automagically set.
| smjg.libs.sdwf.application.Application.this | ( | HINSTANCE | h | ) |
Constructs an Application object to refer to another application instance by handle.
| h | handle of the application instance. |
| final override uint smjg.libs.sdwf.application.Application.toHash | ( | ) |
Returns the hash value of this Application.
| HINSTANCE smjg.libs.sdwf.application.Application.handle | ( | ) |
The Windows handle to the application instance represented by this Application object.
You would use this property if you need to call a Windows API function directly on the application instance.
| WindowBase smjg.libs.sdwf.application.Application.mainWindow | ( | ) |
| WindowBase smjg.libs.sdwf.application.Application.mainWindow | ( | WindowBase | w | ) |
The application's main window.
This property must be set before running the application.
mainWindow more than once.| final override intBool smjg.libs.sdwf.application.Application.opEquals | ( | Object | o | ) |
| final bool smjg.libs.sdwf.application.Application.opEquals | ( | Application | a | ) |
Determines whether this Application is equal to another Application. Two Application objects are equal iff they have the same handle, i.e. they interface the same application instance.
| int smjg.libs.sdwf.application.Application.run | ( | ) |
Runs the application.
Displays the application's main window, and runs the message loop. Blocks until the application is finished.
| HICON smjg.libs.sdwf.application.Application.icon | ( | uint | id | ) |
Loads a specified icon resource.
| id | numeric ID of the icon resource. |
| HICON smjg.libs.sdwf.application.Application.icon | ( | cstring | name | ) |
Loads a specified icon resource.
| name | name of the icon resource. |
| HCURSOR smjg.libs.sdwf.application.Application.cursor | ( | uint | id | ) |
Loads a specified mouse cursor resource.
| id | numeric ID of the cursor resource. |
| HCURSOR smjg.libs.sdwf.application.Application.cursor | ( | cstring | name | ) |
Loads a specified mouse cursor resource.
| name | name of the cursor resource. |
| char [] smjg.libs.sdwf.application.Application.stringTable | ( | uint | id | ) |
Loads a string from a string table resource.
1.5.4