Rise
The Vieneo Province
Loading...
Searching...
No Matches
CargoManifestList Class Reference

#include <CargoManifestList.h>

Collaboration diagram for CargoManifestList:
[legend]

Classes

struct  Row

Public Member Functions

 CargoManifestList (int height)
void Add (const wchar_t *text, std::uint32_t color, const std::string &type="", int value=0)
void UpdateView ()
void MoveSelection (int direction)
bool HandleNavigationKey (short key, bool shift, unsigned int keyboardDelay=1, unsigned int keyboardSpeed=31)
void CancelKeyRepeat ()
bool UpdateKeyRepeat (const unsigned char *keys, bool shift, float elapsed)
int ScreenRow (int row) const
bool MoreBelow () const

Public Attributes

std::vector< Row > rows
int selected = 0
int offset = 0
const int controlsY
const int moreY
const int visibleRows

Static Public Attributes

static constexpr int HeaderRows = 2
static constexpr int LineHeight = 12

Private Attributes

short repeatKey = -1
int repeatDirection = 0
double repeatRemaining = 0.0
double repeatInterval = 1.0 / 30.0

Detailed Description

Definition at line 9 of file CargoManifestList.h.

Constructor & Destructor Documentation

◆ CargoManifestList()

CargoManifestList::CargoManifestList ( int height)
inlineexplicit

Definition at line 35 of file CargoManifestList.h.

Here is the caller graph for this function:

Member Function Documentation

◆ Add()

void CargoManifestList::Add ( const wchar_t * text,
std::uint32_t color,
const std::string & type = "",
int value = 0 )
inline

Definition at line 43 of file CargoManifestList.h.

Here is the caller graph for this function:

◆ CancelKeyRepeat()

void CargoManifestList::CancelKeyRepeat ( )
inline

Definition at line 94 of file CargoManifestList.h.

Here is the caller graph for this function:

◆ HandleNavigationKey()

bool CargoManifestList::HandleNavigationKey ( short key,
bool shift,
unsigned int keyboardDelay = 1,
unsigned int keyboardSpeed = 31 )
inline

Definition at line 73 of file CargoManifestList.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoreBelow()

bool CargoManifestList::MoreBelow ( ) const
inline

Definition at line 129 of file CargoManifestList.h.

Here is the caller graph for this function:

◆ MoveSelection()

void CargoManifestList::MoveSelection ( int direction)
inline

Definition at line 61 of file CargoManifestList.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ScreenRow()

int CargoManifestList::ScreenRow ( int row) const
inline

Definition at line 122 of file CargoManifestList.h.

Here is the caller graph for this function:

◆ UpdateKeyRepeat()

bool CargoManifestList::UpdateKeyRepeat ( const unsigned char * keys,
bool shift,
float elapsed )
inline

Definition at line 101 of file CargoManifestList.h.

Here is the call graph for this function:

◆ UpdateView()

void CargoManifestList::UpdateView ( )
inline

Definition at line 48 of file CargoManifestList.h.

Here is the caller graph for this function:

Member Data Documentation

◆ controlsY

const int CargoManifestList::controlsY

Definition at line 31 of file CargoManifestList.h.

◆ HeaderRows

int CargoManifestList::HeaderRows = 2
staticconstexpr

Definition at line 17 of file CargoManifestList.h.

◆ LineHeight

int CargoManifestList::LineHeight = 12
staticconstexpr

Definition at line 18 of file CargoManifestList.h.

◆ moreY

const int CargoManifestList::moreY

Definition at line 32 of file CargoManifestList.h.

◆ offset

int CargoManifestList::offset = 0

Definition at line 30 of file CargoManifestList.h.

◆ repeatDirection

int CargoManifestList::repeatDirection = 0
private

Definition at line 12 of file CargoManifestList.h.

◆ repeatInterval

double CargoManifestList::repeatInterval = 1.0 / 30.0
private

Definition at line 14 of file CargoManifestList.h.

◆ repeatKey

short CargoManifestList::repeatKey = -1
private

Definition at line 11 of file CargoManifestList.h.

◆ repeatRemaining

double CargoManifestList::repeatRemaining = 0.0
private

Definition at line 13 of file CargoManifestList.h.

◆ rows

std::vector<Row> CargoManifestList::rows

Definition at line 28 of file CargoManifestList.h.

◆ selected

int CargoManifestList::selected = 0

Definition at line 29 of file CargoManifestList.h.

◆ visibleRows

const int CargoManifestList::visibleRows

Definition at line 33 of file CargoManifestList.h.


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