DSScreenText.h

Classes

DSScreenText -- Implementation of a relative screen pos. DSText (full description)

class DSScreenText : public DSText , public DisplayShapeWithCoords

Interface

Public Members
DSScreenText()
DSScreenText(const Record& settings, PixelCanvas* pc)
DSScreenText(DSPixelText& other, PixelCanvas* pc)
DSScreenText(DSWorldText& other)
virtual ~DSScreenText()
virtual void recalculateScreenPosition()
virtual Bool setOptions(const Record& settings)
virtual Record getOptions()
virtual void move(const Float& dX, const Float& dY)
virtual void setCenter(const Float& xPos, const Float& yPos)
virtual Record getRawOptions()
Private Members
virtual Vector<Float> relToScreen(const Vector<Float>& rel)
virtual Vector<Float> screenToRel(const Vector<Float>& screen)
virtual void updateRC()

Description

Member Description

DSScreenText()

DSScreenText(const Record& settings, PixelCanvas* pc)

DSScreenText(DSPixelText& other, PixelCanvas* pc)

DSScreenText(DSWorldText& other)

virtual ~DSScreenText()

virtual void recalculateScreenPosition()

virtual Bool setOptions(const Record& settings)

virtual Record getOptions()

virtual void move(const Float& dX, const Float& dY)

These are so we can monitor if the text is moved and update our relative position

virtual void setCenter(const Float& xPos, const Float& yPos)

virtual Record getRawOptions()

virtual Vector<Float> relToScreen(const Vector<Float>& rel)

virtual Vector<Float> screenToRel(const Vector<Float>& screen)

virtual void updateRC()