CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | Friends | List of all members
CFxUIModelIndex Class Reference

#include <FxUIModelIndex.h>

Public Types

enum  UIDataRole {
  DisplayRole = 0 , DecorationRole = 1 , EditRole = 2 , ToolTipRole = 3 ,
  TextColorRole = 9 , UserRole = 0x0100
}
 
enum  UIItemFlags { NoItemFlags = 0 , ItemIsSelectable = 1 , ItemIsEditable = 2 , ItemIsEnabled = 32 }
 
enum  UIOrientation { Horizontal = 0x1 , Vertical = 0x2 }
 

Public Member Functions

 CFxUIModelIndex ()
 
int row () const
 
int column () const
 
quintptr internalId () const
 
voidinternalPointer () const
 
CFxUIModelIndex parent () const
 
CFxUIVariant data (int role=UIDataRole::DisplayRole) const
 
UIItemFlags flags () const
 
const CFxUIAbstractItemModelmodel () const
 
bool isValid () const
 
bool operator== (const CFxUIModelIndex &other) const
 
bool operator!= (const CFxUIModelIndex &other) const
 
bool operator< (const CFxUIModelIndex &other) const
 

Friends

class CFxUIAbstractItemModel
 

Detailed Description

Definition at line 23 of file FxUIModelIndex.h.

Member Enumeration Documentation

◆ UIDataRole

Enumerator
DisplayRole 
DecorationRole 
EditRole 
ToolTipRole 
TextColorRole 
UserRole 

Definition at line 28 of file FxUIModelIndex.h.

◆ UIItemFlags

Enumerator
NoItemFlags 
ItemIsSelectable 
ItemIsEditable 
ItemIsEnabled 

Definition at line 39 of file FxUIModelIndex.h.

◆ UIOrientation

Enumerator
Horizontal 
Vertical 

Definition at line 47 of file FxUIModelIndex.h.

Constructor & Destructor Documentation

◆ CFxUIModelIndex()

CFxUIModelIndex::CFxUIModelIndex ( )
inline

Definition at line 52 of file FxUIModelIndex.h.

Member Function Documentation

◆ column()

int CFxUIModelIndex::column ( ) const
inline

Definition at line 55 of file FxUIModelIndex.h.

◆ data()

CFxUIVariant CFxUIModelIndex::data ( int  role = UIDataRole::DisplayRole) const
inline

Definition at line 180 of file FxUIAbstractItemModel.h.

◆ flags()

CFxUIModelIndex::UIItemFlags CFxUIModelIndex::flags ( ) const
inline

Definition at line 185 of file FxUIAbstractItemModel.h.

◆ internalId()

quintptr CFxUIModelIndex::internalId ( ) const
inline

Definition at line 56 of file FxUIModelIndex.h.

◆ internalPointer()

void* CFxUIModelIndex::internalPointer ( ) const
inline

Definition at line 57 of file FxUIModelIndex.h.

◆ isValid()

bool CFxUIModelIndex::isValid ( ) const
inline

Definition at line 62 of file FxUIModelIndex.h.

◆ model()

const CFxUIAbstractItemModel* CFxUIModelIndex::model ( ) const
inline

Definition at line 61 of file FxUIModelIndex.h.

◆ operator!=()

bool CFxUIModelIndex::operator!= ( const CFxUIModelIndex other) const
inline

Definition at line 67 of file FxUIModelIndex.h.

◆ operator<()

bool CFxUIModelIndex::operator< ( const CFxUIModelIndex other) const
inline

Definition at line 71 of file FxUIModelIndex.h.

◆ operator==()

bool CFxUIModelIndex::operator== ( const CFxUIModelIndex other) const
inline

Definition at line 63 of file FxUIModelIndex.h.

◆ parent()

CFxUIModelIndex CFxUIModelIndex::parent ( ) const
inline

Definition at line 175 of file FxUIAbstractItemModel.h.

◆ row()

int CFxUIModelIndex::row ( ) const
inline

Definition at line 54 of file FxUIModelIndex.h.

Friends And Related Function Documentation

◆ CFxUIAbstractItemModel

friend class CFxUIAbstractItemModel
friend

Definition at line 25 of file FxUIModelIndex.h.


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