Open 3D Engine LyShine Gem API Reference 24.09.2
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
The RulerWidget is drawn above or to the left of the ViewportWidget. More...
#include <RulerWidget.h>
Inherits QWidget.
Public Types | |
enum class | Orientation { Horizontal , Vertical } |
Public Member Functions | |
RulerWidget (Orientation orientation, QWidget *parent, EditorWindow *editorWindow) | |
Orientation | GetOrientation () |
Get the orientation of this ruler. | |
float | GetOrigin () |
Get the origin position in canvas space of the ruler scale. | |
void | SetCursorPos (const QPoint &pos) |
Tell the ruler where the cursor is in global Qt space. | |
void | DrawForViewport (Draw2dHelper &draw2d) |
Draw anything needed in the viewport (during adding of a guide for example) | |
Static Public Member Functions | |
static int | GetRulerBreadth () |
Get the the desired breadth of the ruler widgets when shown. | |
The RulerWidget is drawn above or to the left of the ViewportWidget.