ooodev.adapter.awt.toolkit_partial module
- class ooodev.adapter.awt.toolkit_partial.ToolkitPartial(component, interface=com.sun.star.awt.XToolkit)[source]
Bases:
object
Partial class for XToolkit.
- Parameters:
component (XToolkit) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XToolkit)[source]
Constructor
- Parameters:
component (XToolkit) – UNO Component that implements
com.sun.star.awt.XToolkit
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XToolkit
.
- Return type:
None
- create_screen_compatible_device(width, height)[source]
Creates a virtual device that is compatible with the screen.
- Return type:
XDevice
- Parameters:
width (int) –
height (int) –
- create_window(descriptor)[source]
Creates a new window using the given descriptor.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Return type:
XWindowPeer
- Parameters:
descriptor (com.sun.star.awt.WindowDescriptor) –