BamfWindow
BamfWindow — The base class for all windows
|
|
Object Hierarchy
GObject
╰── GInitiallyUnowned
╰── BamfView
╰── BamfWindow
Description
BamfWindow is the base class that all windows need to derive from.
Functions
bamf_window_get_transient ()
BamfWindow *
bamf_window_get_transient (BamfWindow *self
);
Returns
A transient for this BamfWindow.
[transfer none][allow-none]
bamf_window_get_xid ()
guint32
bamf_window_get_xid (BamfWindow *self
);
bamf_window_get_pid ()
guint32
bamf_window_get_pid (BamfWindow *self
);
bamf_window_get_monitor ()
gint
bamf_window_get_monitor (BamfWindow *self
);
bamf_window_get_utf8_prop ()
gchar *
bamf_window_get_utf8_prop (BamfWindow *self
,
const char *prop
);
bamf_window_last_active ()
time_t
bamf_window_last_active (BamfWindow *self
);
Types and Values
BAMF_TYPE_WINDOW
#define BAMF_TYPE_WINDOW (bamf_window_get_type ())
BAMF_WINDOW_SIGNAL_MONITOR_CHANGED
#define BAMF_WINDOW_SIGNAL_MONITOR_CHANGED "monitor-changed"
BAMF_WINDOW_SIGNAL_MAXIMIZED_CHANGED
#define BAMF_WINDOW_SIGNAL_MAXIMIZED_CHANGED "maximized-changed"
enum BamfWindowMaximizationType
struct BamfWindowClass
struct BamfWindowClass {
BamfViewClass parent_class;
BamfWindow * (*get_transient) (BamfWindow *self);
BamfWindowType (*get_window_type) (BamfWindow *self);
guint32 (*get_xid) (BamfWindow *self);
guint32 (*get_pid) (BamfWindow *self);
gint (*get_monitor) (BamfWindow *self);
gchar * (*get_utf8_prop) (BamfWindow *self, const char* prop);
BamfWindowMaximizationType (*maximized) (BamfWindow *self);
time_t (*last_active) (BamfWindow *self);
/*< signals >*/
void (*monitor_changed) (BamfWindow *window, gint old_value, gint new_value);
void (*maximized_changed) (BamfWindow *window, gint old_value, gint new_value);
};
BamfWindow
typedef struct _BamfWindow BamfWindow;
Signal Details
The “maximized-changed”
signal
void
user_function (BamfWindow *bamfwindow,
int arg1,
int arg2,
gpointer user_data)
Flags: Run First
The “monitor-changed”
signal
void
user_function (BamfWindow *bamfwindow,
int arg1,
int arg2,
gpointer user_data)
Flags: Run First