Public Member Functions | |
HGDIOBJ | handle () |
The Windows handle of this GDI object. | |
~this () | |
Operators | |
final override intBool | opEquals (Object o) |
bool | opEquals (GDIObject a) |
Protected Member Functions | |
this (HGDIOBJ h, bool autoDelete) | |
Constructs a GDIObject to wrap the given GDI object handle. | |
this (HGDIOBJ protected(*creator)(), string objectType) | |
Protected Attributes | |
bool | _autoDelete |
Whether the Windows object should be deleted when the GDIObject instance is destroyed. |
Graphics Device Interface (GDI) objects are various entities used by the functions for displaying graphics and text.
GDIObjects in SDWF are well suited to RAII using the scope attribute, such that the Windows resources associated with them can be promptly and reliably released after use. Unlike the DC classes, RAII isn't enforced, so an application can keep around GDI objects for later use if it so wishes.
smjg.libs.sdwf.gdiobject.GDIObject.this | ( | HGDIOBJ | h, | |
bool | autoDelete | |||
) | [protected] |
Constructs a GDIObject to wrap the given GDI object handle.
h | Windows handle of the GDI object to be wrapped. | |
autoDelete | whether the Windows handle should be automatically deleted when the SDWF object is garbage collected. This will generally be true for application-created objects and false for stock objects. |
smjg.libs.sdwf.gdiobject.GDIObject.this | ( | HGDIOBJ protected(*)() | creator, | |
string | objectType | |||
) | [protected] |
smjg.libs.sdwf.gdiobject.GDIObject.~this | ( | ) |
HGDIOBJ smjg.libs.sdwf.gdiobject.GDIObject.handle | ( | ) |
The Windows handle of this GDI object.
final override intBool smjg.libs.sdwf.gdiobject.GDIObject.opEquals | ( | Object | o | ) |
bool smjg.libs.sdwf.gdiobject.GDIObject.opEquals | ( | GDIObject | a | ) |
bool smjg.libs.sdwf.gdiobject.GDIObject._autoDelete [protected] |
Whether the Windows object should be deleted when the GDIObject instance is destroyed.