ScummVM API documentation
Ultima::Ultima3::Views::WindowView Class Reference

#include <window_view.h>

Inheritance diagram for Ultima::Ultima3::Views::WindowView:
Ultima::Shared::View Graphics::Views::View Graphics::Views::UIElement Ultima::Ultima3::Views::CharacterDetails Ultima::Ultima3::Views::CreateCharacter Ultima::Ultima3::Views::DisperseParty Ultima::Ultima3::Views::FormParty Ultima::Ultima3::Views::JourneyOnward Ultima::Ultima3::Views::LogoScreen Ultima::Ultima3::Views::MainMenu Ultima::Ultima3::Views::PartyMenu Ultima::Ultima3::Views::Register Ultima::Ultima3::Views::TerminateCharacter

Public Member Functions

 WindowView (const Common::String &name)
 
- Public Member Functions inherited from Ultima::Shared::View
 View (const Common::String &name, Graphics::Views::UIElement *uiParent)
 
 View (const Common::String &name)
 
Graphics::Views::GfxSurface getSurface (bool innerBounds=false) const
 
- Public Member Functions inherited from Graphics::Views::View
 View (const Common::String &name, UIElement *uiParent)
 
 View (const Common::String &name)
 
bool msgFocus (const FocusMessage &msg) override
 
bool msgUnfocus (const UnfocusMessage &msg) override
 
bool msgMouseMove (const MouseMoveMessage &msg) override
 
bool msgMouseDown (const MouseDownMessage &msg) override
 
bool msgMouseUp (const MouseUpMessage &msg) override
 
- Public Member Functions inherited from Graphics::Views::UIElement
 UIElement (const Common::String &name, UIElement *uiParent)
 
 UIElement (const Common::String &name)
 
bool needsRedraw () const
 
void redraw ()
 
virtual void close ()
 
virtual void replaceView (UIElement *ui, bool replaceAllViews=false)
 
virtual void replaceView (const Common::String &name, bool replaceAllViews=false)
 
virtual void addView (UIElement *ui)
 
virtual void addView (const Common::String &name)
 
void addView ()
 
void open ()
 
int getRandomNumber (int minNumber, int maxNumber)
 
int getRandomNumber (int maxNumber)
 
virtual void setBounds (const Common::Rect &r)
 
Common::Rect getBounds () const
 
const Common::String & getName () const
 
GfxSurface getSurface (bool innerBounds=false) const
 
virtual void draw ()
 
virtual bool tick ()
 
virtual UIElement * findView (const Common::String &name)
 
bool send (const MouseMoveMessage &msg)
 
bool send (const Common::String &viewName, const FocusMessage &msg)
 
bool send (const FocusMessage &msg)
 
bool send (const Common::String &viewName, const UnfocusMessage &msg)
 
bool send (const UnfocusMessage &msg)
 
bool send (const Common::String &viewName, const MouseEnterMessage &msg)
 
bool send (const MouseEnterMessage &msg)
 
bool send (const Common::String &viewName, const MouseLeaveMessage &msg)
 
bool send (const MouseLeaveMessage &msg)
 
bool send (const Common::String &viewName, const KeypressMessage &msg)
 
bool send (const KeypressMessage &msg)
 
bool send (const Common::String &viewName, const MouseDownMessage &msg)
 
bool send (const MouseDownMessage &msg)
 
bool send (const Common::String &viewName, const MouseUpMessage &msg)
 
bool send (const MouseUpMessage &msg)
 
bool send (const Common::String &viewName, const ActionMessage &msg)
 
bool send (const ActionMessage &msg)
 
bool send (const Common::String &viewName, const GameMessage &msg)
 
bool send (const GameMessage &msg)
 
bool send (const Common::String &viewName, const ValueMessage &msg)
 
bool send (const ValueMessage &msg)
 
template<class T >
bool send (const T &msg)
 
template<class T >
bool send (const Common::String &viewName, const T &msg)
 

Static Protected Member Functions

static void clearWindow (GfxSurface &s)
 
static void drawBorder (GfxSurface &s)
 
static void drawSpacePrompt (GfxSurface &s)
 
static bool isSpaceKey (const KeypressMessage &msg)
 

Additional Inherited Members

- Protected Member Functions inherited from Graphics::Views::UIElement
void delaySeconds (uint seconds)
 
void delayFrames (uint frames)
 
bool isDelayActive () const
 
void cancelDelay ()
 
virtual void timeout ()
 
virtual bool msgMouseMove (const MouseMoveMessage &msg)
 
void stopTextToSpeech ()
 
virtual bool msgFocus (const FocusMessage &e)
 
virtual bool msgUnfocus (const UnfocusMessage &e)
 
virtual bool msgMouseEnter (const MouseEnterMessage &e)
 
virtual bool msgMouseLeave (const MouseLeaveMessage &e)
 
virtual bool msgKeypress (const KeypressMessage &e)
 
virtual bool msgMouseDown (const MouseDownMessage &e)
 
virtual bool msgMouseUp (const MouseUpMessage &e)
 
virtual bool msgAction (const ActionMessage &e)
 
virtual bool msgGame (const GameMessage &e)
 
virtual bool msgValue (const ValueMessage &e)
 
virtual bool msgCustom (const Message &msg)
 
- Protected Attributes inherited from Graphics::Views::UIElement
UIElement * _parent
 
Common::Array< UIElement * > _children
 
Common::Rect _innerBounds
 
Bounds _bounds
 
bool _needsRedraw = true
 
Common::String _name
 
Common::String _previousSaid
 

Detailed Description

Base for the party management screens, which are all drawn inside the bordered window at the bottom of the display, over whatever the title screen left above it

Member Function Documentation

◆ clearWindow()

static void Ultima::Ultima3::Views::WindowView::clearWindow ( GfxSurface &  s)
staticprotected

Blanks the inside of the window

◆ drawBorder()

static void Ultima::Ultima3::Views::WindowView::drawBorder ( GfxSurface &  s)
staticprotected

Draws the window border, which is magenta in the original

◆ drawSpacePrompt()

static void Ultima::Ultima3::Views::WindowView::drawSpacePrompt ( GfxSurface &  s)
staticprotected

Draws the "Press <Space>" label on the bottom border

◆ isSpaceKey()

static bool Ultima::Ultima3::Views::WindowView::isSpaceKey ( const KeypressMessage &  msg)
staticprotected

Returns true if the keypress is the space bar


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