Classes |
|
| struct | RestoreLayoutSecret |
| struct | CommandInformationData |
| class | CommandData |
Macros |
|
| #define | PLUGINFLAG_COMMAND_HOTKEY |
| #define | PLUGINFLAG_COMMAND_OPTION_DIALOG |
| #define | PLUGINFLAG_COMMAND_STICKY |
| #define | PLUGINFLAG_COMMAND_ICONGADGET |
| #define | MSG_COMMANDINFORMATION |
| #define | MSG_BODYPAINTEXCHANGE |
| #define | TOOLHOTKEY_RECEIVER |
函数 |
|
| Bool | RegisterCommandPlugin ( Int32 id, const maxon::String &str, Int32 info, BaseBitmap *icon, const maxon::String &help, CommandData *dat) |
| Bool | RegisterManagerInformation ( Int32 id, const maxon::String &str, Int32 info) |
| #define TOOLHOTKEY_RECEIVER |
Special tool hotkey overwrite for command plugins.
| Bool RegisterCommandPlugin | ( | Int32 | id , |
| const maxon::String & | str , | ||
| Int32 | info , | ||
| BaseBitmap * | icon , | ||
| const maxon::String & | help , | ||
| CommandData * | dat | ||
| ) |
Registers a command plugin.
| [in] | id | A unique plugin ID. Must be obtained from http://www.plugincafe.com |
| [in] | str |
The name of the plugin.
To affect the order that plugins are displayed in menus add "#$n" as a prefix to this name, where n is a number. Lower numbers are displayed before higher numbers. If name is "--" it will show up as a menu separator. |
| [in] | info | The command plugin info flags: PLUGINFLAG_COMMAND PLUGINFLAG |
| [in] | icon |
The icon for the command. The bitmap is copied.
The icon should be of size 32x 32 , but will be scaled if needed. It must also be 24 bits and should if possible include an alpha to support pattern backgrounds. |
| [in] | help |
The tool tips and status bar help text for the command.
When using strings it is advised to use the resources string ( .str ) files and the GeLoadString() 函数。 This keeps the plugin easy to localize for any language to support and makes full use of the language features of Cinema 4D . |
| [in] | dat | The command data instance for the plugin. Cinema 4D takes over the ownership of the pointed command data. |
| Bool RegisterManagerInformation | ( | Int32 | id , |
| const maxon::String & | str , | ||
| Int32 | info | ||
| ) |
Registers manager information for use when registering shortcuts with AddShortcut() .
| [in] | id | A unique plugin ID. Must be obtained from http://www.plugincafe.com |
| [in] | str | The manager name. |
| [in] | info | The manager info flags: PLUGINFLAG |