#include <c4d_tooldata.h>
Helper class for the editor's window.
Public Member Functions | |
void | DrawXORLine (Int32 x1, Int32 y1, Int32 x2, Int32 y2) |
void | MouseDragStart (Int32 button, Float mx, Float my, MOUSEDRAGFLAGS flag) |
MOUSEDRAGRESULT | MouseDrag (Float *mx, Float *my, BaseContainer *channels) |
MOUSEDRAGRESULT | MouseDragEnd () |
Bool | BfGetInputState (Int32 askdevice, Int32 askchannel, BaseContainer *res) |
Bool | BfGetInputEvent (Int32 askdevice, BaseContainer *res) |
HOTKEYFLAGS | IsHotkeyDown (Int32 id) |
void | StatusSetText (const maxon::String &str) |
Bool | Screen2Local (Int32 *x, Int32 *y) |
Bool | Local2Screen (Int32 *x, Int32 *y) |
Bool | Global2Local (Int32 *x, Int32 *y) |
Bool | Local2Global (Int32 *x, Int32 *y) |
Private Member Functions | |
EditorWindow () | |
~EditorWindow () | |
|
private |
|
private |
Deprecated. Draws an XOR line in the editor view.
[in] | x1 | Start X coordinate of the line. |
[in] | y1 | Start Y coordinate of the line. |
[in] | x2 | End X coordinate of the line. |
[in] | y2 | End Y coordinate of the line. |
void MouseDragStart | ( | Int32 | button, |
Float | mx, | ||
Float | my, | ||
MOUSEDRAGFLAGS | flag | ||
) |
Initializes a mouse dragging loop.
For example:
[in] | button | State of the mouse buttons, passed through from ToolData::MouseInput. See BFM_INPUT. |
[in] | mx | Mouse X coordinate. |
[in] | my | Mouse Y coordinate. |
[in] | flag | The mouse drag flags: MOUSEDRAGFLAGS |
MOUSEDRAGRESULT MouseDrag | ( | Float * | mx, |
Float * | my, | ||
BaseContainer * | channels | ||
) |
Checks for the mouse drag status.
[in] | mx | Mouse X coordinate. |
[in] | my | Mouse Y coordinate. |
[in] | channels | A container to take the state of the mouse: PEN |
MOUSEDRAGRESULT MouseDragEnd | ( | ) |
Checks why the mouse drag ended. Allows to perform any undo operations needed if the user canceled the drag.
Bool BfGetInputState | ( | Int32 | askdevice, |
Int32 | askchannel, | ||
BaseContainer * | res | ||
) |
Gets the status of an input device.
[in] | askdevice | The device: BFM_INPUT_MOUSE or BFM_INPUT_KEYBOARD. |
[in] | askchannel | The channel: BFM_INPUT |
[in] | res | A container to take the input state results. |
Bool BfGetInputEvent | ( | Int32 | askdevice, |
BaseContainer * | res | ||
) |
Gets the status of an input device from the event queue if present.
[in] | askdevice | The device: BFM_INPUT_MOUSE or BFM_INPUT_KEYBOARD. |
[in] | res | A container to take the input event results. |
HOTKEYFLAGS IsHotkeyDown | ( | Int32 | id | ) |
Checks the standard navigation hotkeys.
[in] | id | The hotkey to check: HOTKEY |
void StatusSetText | ( | const maxon::String & | str | ) |
Sets the text in the status bar.
[in] | str | The text for the status bar. |
Transforms screen coordinates (relative to the top left corner of the system screen) to local coordinates (relative to the top left corner of a user area). Stores the result in *x and *y.
[in,out] | x | The screen X coordinate. Assigned the converted local coordinate. |
[in,out] | y | The screen Y coordinate. Assigned the converted local coordinate. |
Transforms local coordinates (relative to the top left corner of a user area) to screen coordinates (relative to the top left corner of the system screen). Stores the result in *x and *y.
[in,out] | x | The local X coordinate. Assigned the screen coordinate. |
[in,out] | y | The local Y coordinate. Assigned the screen coordinate. |
Transforms global window coordinates (relative to the top left corner of the application window) to local coordinates (relative to the top left corner of a user area). Stores the result in *x and *y.
[in,out] | x | The global window X coordinate. Assigned the local coordinate. |
[in,out] | y | The global window Y coordinate. Assigned the local coordinate. |
Transforms local coordinates (relative to the top left corner of the user area) to global window coordinates (relative to the top left corner of the application window). Stores the result in *x and *y.
[in,out] | x | The local X coordinate. Assigned the global window coordinate. |
[in,out] | y | The local Y coordinate. Assigned the global window coordinate. |