// 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 _Xw_WidthMap_HeaderFile #define _Xw_WidthMap_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Xw_WidthMap_HeaderFile #include #endif #ifndef _Standard_Address_HeaderFile #include #endif #ifndef _Standard_Transient_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_Aspect_WidthMap_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Aspect_WidthMapDefinitionError; class Aspect_BadAccess; class Xw_GraphicDevice; class Aspect_WidthMapEntry; class Aspect_WidthMap; //! This class defines a WidthMap object.
class Xw_WidthMap : public Standard_Transient { public: //! Creates a WidthMap with unallocated WidthMapEntry.
//! Warning: Raises if WidthMap creation failed according
//! to the supported hardware
Standard_EXPORT Xw_WidthMap(const Standard_CString Connexion); //! Modifies an entry already defined or Add the Entry
//! in the type map if it don't exist.
//! Warning: Raises if WidthMap size is exceeded,
//! or WidthMap is not defined properly,
//! or WidthMapEntry Index is out of range according
//! to the supported hardware
Standard_EXPORT virtual void SetEntry(const Aspect_WidthMapEntry& Entry) ; //! Modifies all entries from the New Widthmap
//! Warning: Raises if WidthMap size is exceeded,
//! or WidthMap is not defined properly,
//! or One of new WidthMapEntry Index is out of range according
//! to the supported hardware
Standard_EXPORT virtual void SetEntries(const Handle(Aspect_WidthMap)& Widthmap) ; //! Destroies the Widthmap
Standard_EXPORT virtual void Destroy() ; ~Xw_WidthMap() { Destroy(); } //! Returns the Number of Free Widths in the Widthmap
//! depending of the HardWare
//! Warning: Raises if WidthMap is not defined properly
Standard_EXPORT Standard_Integer FreeWidths() const; friend class Xw_GraphicDevice; DEFINE_STANDARD_RTTI(Xw_WidthMap) protected: Standard_EXPORT Xw_WidthMap(); //! Returns extended data typemap structure pointer.
Standard_EXPORT Standard_Address ExtendedWidthMap() const; private: Standard_Address MyExtendedDisplay; Standard_Address MyExtendedWidthMap; }; // other Inline functions and methods (like "C++: function call" methods) #endif