Open 3D Engine LyShine Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
A custom rect item that allows us to get a mouse press event. More...
#include <SpriteBorderEditor.h>
Inherits QObject, and QGraphicsRectItem.
Public Slots | |
void | StopProcessingInput () |
Public Member Functions | |
CellSelectRectItem (const QRectF &rect, const AZStd::function< void()> &clickCallback) | |
void | SelectCell () |
Static Public Member Functions | |
static void | ClearSelection () |
Protected Member Functions | |
void | mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) override |
"Selects" the cell and triggers the associated click callback. | |
A custom rect item that allows us to get a mouse press event.
This provides a convenient callback to determine which cell index was selected within the cell selection view.
void CellSelectRectItem::SelectCell | ( | ) |
Activates the "selected cell" border styling.
Changes the QBrush styling for this RectItem to draw the "selected" border style and de-selects the previously selected item by removing the brush styling from it.