XrdWindow

XrdWindow

Functions

Properties

gpointer native Read / Write / Construct
char * title Read / Write / Construct Only

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── G3kObject
        ╰── G3kPlane
            ╰── XrdWindow

Includes

#include <xrd.h>

Description

Functions

xrd_window_add_child ()

void
xrd_window_add_child (XrdWindow *self,
                      XrdWindow *child);

x axis points right, y axis points up.

Parameters

self

The XrdWindow

 

child

An already existing window.

 

offset_center

The offset of the child window's center to the parent window's center in pixels.

 

xrd_window_is_selected ()

gboolean
xrd_window_is_selected (XrdWindow *self);

xrd_window_set_flip_y ()

void
xrd_window_set_flip_y (XrdWindow *self,
                       gboolean flip_y);

xrd_window_set_color ()

void
xrd_window_set_color (XrdWindow *self,
                      const graphene_vec4_t *color);

xrd_window_set_pin ()

void
xrd_window_set_pin (XrdWindow *self,
                    gboolean pinned,
                    gboolean hide_unpinned);

Parameters

self

The XrdWindow

 

pinned

The pin status to set this window to

 

hide_unpinned

If TRUE, the window will be hidden if it is unpinned, and shown if it is pinned. This corresponds to the "show only pinned windows" mode set up in XrdShell. If FALSE, windows are always shown. Note that hide_unpinned only determines initial visibility, and does not keep track of further mode changes.

 

xrd_window_is_pinned ()

gboolean
xrd_window_is_pinned (XrdWindow *self);

xrd_window_close ()

void
xrd_window_close (XrdWindow *self);

Parameters

self

The XrdWindow MUST be called when destroying a window to free its resources.

 

Types and Values

XRD_TYPE_WINDOW

#define XRD_TYPE_WINDOW xrd_window_get_type ()

XrdWindow

typedef struct _XrdWindow XrdWindow;

Property Details

The “native” property

  “native”                   gpointer

A pointer to an (opaque) native window struct.

Owner: XrdWindow

Flags: Read / Write / Construct


The “title” property

  “title”                    char *

Title of the Window.

Owner: XrdWindow

Flags: Read / Write / Construct Only

Default value: "Untitled"

Signal Details

The “button-press-event” signal

void
user_function (XrdWindow *xrdwindow,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “button-release-event” signal

void
user_function (XrdWindow *xrdwindow,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “destroy” signal

void
user_function (XrdWindow *xrdwindow,
               gpointer   user_data)

Flags: No Hooks


The “motion-notify-event” signal

void
user_function (XrdWindow *xrdwindow,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “scroll-event” signal

void
user_function (XrdWindow *xrdwindow,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “show” signal

void
user_function (XrdWindow *xrdwindow,
               gpointer   user_data)

Flags: Run First