Browse Source

pyDynamicMap header tweaks...

More spurious virtual keywords removed
Adam Johnson 11 years ago
parent
commit
088cf740a6
  1. 62
      Sources/Plasma/FeatureLib/pfPython/pyDynamicText.h

62
Sources/Plasma/FeatureLib/pfPython/pyDynamicText.h

@ -78,8 +78,8 @@ private:
uint16_t fWrapWidth; uint16_t fWrapWidth;
uint16_t fWrapHeight; uint16_t fWrapHeight;
virtual plDynamicTextMsg* ICreateDTMsg(); plDynamicTextMsg* ICreateDTMsg();
virtual void IInit(); void IInit();
protected: protected:
pyDynamicText(); pyDynamicText();
@ -90,8 +90,8 @@ public:
// required functions for PyObject interoperability // required functions for PyObject interoperability
PYTHON_CLASS_NEW_FRIEND(ptDynamicMap); PYTHON_CLASS_NEW_FRIEND(ptDynamicMap);
PYTHON_CLASS_NEW_DEFINITION; PYTHON_CLASS_NEW_DEFINITION;
static PyObject *New(pyKey& key); static PyObject* New(pyKey& key);
static PyObject *New(plKey key); static PyObject* New(plKey key);
PYTHON_CLASS_CHECK_DEFINITION; // returns true if the PyObject is a pyDynamicText object PYTHON_CLASS_CHECK_DEFINITION; // returns true if the PyObject is a pyDynamicText object
PYTHON_CLASS_CONVERT_FROM_DEFINITION(pyDynamicText); // converts a PyObject to a pyDynamicText (throws error if not correct type) PYTHON_CLASS_CONVERT_FROM_DEFINITION(pyDynamicText); // converts a PyObject to a pyDynamicText (throws error if not correct type)
@ -100,39 +100,39 @@ public:
// methods that will be exposed to Python // methods that will be exposed to Python
// message stuff // message stuff
virtual void SetSender(pyKey& selfKey); void SetSender(pyKey& selfKey);
virtual void ClearReceivers(); void ClearReceivers();
virtual void AddReceiver(pyKey& key); void AddReceiver(pyKey& key);
virtual void SetNetPropagate(bool propagate); void SetNetPropagate(bool propagate);
virtual void SetNetForce(bool force); void SetNetForce(bool force);
// dynamicText commands // dynamicText commands
virtual void ClearToColor( pyColor& color ); void ClearToColor(pyColor& color );
virtual void Flush( void ); void Flush();
virtual void SetTextColor( pyColor& color ); void SetTextColor(pyColor& color );
virtual void SetTextColor2( pyColor& color, bool blockRGB ); void SetTextColor2(pyColor& color, bool blockRGB );
virtual void SetFont( const char *facename, int16_t size ); void SetFont(const char *facename, int16_t size );
virtual void FillRect( uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, pyColor& color ); void FillRect(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, pyColor& color );
virtual void FrameRect( uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, pyColor& color ); void FrameRect(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, pyColor& color );
virtual void SetClipping( uint16_t clipLeft, uint16_t clipTop, uint16_t clipRight, uint16_t clipBottom); void SetClipping(uint16_t clipLeft, uint16_t clipTop, uint16_t clipRight, uint16_t clipBottom);
virtual void UnsetClipping(); void UnsetClipping();
virtual void SetWrapping( uint16_t wrapWidth, uint16_t wrapHeight ); void SetWrapping(uint16_t wrapWidth, uint16_t wrapHeight);
virtual void UnsetWrapping(); void UnsetWrapping();
virtual void DrawText( int16_t x, int16_t y, const plString& text ); void DrawText(int16_t x, int16_t y, const plString& text);
virtual void DrawImage( uint16_t x, uint16_t y, pyImage& image, bool respectAlpha ); void DrawImage(uint16_t x, uint16_t y, pyImage& image, bool respectAlpha);
virtual void DrawImageClipped( uint16_t x, uint16_t y, pyImage& image, uint16_t cx, uint16_t cy, uint16_t cw, uint16_t ch, void DrawImageClipped(uint16_t x, uint16_t y, pyImage& image, uint16_t cx, uint16_t cy,
bool respectAlpha ); uint16_t cw, uint16_t ch, bool respectAlpha);
virtual void PurgeImage( void ); void PurgeImage();
// Actually return the visible width and height, since that's what you want to be drawing to // Actually return the visible width and height, since that's what you want to be drawing to
virtual uint16_t GetWidth( void ); uint16_t GetWidth();
virtual uint16_t GetHeight( void ); uint16_t GetHeight();
virtual void CalcTextExtents(const plString& text, uint16_t& width, uint16_t& height); void CalcTextExtents(const plString& text, uint16_t& width, uint16_t& height);
virtual void SetJustify(uint8_t justify); void SetJustify(uint8_t justify);
virtual void SetLineSpacing(int16_t spacing); void SetLineSpacing(int16_t spacing);
virtual plKey GetImage(); plKey GetImage();
}; };
#endif // _pyDynamicText_h_ #endif // _pyDynamicText_h_

Loading…
Cancel
Save