RhiWidgetMixin
Sub classes
| Name | Children | Inherits |
|---|---|---|
| RhiWidget prettyqt.widgets.rhiwidget Widget for rendering 3D graphics via the Qt Rendering Hardware Interface. |
Base classes
| Name | Children | Inherits |
|---|---|---|
| WidgetMixin prettyqt.widgets.widget |
||
| object builtins The base class of the class hierarchy. |
⋔ Inheritance diagram
graph TD
1064262194["widgets.RhiWidgetMixin"]
829357528["widgets.WidgetMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
625385617["gui.PaintDeviceMixin"]
829357528 --> 1064262194
3227531497 --> 829357528
2751680898 --> 3227531497
625385617 --> 829357528
2751680898 --> 625385617
2751680898 --> 829357528
2751680898 --> 1064262194
🛈 DocStrings
Bases: WidgetMixin, _RhiWidgetBase
Source code in prettyqt/widgets/rhiwidget.py
get_api() -> ApiStr
get_color_buffer_format() -> TextureFormatStr
get_fixed_color_buffer_size() -> core.Size
set_api(api: ApiStr | mod.Api)
Set the graphics API to use.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api
|
ApiStr | Api
|
graphics API |
required |
set_color_buffer_format(fmt: TextureFormatStr | mod.TextureFormat)
Set the texture format for the color buffer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fmt
|
TextureFormatStr | TextureFormat
|
texture format |
required |