Public Member Functions | |
void | setNumVisible (int total) |
void | clear () |
virtual void | setup (int numVisible, CPetSection *owner) |
virtual void | reset () |
virtual void | enter () |
virtual void | leave () |
void | setFlags (int flags) |
void | draw (CScreenManager *screenManager) |
void | highlight (int index) |
void | highlight (const CPetGlyph *glyph) |
CPetSection * | getOwner () const |
CPetControl * | getPetControl () const |
bool | MouseButtonDownMsg (const Point &pt) |
bool | MouseButtonUpMsg (const Point &pt) |
bool | MouseDoubleClickMsg (const Point &pt) |
bool | MouseDragStartMsg (CMouseDragStartMsg *msg) |
bool | MouseDragMoveMsg (CMouseDragMoveMsg *msg) |
bool | MouseDragEndMsg (CMouseDragEndMsg *msg) |
bool | KeyCharMsg (int key) |
bool | VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) |
bool | enterHighlighted () |
void | leaveHighlighted () |
void | startDragging (CPetGlyph *glyph, CMouseDragStartMsg *msg) |
void | endDragging () |
void | resetHighlight () |
bool | highlighted14 () |
int | indexOf (const CPetGlyph *glyph) const |
void | scrollToStart () |
void | scrollLeft () |
void | scrollRight () |
void | incSelection () |
void | decSelection () |
CGameObject * | getObjectAt (const Point &pt) const |
bool | isGlyphHighlighted (const CPetGlyph *glyph) const |
int | getHighlightIndex () const |
Point | getHighlightedGlyphPos () const |
void | removeInvalid () |
Public Member Functions inherited from Titanic::List< CPetGlyph > | |
void | save (SimpleFile *file, int indent) override |
void | load (SimpleFile *file) override |
void | destroyContents () |
CPetGlyph * | add () |
bool | contains (const CPetGlyph *item) const |
Public Member Functions inherited from Titanic::CSaveableObject | |
virtual ClassDef * | getType () const |
bool | isInstanceOf (const ClassDef *classDef) const |
virtual void | saveHeader (SimpleFile *file, int indent) |
virtual void | saveFooter (SimpleFile *file, int indent) |
Public Member Functions inherited from Common::List< CPetGlyph *> | |
constexpr | List () |
List (const List< CPetGlyph * > &list) | |
iterator | insert (iterator pos, const CPetGlyph * &element) |
void | insert (iterator pos, iterator2 first, iterator2 last) |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
iterator | reverse_erase (iterator pos) |
void | remove (const CPetGlyph * &val) |
void | push_front (const CPetGlyph * &element) |
void | push_back (const CPetGlyph * &element) |
void | pop_front () |
void | pop_back () |
CPetGlyph * & | front () |
const CPetGlyph * & | front () const |
CPetGlyph * & | back () |
const CPetGlyph * & | back () const |
List< CPetGlyph * > & | operator= (const List< CPetGlyph * > &list) |
size_type | size () const |
void | clear () |
bool | empty () const |
iterator | begin () |
const_iterator | begin () const |
iterator | reverse_begin () |
const_iterator | reverse_begin () const |
iterator | end () |
const_iterator | end () const |
Protected Member Functions | |
void | changeHighlight (int index) |
Protected Member Functions inherited from Common::List< CPetGlyph *> | |
void | insert (NodeBase *pos, const CPetGlyph * &element) |
NodeBase | erase (NodeBase *pos) |
Protected Attributes | |
int | _firstVisibleIndex |
int | _totalGlyphs |
int | _numVisibleGlyphs |
int | _highlightIndex |
int | _field1C |
int | _flags |
CPetGlyph * | _dragGlyph |
CPetSection * | _owner |
CPetGfxElement | _selection |
CPetGfxElement | _scrollLeft |
CPetGfxElement | _scrollRight |
Protected Attributes inherited from Common::List< CPetGlyph *> | |
NodeBase | _anchor |
Additional Inherited Members | |
Public Types inherited from Common::List< CPetGlyph *> | |
typedef ListInternal::Iterator< CPetGlyph * > | iterator |
typedef ListInternal::ConstIterator< CPetGlyph * > | const_iterator |
typedef CPetGlyph * | value_type |
typedef uint | size_type |
Static Public Member Functions inherited from Titanic::CSaveableObject | |
static void | initClassList () |
static void | freeClassList () |
static CSaveableObject * | createInstance (const Common::String &name) |
Static Public Attributes inherited from Titanic::CSaveableObject | |
static ClassDef * | _type |
Protected Types inherited from Common::List< CPetGlyph *> | |
typedef ListInternal::NodeBase | NodeBase |
typedef ListInternal::Node< CPetGlyph * > | Node |
|
protected |
Change the currently selected glyph
void Titanic::CPetGlyphs::setNumVisible | ( | int | total | ) |
Set the number of visible glyphs
void Titanic::CPetGlyphs::clear | ( | ) |
Clears the glyph list
|
virtual |
The visual dimensions for the control and it's components
|
virtual |
Set up the control
|
virtual |
Called when PET area is entered
|
virtual |
Called when PET area is left
void Titanic::CPetGlyphs::draw | ( | CScreenManager * | screenManager | ) |
Draw the control
void Titanic::CPetGlyphs::highlight | ( | int | index | ) |
Highlight a specific glyph by indexe
void Titanic::CPetGlyphs::highlight | ( | const CPetGlyph * | glyph | ) |
Highlight a specific glyph
|
inline |
Get the owning section for the glyphs
CPetControl* Titanic::CPetGlyphs::getPetControl | ( | ) | const |
Get the PET control
bool Titanic::CPetGlyphs::MouseButtonDownMsg | ( | const Point & | pt | ) |
Mouse button down message
bool Titanic::CPetGlyphs::MouseButtonUpMsg | ( | const Point & | pt | ) |
Mouse button up message
|
inline |
Mouse double click message
bool Titanic::CPetGlyphs::MouseDragStartMsg | ( | CMouseDragStartMsg * | msg | ) |
Mouse drag start messagge
bool Titanic::CPetGlyphs::MouseDragMoveMsg | ( | CMouseDragMoveMsg * | msg | ) |
Mouse drag move message
bool Titanic::CPetGlyphs::MouseDragEndMsg | ( | CMouseDragEndMsg * | msg | ) |
Mouse drag end message
bool Titanic::CPetGlyphs::KeyCharMsg | ( | int | key | ) |
Key character message
bool Titanic::CPetGlyphs::VirtualKeyCharMsg | ( | CVirtualKeyCharMsg * | msg | ) |
Virtual key message
bool Titanic::CPetGlyphs::enterHighlighted | ( | ) |
When the PET section is entered, passes onto the highlighted glyph, if any
void Titanic::CPetGlyphs::leaveHighlighted | ( | ) |
When the PET section is left, passes onto the highlighted glyph, if any
void Titanic::CPetGlyphs::startDragging | ( | CPetGlyph * | glyph, |
CMouseDragStartMsg * | msg | ||
) |
Called when a dragging operation starts
void Titanic::CPetGlyphs::endDragging | ( | ) |
Called when a dragging operation ends
|
inline |
Reset the highlight
int Titanic::CPetGlyphs::indexOf | ( | const CPetGlyph * | glyph | ) | const |
Returns the index of the specified glyph in the lsit
|
inline |
Resets the scrolling of the glyphs list back to the start
void Titanic::CPetGlyphs::scrollLeft | ( | ) |
Scrolls the glyphs to the left
void Titanic::CPetGlyphs::scrollRight | ( | ) |
Scrolls the glyphs to the right
void Titanic::CPetGlyphs::incSelection | ( | ) |
Increment the currently selected index
void Titanic::CPetGlyphs::decSelection | ( | ) |
Decrement the currently selected index
CGameObject* Titanic::CPetGlyphs::getObjectAt | ( | const Point & | pt | ) | const |
Returns the object associated the glyph under the specified position
bool Titanic::CPetGlyphs::isGlyphHighlighted | ( | const CPetGlyph * | glyph | ) | const |
Returns true if the specified glyph is the currently highlighted one
|
inline |
Returns the highlighted index, if any
Point Titanic::CPetGlyphs::getHighlightedGlyphPos | ( | ) | const |
Get the top-left position of the currently highlighted glyph
void Titanic::CPetGlyphs::removeInvalid | ( | ) |
Removes any glyphs from the list that no longer have any images associated with them