wxIcon
generated from ../src/mod_gui/misc/icon.cppAn icon is a small rectangular bitmap usually used for denoting a minimized application. It differs from a wxBitmap in always having a mask associated with it for transparent drawing. On some platforms, icons and bitmaps are implemented identically, since there is no real distinction between a wxBitmap with a mask and an icon; and there is no specific icon format on some platforms (X-based applications usually standardize on XPMs for small bitmaps and icons). However, some platforms (such as Windows) make the distinction, so a separate class is provided. See wxBitmap, wxFrame icon property and wxBitmapType
Constants
Constructor
wxIcon
wxIcon()
wxIcon(Name,
Type,
DesiredWidth = -1,
DesiredHeight = -1)
| Name | Type | Default | Description |
|---|---|---|---|
| Name | String | Filename | |
| Type | Integer | The type of the Icon. Use the bitmap types. | |
| DesiredWidth | Integer | -1 | |
| DesiredHeight | Integer | -1 |
Constructs a new wxIcon object. The first constructor creates an icon without data. Use loadFile to load an icon.
Methods
loadFile
loadFile(Name,
Type) : Boolean
| Name | Type | Default | Description |
|---|---|---|---|
| Name | String | The name of the file. | |
| Type | Integer | The type of the Icon. |
Loads an icon from a file.
© 2002 - 2007 Franky Braem.