ManaPlus
Public Member Functions
OpenGLListModel Class Reference

#include <opengllistmodel.h>

Inheritance diagram for OpenGLListModel:
ListModel

Public Member Functions

 OpenGLListModel ()
 
int getNumberOfElements ()
 
std::string getElementAt (int i)
 
- Public Member Functions inherited from ListModel
 ListModel ()
 
virtual ~ListModel ()
 

Detailed Description

Definition at line 31 of file opengllistmodel.h.

Constructor & Destructor Documentation

◆ OpenGLListModel()

OpenGLListModel::OpenGLListModel ( )
inline

Definition at line 34 of file opengllistmodel.h.

34  :
35  ListModel()
36  { }
ListModel()
Definition: listmodel.h:82

Member Function Documentation

◆ getElementAt()

std::string OpenGLListModel::getElementAt ( int  i)
inlinevirtual

Gets an element at a certain index in the list.

Parameters
iAn index in the list.
Returns
An element as a string at the a certain index.

Implements ListModel.

Definition at line 43 of file opengllistmodel.h.

44  {
45  if (i >= getNumberOfElements() || i < 0)
46  return "???";
47  return gettext(OPENGL_NAME[i]);
48  }
const char * OPENGL_NAME[]

References getNumberOfElements(), and OPENGL_NAME.

◆ getNumberOfElements()

int OpenGLListModel::getNumberOfElements ( )
inlinevirtual

Gets the number of elements in the list.

Returns
The number of elements in the list

Implements ListModel.

Definition at line 40 of file opengllistmodel.h.

41  { return renderModesListSize; }
const int renderModesListSize

References renderModesListSize.

Referenced by getElementAt().


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