ScummVM API documentation
MADS::UISlots Class Reference

#include <user_interface.h>

Inheritance diagram for MADS::UISlots:
Common::Array< UISlot >

Public Member Functions

 UISlots (MADSEngine *vm)
 
void add (const Common::Rect &bounds)
 
void add (const AnimFrameEntry &frameEntry)
 
void fullRefresh ()
 
void draw (bool updateFlag, bool delFlag)
 
- Public Member Functions inherited from Common::Array< UISlot >
 Array (size_type count)
 
 Array (size_type count, const UISlot &value)
 
 Array (const Array< UISlot > &array)
 
 Array (Array< UISlot > &&old)
 
 Array (std::initializer_list< UISlot > list)
 
 Array (const T2 *array, size_type n)
 
void push_back (const UISlot &element)
 
void push_back (const Array< UISlot > &array)
 
void pop_back ()
 
const UISlot * data () const
 
UISlot * data ()
 
UISlot & front ()
 
const UISlot & front () const
 
UISlot & back ()
 
const UISlot & back () const
 
void insert_at (size_type idx, const UISlot &element)
 
void insert_at (size_type idx, const Array< UISlot > &array)
 
void insert (iterator pos, const UISlot &element)
 
UISlot remove_at (size_type idx)
 
UISlot & operator[] (size_type idx)
 
const UISlot & operator[] (size_type idx) const
 
Array< UISlot > & operator= (const Array< UISlot > &array)
 
Arrayoperator= (Array< UISlot > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< UISlot > &other) const
 
bool operator!= (const Array< UISlot > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const UISlot value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< UISlot >
typedef UISlot * iterator
 
typedef const UISlot * const_iterator
 
typedef UISlot value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< UISlot >
void allocCapacity (size_type capacity)
 
void freeStorage (UISlot *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< UISlot >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< UISlot >
size_type _capacity
 
size_type _size
 
UISlot * _storage
 

Detailed Description

Sprite list for the user interface

Constructor & Destructor Documentation

◆ UISlots()

MADS::UISlots::UISlots ( MADSEngine vm)
inline

Constructor

Member Function Documentation

◆ add() [1/2]

void MADS::UISlots::add ( const Common::Rect bounds)

Add an overprint (text) entry to the list

◆ add() [2/2]

void MADS::UISlots::add ( const AnimFrameEntry frameEntry)

Loads the data from an aimation frame entry

◆ fullRefresh()

void MADS::UISlots::fullRefresh ( )

Adds a special entry for full refresh of the user interface

◆ draw()

void MADS::UISlots::draw ( bool  updateFlag,
bool  delFlag 
)

Draw all the sprites in the list on the user interface.

Parameters
updateFlagFlag drawn areas to be updated on physical screen
delFlagControls how used slots are deleted after drawing

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