Classes | |
class | C4DGadget |
class | GadgetPtr |
class | GeUserArea |
class | TriState< TYPE > |
class | UpdateDialogHelper |
class | GeDialog |
class | GeModalDialog |
class | SubDialog |
class | iCustomGui |
class | ProgressThread |
class | ProgressDialog |
class | AutoWaitPointer |
Namespaces | |
maxon | |
Typedefs | |
typedef UChar | OBSOLETE |
Enumerations | |
enum | { FORMAT_FLOAT , FORMAT_INT , FORMAT_PERCENT , FORMAT_DEGREE , FORMAT_METER , FORMAT_FRAMES , FORMAT_SECONDS , FORMAT_SMPTE } |
TriState Set | |
#define | FLAG_CENTER_HORIZ |
#define | FLAG_CENTER_VERT |
#define | FLAG_ALIGN_RIGHT |
#define IDC_OK |
#define IDC_CANCEL |
#define FIRST_POPUP_ID |
The first valid sub-menu item ID.
#define MENU_ALLOWSUBMENUCOMMAND |
#define IDM_CM_CLOSEWINDOW |
The menu ID for a close menu item. Can be used in dialog menus.
#define MAXTIME |
The default maximum time value. Equal to 1.0 hours at 30 fps i.e. about 2.77 hours.
#define C4DGUIPTR |
ID used for GadgetPtr when initialized with a gadget pointer.
#define C4DGUINOPTR |
ID used for GadgetPtr when not initialized with a gadget pointer.
#define C4DGUISCROLLPARENT |
ID used for parent GadgetPtr when retrieving the dimensions of the Dialog within a scrollgroup.
#define C4DGUIWINDOWID |
ID used for GadgetPtr when querying the size of the window with GetItemDim().
#define MOUSEPOS |
Mouse position constant for ShowPopupMenu().
Combines SizePix() and SizeChr() functions. The returned value is interpreted as a number of characters/lines plus a number of pixels.
[in] | pixels | The pixel dimension. |
[in] | chars | The number of characters. |
Bakes a pixel size so that it can be used to specify dialog control dimension.
[in] | pixels | The pixel dimension. |
Bakes a character count so that it can be used to specify dialog control dimension.
Calculates how many characters will fit in a control for widths, and how many standard lines will fit for heights.
[in] | chars | The number of characters. |
void MessageDialog | ( | const maxon::String & | str | ) |
Opens a standard message dialog with an exclamation point icon and an OK button.
[in] | str | The message to show. |
void MessageDialog | ( | Int32 | id | ) |
Opens a standard dialog with an exclamation point icon and an OK button.
[in] | id | The message to show, specified as a string ID in the global ::resource object. |
void MessageDialog | ( | Int32 | id, |
const maxon::String & | p1 | ||
) |
Opens a standard dialog with an exclamation point icon and an OK button.
[in] | id | The message to show, specified as a string ID in the global ::resource object, including one phrase that is inserted at #'s in the string. |
[in] | p1 | The phrase to insert. |
void MessageDialog | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2 | ||
) |
Opens a standard dialog with an exclamation point icon and an OK button.
[in] | id | The message to show, specified as a string ID in the global ::resource object, including two phrases that are inserted at #'s in the string. |
[in] | p1 | The first phrase to insert. |
[in] | p2 | The second phrase to insert. |
Bool QuestionDialog | ( | const maxon::String & | str | ) |
Opens a standard question dialog with a question mark icon and Yes/No buttons.
[in] | str | The message to show. |
Opens a standard question dialog with a question mark icon and Yes/No buttons.
[in] | id | The message to show, specified as a string ID in the global ::resource object. |
Bool QuestionDialog | ( | Int32 | id, |
const maxon::String & | p1 | ||
) |
Opens a standard question dialog with a question mark icon and Yes/No buttons.
[in] | id | The message to show, specified as a string ID in the global ::resource object, including one phrase that is inserted at #'s in the string. |
[in] | p1 | The phrase to insert. |
Bool QuestionDialog | ( | Int32 | id, |
const maxon::String & | p1, | ||
const maxon::String & | p2 | ||
) |
Opens a standard question dialog with a question mark icon and Yes/No buttons.
[in] | id | The message to show, specified as a string ID in the global ::resource object, including two phrases that are inserted at #'s in the string. |
[in] | p1 | The first phrase to insert. |
[in] | p2 | The second phrase to insert. |
Bool GetInputEvent | ( | Int32 | askdevice, |
BaseContainer & | res | ||
) |
Gets the next input event for a certain device from the event queue.
If the return value is true, the container stored in res is like an input event message, otherwise no state was available.
For a list of valid devices and channels, see Input Events.
[in] | askdevice | The device to poll. |
[in] | res | The result container. |
Bool GetInputState | ( | Int32 | askdevice, |
Int32 | askchannel, | ||
BaseContainer & | res | ||
) |
Polls a certain channel of a device for the current input state.
If the return value is true, the container stored in res is like an input event message, otherwise no state was available.
For a list of valid devices and channels, see Input Events.
[in] | askdevice | The device to poll. |
[in] | askchannel | The channel of the device. |
[in] | res | The result container. |
Int32 ShowPopupMenu | ( | CDialog * | cd, |
Int32 | screenx, | ||
Int32 | screeny, | ||
const BaseContainer & | bc, | ||
Int32 | flags = POPUP_RIGHT|POPUP_EXECUTECOMMANDS|POPUP_ALLOW_FILTERING , |
||
Int32 * | res_mainid = nullptr |
||
) |
Displays a popup menu.
The menu is defined by adding string items sequentially to a base container. (The order the items are set in the container determines their order in the menu.)
The ID of the string item determines its function:
[in] | cd | The internal parent dialog, or nullptr. |
[in] | screenx | The popup X position in screen pixels, or MOUSEPOS to popup where the cursor is. |
[in] | screeny | The popup Y position in screen pixels, or MOUSEPOS to popup where the cursor is. |
[in] | bc | The base container with the menu items. |
[in] | flags | The popup menu flags: POPUP |
[in,out] | res_mainid | The main id or nullptr if the id is returned normally by the function. |
Bool RemoveLastCursorInfo | ( | LASTCURSORINFOFUNC | func | ) |
Sets the callback invoked when mouse cursor leaves a user area.
[in] | func | The last mouse cursor info callback. It should simply send BFM_CURSORINFO_REMOVE to the user area for the mouse leave event. |
Converts a shortcut to a readable string.
[in] | shortqual | The shortcut qualifier. |
[in] | shortkey | The shortcut key. |
String Shortcut2String | ( | const BaseContainer & | sc | ) |
Converts a shortcut to a readable string.
[in] | sc | The shortcut container. |
Gets a GUI color from its constant ID.
[in] | cid | The color ID. See COLOR constants. |
Converts an icon resource identity string into an ID.
[in] | id | The ID of the icon resource string. |
[in] | ident | The icon resource identity string. Look them up in the resource file for schemes. |
Retrieves the icon for an interface element.
[in] | type | The icon type: INTERFACE_ICON_TYPE |
[in] | id_x | The X position ID of the icon. |
[in] | id_y | The Y position ID of the icon. |
[in] | id_w | The width ID of the icon. |
[in] | id_h | The height ID of the icon. |
[out] | d | Assigned the retrieved icon resource data. |
Bool GeIsTabletMode | ( | ) |
Returns true when the current/preferred input device is a graphic tablet.
Float GetMouseMoveDelta | ( | ) |
Retrieves the mouse move delta (threshold) depending on the input device.
void SetBakeStatus | ( | Bool | state | ) |
Private.
Bool GetBakeStatus | ( | ) |
Private.
Filename GetDnDFilename | ( | const BaseContainer & | msg, |
Int32 | dragType, | ||
const void * | dragObj, | ||
Bool | texturesOnly, | ||
Bool | updateUsage, | ||
Bool | loadUrl | ||
) |
GetDnDFilename extracts the Filename from the given drag and drop data returned by GetDragObject()
[in] | msg | Drag and Drop message. |
[in] | dragType | Drag type returned by GetDragObject(). |
[in] | dragObj | Drag object returned by GetDragObject(). |
[in] | texturesOnly | True to check for textures only. |
[in] | updateUsage | True to update the usage stats of the asset. |
[in] | loadUrl | True to show a modal progress dialog when files need to be downloaded. |