// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _WNT_TextManager_HeaderFile #define _WNT_TextManager_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_WNT_TextManager_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _MFT_TextManager_HeaderFile #include #endif #ifndef _Quantity_Length_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Address_HeaderFile #include #endif #ifndef _Aspect_TypeOfText_HeaderFile #include #endif class WNT_WDriver; class WNT_TextManager : public MFT_TextManager { public: Standard_EXPORT WNT_TextManager(const Standard_Real aPixelToUnit); //! Calls when string drawing is started.
//! with a string aspect :
//! 0 for filled string
//! 1 for stroke string
//! 2 for outline string
//! The origine of the string ,,
//! The orientation of the string ,
//! The medium size of the char ,
//! The Slant of the char ,
Standard_EXPORT virtual void BeginString(const Quantity_Length X,const Quantity_Length Y,const Quantity_PlaneAngle anOrientation,const Quantity_Length aWidth,const Quantity_Length aHeight,const Quantity_PlaneAngle aSlant,const Standard_Integer aPaintType) ; //! Calls when a char drawing is started
//! and give the current string position for this char.
//! and give the relative char position from the beginning
//! of the string.
//! The application can returns FALSE for skipping the char drawing.
Standard_EXPORT virtual Standard_Boolean BeginChar(const Standard_Integer aCharCode,const Quantity_Length X,const Quantity_Length Y) ; //! Calls to defines the current char bounding-box.
//! The application can returns FALSE for ending the char drawing.
Standard_EXPORT virtual Standard_Boolean SetCharBoundingBox(const Quantity_Length X1,const Quantity_Length Y1,const Quantity_Length X2,const Quantity_Length Y2,const Quantity_Length X3,const Quantity_Length Y3,const Quantity_Length X4,const Quantity_Length Y4) ; //! Calls to defines the current char encoding.
//! Warning: The application can returns FALSE for skipping the char drawing.
Standard_EXPORT virtual Standard_Boolean SetCharEncoding(const Standard_CString anEncoding) ; //! Calls to sets the current string position.
//! The application can returns FALSE for ending the char drawing.
Standard_EXPORT virtual Standard_Boolean Moveto(const Quantity_Length X,const Quantity_Length Y) ; //! Calls to drawn to the current string position.
//! The application can returns FALSE for ending the char drawing.
Standard_EXPORT virtual Standard_Boolean Lineto(const Quantity_Length X,const Quantity_Length Y) ; //! Calls to drawn to the current string position.
//! The application can drawn the curve defined by
//! his descriptor P1,P2,P3,P4 or
//! returns FALSE to let the interpretor compute the curve
//! vectors.
Standard_EXPORT virtual Standard_Boolean Curveto(const Quantity_Length X1,const Quantity_Length Y1,const Quantity_Length X2,const Quantity_Length Y2,const Quantity_Length X3,const Quantity_Length Y3,const Quantity_Length X4,const Quantity_Length Y4) ; //! Calls when a char path drawing is ended
Standard_EXPORT virtual void ClosePath() ; //! Calls when a char drawing is ended
//! and give the relative char ending position from the
//! beginning of the string.
//! The application can returns FALSE for skipping the string
//! drawing.
Standard_EXPORT virtual Standard_Boolean EndChar(const Quantity_Length X,const Quantity_Length Y) ; //! Calls when string drawing is ended (Normally the last call).
Standard_EXPORT virtual void EndString() ; //! Called when starting to draw the string
Standard_EXPORT void SetDrawAttribs(const Standard_Address aDrawData) ; //! Sets the current attribs of the text.
Standard_EXPORT void SetTextAttribs(const Standard_Integer aTextColor,const Aspect_TypeOfText aTypeOfText,const Quantity_Length anUnderlinePosition = 0.0) ; friend class WNT_WDriver; DEFINE_STANDARD_RTTI(WNT_TextManager) protected: private: Standard_Real myPixelToUnit; Standard_Integer myDevContext; Standard_Boolean myWin95; Standard_Integer myDevWidth; Standard_Integer myDevHeight; Standard_Integer myUWidth; Standard_Integer myMonoBuf; }; // other Inline functions and methods (like "C++: function call" methods) #endif