GuiArrayCtrl Class Reference#include <guiArrayCtrl.h>
Inheritance diagram for GuiArrayCtrl:
[legend]List of all members.
Detailed Description
Renders a grid of cells.
|
Public Member Functions |
| GuiArrayCtrl () |
| DECLARE_CONOBJECT (GuiArrayCtrl) |
bool | onWake () |
| Called when this object is asked to wake up returns true if it's actually awake at the end.
|
void | onSleep () |
| Called when this object is asked to sleep.
|
|
Point2I | getSize () |
virtual void | setSize (Point2I size) |
void | setHeaderDim (const Point2I &dim) |
void | getScrollDimensions (S32 &cell_size, S32 &num_cells) |
|
void | setSelectedCell (Point2I cell) |
void | deselectCells () |
Point2I | getSelectedCell () |
void | scrollSelectionVisible () |
void | scrollCellVisible (Point2I cell) |
|
virtual void | onRenderColumnHeaders (Point2I offset, Point2I parentOffset, Point2I headerDim) |
virtual void | onRenderRowHeader (Point2I offset, Point2I parentOffset, Point2I headerDim, Point2I cell) |
virtual void | onRenderCell (Point2I offset, Point2I cell, bool selected, bool mouseOver) |
void | onRender (Point2I offset, const RectI &updateRect) |
| Called when this control is to render itself.
|
|
void | onMouseDown (const GuiEvent &event) |
void | onMouseMove (const GuiEvent &event) |
void | onMouseDragged (const GuiEvent &event) |
void | onMouseEnter (const GuiEvent &event) |
void | onMouseLeave (const GuiEvent &event) |
bool | onKeyDown (const GuiEvent &event) |
| Happens when a key is depressed.
|
void | onRightMouseDown (const GuiEvent &event) |
Protected Member Functions |
bool | cellSelected (Point2I cell) |
virtual void | onCellSelected (Point2I cell) |
virtual void | onCellHighlighted (Point2I cell) |
Protected Attributes |
Point2I | mHeaderDim |
Point2I | mSize |
Point2I | mCellSize |
Point2I | mSelectedCell |
Point2I | mMouseOverCell |
Resource< GFont > | mFont |
Private Types |
typedef GuiControl | Parent |
Member Typedef Documentation
Constructor & Destructor Documentation
GuiArrayCtrl::GuiArrayCtrl |
( |
|
) |
|
Member Function Documentation
bool GuiArrayCtrl::cellSelected |
( |
Point2I |
cell |
) |
[protected] |
virtual void GuiArrayCtrl::onCellSelected |
( |
Point2I |
cell |
) |
[protected, virtual] |
virtual void GuiArrayCtrl::onCellHighlighted |
( |
Point2I |
cell |
) |
[protected, virtual] |
bool GuiArrayCtrl::onWake |
( |
|
) |
[virtual] |
void GuiArrayCtrl::onSleep |
( |
|
) |
[virtual] |
Point2I GuiArrayCtrl::getSize |
( |
|
) |
[inline] |
virtual void GuiArrayCtrl::setSize |
( |
Point2I |
size |
) |
[virtual] |
void GuiArrayCtrl::setHeaderDim |
( |
const Point2I & |
dim |
) |
[inline] |
void GuiArrayCtrl::getScrollDimensions |
( |
S32 & |
cell_size, |
|
|
S32 & |
num_cells | |
|
) |
| | |
void GuiArrayCtrl::deselectCells |
( |
|
) |
[inline] |
Point2I GuiArrayCtrl::getSelectedCell |
( |
|
) |
|
void GuiArrayCtrl::scrollSelectionVisible |
( |
|
) |
|
void GuiArrayCtrl::onRender |
( |
Point2I |
offset, |
|
|
const RectI & |
updateRect | |
|
) |
| | [virtual] |
Called when this control is to render itself.
- Parameters:
-
| offset | The location this control is to begin rendering |
| updateRect | The screen area this control has drawing access to |
Reimplemented from GuiControl.
Reimplemented in GuiTreeViewCtrl.
void GuiArrayCtrl::onMouseDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
void GuiArrayCtrl::onMouseMove |
( |
const GuiEvent & |
event |
) |
[virtual] |
void GuiArrayCtrl::onMouseDragged |
( |
const GuiEvent & |
event |
) |
[virtual] |
void GuiArrayCtrl::onMouseEnter |
( |
const GuiEvent & |
event |
) |
[virtual] |
void GuiArrayCtrl::onMouseLeave |
( |
const GuiEvent & |
event |
) |
[virtual] |
bool GuiArrayCtrl::onKeyDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
void GuiArrayCtrl::onRightMouseDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
Member Data Documentation
|