Class

WPEPlatformDisplay

Description

abstract class WPEPlatform.Display : GObject.Object
{
  priv: WPEDisplayPrivate*
}

No description available.

Ancestors

Functions

wpe_display_get_default

Get the default display.

wpe_display_get_primary

Get the primary display. By default, the first WPEDisplay that is created is set as primary display. This is the desired behavior in most of the cases, but you can set any WPEDisplay as primary calling wpe_display_set_primary() if needed.

Instance methods

wpe_display_connect

Connect the display to the native system.

wpe_display_get_drm_device

Get the DRM device of display.

wpe_display_get_drm_render_node

Get the DRM render node of display.

wpe_display_get_egl_display

Get the EGLDisplay of display.

wpe_display_get_keymap

Get the WPEKeymap of display.

wpe_display_get_monitor

Get the monitor of display at index.

wpe_display_get_n_monitors

Get the number of monitors of display.

wpe_display_get_preferred_dma_buf_formats

Get the list of preferred DMA-BUF buffer formats for display.

wpe_display_monitor_added

Emit the signal WPEDisplay::monitor-added.

wpe_display_monitor_removed

Emit the signal WPEDisplay::monitor-removed. Note that wpe_monitor_invalidate() is called before the signal is emitted.

wpe_display_set_primary

Set display as the primary display.

wpe_display_use_explicit_sync

Get whether explicit sync should be used with display for supported buffers.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

WPEPlatform.Display::monitor-added

Emitted when a monitor is added.

WPEPlatform.Display::monitor-removed

Emitted after a monitor is removed. Note that the monitor is always invalidated before this signal is emitted.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WPEPlatformDisplayClass {
  GObjectClass parent_class;
  gboolean (* connect) (
    WPEDisplay* display,
    GError** error
  );
  WPEView* (* create_view) (
    WPEDisplay* display
  );
  gpointer (* get_egl_display) (
    WPEDisplay* display,
    GError** error
  );
  WPEKeymap* (* get_keymap) (
    WPEDisplay* display,
    GError** error
  );
  WPEBufferDMABufFormats* (* get_preferred_dma_buf_formats) (
    WPEDisplay* display
  );
  guint (* get_n_monitors) (
    WPEDisplay* display
  );
  WPEMonitor* (* get_monitor) (
    WPEDisplay* display,
    guint index
  );
  const char* (* get_drm_device) (
    WPEDisplay* display
  );
  const char* (* get_drm_render_node) (
    WPEDisplay* display
  );
  gboolean (* use_explicit_sync) (
    WPEDisplay* display
  );
  WPEInputMethodContext* (* create_input_method_context) (
    WPEDisplay* display
  );
  None padding;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

connect: gboolean (* connect) ( WPEDisplay* display, GError** error )

No description available.

create_view: WPEView* (* create_view) ( WPEDisplay* display )

No description available.

get_egl_display: gpointer (* get_egl_display) ( WPEDisplay* display, GError** error )

No description available.

get_keymap: WPEKeymap* (* get_keymap) ( WPEDisplay* display, GError** error )

No description available.

get_preferred_dma_buf_formats: WPEBufferDMABufFormats* (* get_preferred_dma_buf_formats) ( WPEDisplay* display )

No description available.

get_n_monitors: guint (* get_n_monitors) ( WPEDisplay* display )

No description available.

get_monitor: WPEMonitor* (* get_monitor) ( WPEDisplay* display, guint index )

No description available.

get_drm_device: const char* (* get_drm_device) ( WPEDisplay* display )

No description available.

get_drm_render_node: const char* (* get_drm_render_node) ( WPEDisplay* display )

No description available.

use_explicit_sync: gboolean (* use_explicit_sync) ( WPEDisplay* display )

No description available.

create_input_method_context: WPEInputMethodContext* (* create_input_method_context) ( WPEDisplay* display )

No description available.

padding: None

No description available.

Virtual methods

WPEPlatform.DisplayClass.connect

Connect the display to the native system.

WPEPlatform.DisplayClass.create_view
No description available.

WPEPlatform.DisplayClass.get_drm_device

Get the DRM device of display.

WPEPlatform.DisplayClass.get_drm_render_node

Get the DRM render node of display.

WPEPlatform.DisplayClass.get_egl_display

Get the EGLDisplay of display.

WPEPlatform.DisplayClass.get_keymap

Get the WPEKeymap of display.

WPEPlatform.DisplayClass.get_monitor

Get the monitor of display at index.

WPEPlatform.DisplayClass.get_n_monitors

Get the number of monitors of display.

WPEPlatform.DisplayClass.get_preferred_dma_buf_formats

Get the list of preferred DMA-BUF buffer formats for display.

WPEPlatform.DisplayClass.use_explicit_sync

Get whether explicit sync should be used with display for supported buffers.