Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
CellSelectRectItem Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ SelectCell()

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.


The documentation for this class was generated from the following file: