LibreOffice
LibreOffice 24.8 SDK API Reference
 
Loading...
Searching...
No Matches
XDevice Interface Referencepublished

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

import "XDevice.idl";

Inheritance diagram for XDevice:
XInterface

Public Member Functions

XGraphics createGraphics ()
 creates a new graphics whose output operation is directed to this device.
 
XDevice createDevice ([in] long nWidth, [in] long nHeight)
 creates a new device which is compatible with this one.
 
com::sun::star::awt::DeviceInfo getInfo ()
 returns information about the device.
 
sequence< FontDescriptorgetFontDescriptors ()
 returns the list of available font descriptors.
 
com::sun::star::awt::XFont getFont ([in] FontDescriptor aDescriptor)
 returns information about a font offered by this device.
 
XBitmap createBitmap ([in] long nX, [in] long nY, [in] long nWidth, [in] long nHeight)
 creates a bitmap with the current device depth.
 
XDisplayBitmap createDisplayBitmap ([in] XBitmap Bitmap)
 creates a device compatible bitmap.
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object.
 
void acquire ()
 increases the reference counter by one.
 
void release ()
 decreases the reference counter by one.
 

Detailed Description

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

Member Function Documentation

◆ createBitmap()

XBitmap createBitmap ( [in] long nX,
[in] long nY,
[in] long nWidth,
[in] long nHeight )

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.

◆ createDevice()

XDevice createDevice ( [in] long nWidth,
[in] long nHeight )

creates a new device which is compatible with this one.

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

◆ createDisplayBitmap()

XDisplayBitmap createDisplayBitmap ( [in] XBitmap Bitmap)

creates a device compatible bitmap.

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

◆ createGraphics()

XGraphics createGraphics ( )

creates a new graphics whose output operation is directed to this device.

◆ getFont()

com::sun::star::awt::XFont getFont ( [in] FontDescriptor aDescriptor)

returns information about a font offered by this device.

Returns
the font of this device.
Parameters
aDescriptorspecifies the description of a font. The unit of measure is pixel for this device.

◆ getFontDescriptors()

sequence< FontDescriptor > getFontDescriptors ( )

returns the list of available font descriptors.

◆ getInfo()

returns information about the device.


The documentation for this interface was generated from the following file: