interface XDevice in module com::sun::star::awt::

(Global Index)

Syntax

interface XDevice : com::sun::star::uno::XInterface ;

Description

provides information about a graphical output device and offers a factory for the graphics which provides write operations on the device.

Method Summary

createGraphics creates a new graphics which output operation direct to this device.

createDevice creates a new device which is compatible with this one.

getInfo

getFontDescriptors

getFont

createBitmap creates a bitmap with the current device depth.
If the specified area does not lie entirely in the device, the bits outside are not specified.

createDisplayBitmap creates a device-compatible bitmap.

Method Details



createGraphics

Syntax

com::sun::star::awt::XGraphics createGraphics ();

Description

creates a new graphics which output operation direct to this device.


createDevice

Syntax

com::sun::star::awt::XDevice createDevice (
long nWidth,
long nHeight );

Description

creates a new device which is compatible with this one.

If the device does not support the GETBITS device capability, this method returns NULL .


getInfo

Syntax

com::sun::star::awt::DeviceInfo getInfo ();

Returns

information about the device.

getFontDescriptors

Syntax

sequence< com::sun::star::awt::FontDescriptor > getFontDescriptors ();

Returns

the list of available font descriptors.

getFont

Syntax

com::sun::star::awt::XFont getFont (
com::sun::star::awt::FontDescriptor aDescriptor );

Returns

information about a font offered by this device.

Parameter aDescriptor

specifies the description of a font. specifies that the unit of measure is pixel for this device.

createBitmap

Syntax

com::sun::star::awt::XBitmap createBitmap (
long nX,
long nY,
long nWidth,
long nHeight );

Description

creates a bitmap with the current device depth.
If the specified area does not lie entirely in the device, the bits outside are not specified.


createDisplayBitmap

Syntax

com::sun::star::awt::XDisplayBitmap createDisplayBitmap (
com::sun::star::awt::XBitmap Bitmap );

Description

creates a device-compatible bitmap.

The data of the bitmap is in process memory instead of in the device, so the output operation is fast.

Top of Page