Constructors & DestructorUse the constructors and destructor in this group to create and destroy objects of class IGrafPort.
![]() |
public:
virtual ~IGrafPort()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
IGrafPort( IGrafDevice* referencedDevice, IColorMap* colormap = & ( IColorMap::defaultColorMap ( ) ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
protected:
IGrafPort()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Accessing the Graphics PortUse the functions in this group to access the graphics port to be registered.
![]() |
public:
virtual const IGrafPort* portForStateUsage() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Adopting and Relinquishing the Device ContextUse the functions in this group to take ownership of the device context or return it to the caller.
![]() |
public:
void adoptDeviceContext(IPresSpaceHandle)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPresSpaceHandle orphanDeviceContext()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Conversion from IRectangle to IGRect2DUse the functions in this group to convert objects of type IRectangle to objects of type IGRect2D.
![]() |
public:
virtual IGRect2D convertRect(const IRectangle) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Converting Values from Pixel to PointUse the function in this group to convert values from pixels (device coordinate) to points (ideal coordinate). Use the functions in this group to convert coordinates from pixels to points.
![]() |
public:
virtual const IGrafMatrix& pixelToPointSize() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Drawing to the Graphics DeviceUse the functions in this group to draw 2D geometric primitives to the graphic device.
![]() |
Use this function to render a geometry, image, or text on the graphics device attached to this IGrafPort object.
public:
void draw( const IGCurve2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGArea& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGEllipse2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGEllipse2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGImage& geometry, const IGImage& theMask)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& theImage, const IGImage& theMask, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& theImage, const IGImage& theMask, const IGRect2D& srcBounds )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& theImage, const IGImage& theMask, const IGRect2D& srcBounds, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& theImage, const IGRect2D& srcBounds )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGLine2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGImage& theImage, const IGRect2D& srcBounds, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGLoop2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGLoop2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGPolygon2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGPolygon2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGPolyline2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGPolyline2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGRect2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw( const IGRect2D& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IGPoint2D draw(const IGTextRun& geometry)
Text that is rendered with either defaultFont, or cases when facename is not specified, would result in an undentified font, or the first font that matches other specified attributes, being used.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
It is not guaranteed that the font would be exactly the same as that loaded through an IFont constructor. The xlfd string, created for font loading while drawing text, might be altered due to text style setting procedures in IText (IText::addStyles).
public:
IGPoint2D draw( const IGTextRun& geometry, const IAttributeState& attributeState, const IGrafMatrix& modelMatrix = IGrafMatrix::identity ( ) )
Text that is rendered with either defaultFont, or cases when facename is not specified, would result in an undentified font, or the first font that matches other specified attributes, being used.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
It is not guaranteed that the font would be exactly the same as that loaded through an IFont constructor. The xlfd string, created for font loading while drawing text, might be altered due to text style setting procedures in IText (IText::addStyles).
public:
void draw(const IGLine2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGImage& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGCurve2D& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
void draw(const IGArea& geometry)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Inverting the Device TransformationUse the function in this group to invert the device tranformation the logical coordinate system.
![]() |
public:
virtual const IGrafMatrix& invertedDeviceTransform() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Modifying the Graphics StateUse the functions in this group to mark the graphics state as in use or not in use. Use the functions in this group to modify the graphic state of this object.
![]() |
public:
virtual void doneWithState() const = 0
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual void useState() const = 0
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Obtaining Information About the Graphics Port and Its StateUse the functions in this group to obtain information about the graphics state such as its attributes, its clipping area, the graphics matrix (IGrafMatrix) of the current graphics port, and the device type.
![]() |
public:
const IAttributeState* attributes() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
const IGArea* clipArea() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual const IPresSpaceHandle& deviceContext()
Get the device context.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual void flush()
Flush the device.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
const IGrafMatrix* matrix(EMatrixKind) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
const IString* portType() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Obtaining IXDC information on AIXUse the functions in this group to obtain IXDC information on AIX.
![]() |
public:
virtual _XDisplay* display() const
Gets the IXDC display information.
| Windows | OS/2 | AIX |
| No | No | Yes |
![]() |
public:
virtual unsigned long drawable() const
Gets the IXDC drawable information.
| Windows | OS/2 | AIX |
| No | No | Yes |
![]() |
public:
virtual _XGC* gc() const
Gets the IXDC gc information.
| Windows | OS/2 | AIX |
| No | No | Yes |
![]() |
enum EGrafPortType { kIBaseRootGrafPort,
kIExtendedRootGrafPort }| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
void adoptOrphanedGrafState(IGrafState* orphan)
IGrafDevice* device()
void setDevice(IGrafDevice* device)
void setState(IGrafState* state)
const IGrafState* state() const