Groups | |
| ICONFLAG | |
Macros | |
| #define | LIBRARY_ICON_COLLECTION |
Functions | |
| Bool | RegisterIcon (Int32 iconId, BaseBitmap *bmp, Int32 x=0, Int32 y=0, Int32 w=-1, Int32 h=-1, ICONFLAG flags=ICONFLAG::NONE) |
| Bool | RegisterIcon (Int32 iconId, Filename fn, Int32 x=0, Int32 y=0, Int32 w=-1, Int32 h=-1, ICONFLAG flags=ICONFLAG::NONE) |
| Bool | GetIcon (Int32 iconId, IconData *data) |
| Bool | ColorizeIcon (Int32 iconId, const GeData &color) |
| BaseBitmap * | GetColorizedIcon (Int32 iconId, const GeData &color) |
| BaseBitmap * | GetColorizedIconFromCache (Int32 iconId, const GeData &color) |
| Bool | UnregisterIcon (Int32 iconId) |
| #define LIBRARY_ICON_COLLECTION |
Icon collection library ID.
| Bool cinema::RegisterIcon | ( | Int32 | iconId, |
| BaseBitmap * | bmp, | ||
| Int32 | x = 0, |
||
| Int32 | y = 0, |
||
| Int32 | w = -1, |
||
| Int32 | h = -1, |
||
| ICONFLAG | flags = ICONFLAG::NONE |
||
| ) |
Registers an icon from a bitmap.
Optionally a sub-icon can be specified within a larger image by giving a rectangle from (x,y) to (x+w, y+h).
If no rectangle is specified the whole bitmap is used.
| [in] | iconId | A unique plugin ID. Must be obtained from developers.maxon.net. |
| [in] | bmp | The bitmap to use for the icon. The caller owns the pointed bitmap. |
| [in] | x | Optional X coordinate of the top left corner of the sub-icon rectangle. |
| [in] | y | Optional Y coordinate of the top left corner of the sub-icon rectangle. |
| [in] | w | Optional width of the sub-icon rectangle. |
| [in] | h | Optional height of the sub-icon rectangle. |
| [in] | flags | The flags: ICONFLAG |
| Bool cinema::RegisterIcon | ( | Int32 | iconId, |
| Filename | fn, | ||
| Int32 | x = 0, |
||
| Int32 | y = 0, |
||
| Int32 | w = -1, |
||
| Int32 | h = -1, |
||
| ICONFLAG | flags = ICONFLAG::NONE |
||
| ) |
Registers an icon from an image file.
Optionally a sub-icon can be specified within a larger image by giving a rectangle from (x,y) to (x+w, y+h).
If no rectangle is specified the whole bitmap is used.
| [in] | iconId | A unique plugin ID. Must be obtained from developers.maxon.net. |
| [in] | fn | The filename of the image file to use for the icon. |
| [in] | x | Optional X coordinate of the top left corner of the sub-icon rectangle. |
| [in] | y | Optional Y coordinate of the top left corner of the sub-icon rectangle. |
| [in] | w | Optional width of the sub-icon rectangle. |
| [in] | h | Optional height of the sub-icon rectangle. |
| [in] | flags | The flags: ICONFLAG. Note that ICONFLAG::COPY is not relevant in this context. |
Retrieves an icon registered with RegisterIcon().
| [in] | iconId | The ID of the icon. |
| [in,out] | data | Filled with information about the found icon. The caller owns the pointed icon data. |
Colorizes an icon registered with RegisterIcon() in the given color. If color is empty or not a valid, the icon will be restored (i.e. "de-colorized") to its original state.
| [in] | iconId | The ID of the icon. |
| [in] | color | The color. Can be either a valid color ID from c4d_colors.h, e.g. COLOR_BG or a Vector color in range (0.0,1.0) or an empty or invalid data, which will de-colorize the icon. |
| BaseBitmap* cinema::GetColorizedIcon | ( | Int32 | iconId, |
| const GeData & | color | ||
| ) |
Returns a colorized copy of the defined icon. If color is empty or not a valid, the returned copied will be the original non-colorized version of the icon.
| [in] | iconId | The ID of the icon. |
| [in] | color | The color. Can be either a valid color ID from c4d_colors.h, e.g. COLOR_BG or a Vector color in range (0.0,1.0) or an empty or invalid data, which will return a non-colorized icon. |
| BaseBitmap* cinema::GetColorizedIconFromCache | ( | Int32 | iconId, |
| const GeData & | color | ||
| ) |
Returns a colorized copy of the defined icon. The icon is internally cached and shared across the program, therefore if you need to modify the icon further for specific uses, use GetColorizedIcon instead. If color is empty or not a valid, the returned copied will be the original non-colorized version of the icon.
| [in] | iconId | The ID of the icon. |
| [in] | color | The color. Can be either a valid color ID from c4d_colors.h, e.g. COLOR_BG or a Vector color in range (0.0,1.0) or an empty or invalid data, which will return a non-colorized icon. |
Unregisters an icon registered with RegisterIcon().
| [in] | iconId | The ID of the icon. |