OpenVROverlay

OpenVROverlay

Functions

OpenVROverlay * openvr_overlay_new ()
gboolean openvr_overlay_clear_texture ()
gboolean openvr_overlay_create ()
gboolean openvr_overlay_create_for_dashboard ()
gboolean openvr_overlay_create_width ()
gboolean openvr_overlay_destroy ()
gboolean openvr_overlay_enable_mouse_input ()
gboolean openvr_overlay_get_color ()
gboolean openvr_overlay_get_size_meters ()
gboolean openvr_overlay_get_size_pixels ()
gboolean openvr_overlay_get_transform_absolute ()
gboolean openvr_overlay_get_width_meters ()
gboolean openvr_overlay_hide ()
gboolean openvr_overlay_is_valid ()
gboolean openvr_overlay_is_visible ()
void openvr_overlay_poll_event ()
gboolean openvr_overlay_set_alpha ()
gboolean openvr_overlay_set_cairo_surface_raw ()
gboolean openvr_overlay_set_color ()
gboolean openvr_overlay_set_gdk_pixbuf_raw ()
void openvr_overlay_set_keyboard_position ()
gboolean openvr_overlay_set_mouse_scale ()
gboolean openvr_overlay_set_raw ()
gboolean openvr_overlay_set_sort_order ()
gboolean openvr_overlay_set_transform_absolute ()
gboolean openvr_overlay_set_translation ()
gboolean openvr_overlay_set_visibility ()
gboolean openvr_overlay_set_width_meters ()
gboolean openvr_overlay_show ()
gboolean openvr_overlay_show_keyboard ()
gboolean openvr_overlay_thumbnail_is_visible ()
VROverlayHandle_t openvr_overlay_get_handle ()
gboolean openvr_overlay_get_model ()
void openvr_overlay_set_flip_y ()
gboolean openvr_overlay_set_model ()
bool openvr_overlay_submit_texture ()

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── OpenVROverlay

Includes

#include <gxr.h>

Description

Functions

openvr_overlay_new ()

OpenVROverlay *
openvr_overlay_new (void);

openvr_overlay_clear_texture ()

gboolean
openvr_overlay_clear_texture (OpenVROverlay *self);

openvr_overlay_create ()

gboolean
openvr_overlay_create (OpenVROverlay *self,
                       gchar *key,
                       gchar *name);

openvr_overlay_create_for_dashboard ()

gboolean
openvr_overlay_create_for_dashboard (OpenVROverlay *self,
                                     gchar *key,
                                     gchar *name);

openvr_overlay_create_width ()

gboolean
openvr_overlay_create_width (OpenVROverlay *self,
                             gchar *key,
                             gchar *name,
                             float meters);

openvr_overlay_destroy ()

gboolean
openvr_overlay_destroy (OpenVROverlay *self);

openvr_overlay_enable_mouse_input ()

gboolean
openvr_overlay_enable_mouse_input (OpenVROverlay *self);

openvr_overlay_get_color ()

gboolean
openvr_overlay_get_color (OpenVROverlay *self,
                          graphene_vec3_t *color);

openvr_overlay_get_size_meters ()

gboolean
openvr_overlay_get_size_meters (OpenVROverlay *self,
                                graphene_vec2_t *size);

openvr_overlay_get_size_pixels ()

gboolean
openvr_overlay_get_size_pixels (OpenVROverlay *self,
                                OpenVRPixelSize *size);

openvr_overlay_get_transform_absolute ()

gboolean
openvr_overlay_get_transform_absolute (OpenVROverlay *self,
                                       graphene_matrix_t *mat);

openvr_overlay_get_width_meters ()

gboolean
openvr_overlay_get_width_meters (OpenVROverlay *self,
                                 float *width);

openvr_overlay_hide ()

gboolean
openvr_overlay_hide (OpenVROverlay *self);

openvr_overlay_is_valid ()

gboolean
openvr_overlay_is_valid (OpenVROverlay *self);

openvr_overlay_is_visible ()

gboolean
openvr_overlay_is_visible (OpenVROverlay *self);

openvr_overlay_poll_event ()

void
openvr_overlay_poll_event (OpenVROverlay *self);

openvr_overlay_set_alpha ()

gboolean
openvr_overlay_set_alpha (OpenVROverlay *self,
                          float alpha);

openvr_overlay_set_cairo_surface_raw ()

gboolean
openvr_overlay_set_cairo_surface_raw (OpenVROverlay *self,
                                      cairo_surface_t *surface);

openvr_overlay_set_color ()

gboolean
openvr_overlay_set_color (OpenVROverlay *self,
                          const graphene_vec3_t *color);

openvr_overlay_set_gdk_pixbuf_raw ()

gboolean
openvr_overlay_set_gdk_pixbuf_raw (OpenVROverlay *self,
                                   GdkPixbuf *pixbuf);

openvr_overlay_set_keyboard_position ()

void
openvr_overlay_set_keyboard_position (OpenVROverlay *self,
                                      graphene_vec2_t *top_left,
                                      graphene_vec2_t *bottom_right);

openvr_overlay_set_mouse_scale ()

gboolean
openvr_overlay_set_mouse_scale (OpenVROverlay *self,
                                float width,
                                float height);

openvr_overlay_set_raw ()

gboolean
openvr_overlay_set_raw (OpenVROverlay *self,
                        guchar *pixels,
                        uint32_t width,
                        uint32_t height,
                        uint32_t depth);

openvr_overlay_set_sort_order ()

gboolean
openvr_overlay_set_sort_order (OpenVROverlay *self,
                               uint32_t sort_order);

openvr_overlay_set_transform_absolute ()

gboolean
openvr_overlay_set_transform_absolute (OpenVROverlay *self,
                                       graphene_matrix_t *mat);

openvr_overlay_set_translation ()

gboolean
openvr_overlay_set_translation (OpenVROverlay *self,
                                graphene_point3d_t *translation);

openvr_overlay_set_visibility ()

gboolean
openvr_overlay_set_visibility (OpenVROverlay *self,
                               gboolean visibility);

openvr_overlay_set_width_meters ()

gboolean
openvr_overlay_set_width_meters (OpenVROverlay *self,
                                 float meters);

openvr_overlay_show ()

gboolean
openvr_overlay_show (OpenVROverlay *self);

openvr_overlay_show_keyboard ()

gboolean
openvr_overlay_show_keyboard (OpenVROverlay *self);

openvr_overlay_thumbnail_is_visible ()

gboolean
openvr_overlay_thumbnail_is_visible (OpenVROverlay *self);

openvr_overlay_get_handle ()

VROverlayHandle_t
openvr_overlay_get_handle (OpenVROverlay *self);

openvr_overlay_get_model ()

gboolean
openvr_overlay_get_model (OpenVROverlay *self,
                          gchar *name,
                          graphene_vec4_t *color,
                          uint32_t *id);

openvr_overlay_set_flip_y ()

void
openvr_overlay_set_flip_y (OpenVROverlay *self,
                           gboolean flip_y);

openvr_overlay_set_model ()

gboolean
openvr_overlay_set_model (OpenVROverlay *self,
                          gchar *name,
                          graphene_vec4_t *color);

openvr_overlay_submit_texture ()

bool
openvr_overlay_submit_texture (OpenVROverlay *self,
                               GulkanClient *client,
                               GulkanTexture *texture);

Types and Values

OpenVROverlay

typedef struct _OpenVROverlay OpenVROverlay;

OPENVR_TYPE_OVERLAY

#define OPENVR_TYPE_OVERLAY openvr_overlay_get_type()

struct OpenVROverlayClass

struct OpenVROverlayClass {
  GObjectClass parent_class;
};

OpenVRPixelSize

typedef struct {
  uint32_t width;
  uint32_t height;
} OpenVRPixelSize;

Size in pixels.

Members

uint32_t width;

Width

 

uint32_t height;

Height

 

Signal Details

The “button-press-event” signal

void
user_function (OpenVROverlay *openvroverlay,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “button-release-event” signal

void
user_function (OpenVROverlay *openvroverlay,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “destroy” signal

void
user_function (OpenVROverlay *openvroverlay,
               gpointer       user_data)

Flags: No Hooks


The “keyboard-close-event” signal

void
user_function (OpenVROverlay *openvroverlay,
               gpointer       user_data)

Flags: Run First


The “keyboard-press-event” signal

void
user_function (OpenVROverlay *openvroverlay,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “motion-notify-event” signal

void
user_function (OpenVROverlay *openvroverlay,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “show” signal

void
user_function (OpenVROverlay *openvroverlay,
               gpointer       user_data)

Flags: Run First