Back to index

bamf  0.2.120
Classes | Defines | Typedefs | Functions
bamf-legacy-window-test.h File Reference
#include <stdlib.h>
#include <glib.h>
#include <glib-object.h>
#include "bamf-application.h"
#include "bamf-window.h"
#include "bamf-legacy-window.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BamfLegacyWindowTest
struct  _BamfLegacyWindowTestClass

Defines

#define BAMF_TYPE_LEGACY_WINDOW_TEST   (bamf_legacy_window_test_get_type ())
#define BAMF_LEGACY_WINDOW_TEST(obj)
#define BAMF_LEGACY_WINDOW_TEST_CLASS(klass)
#define BAMF_IS_LEGACY_WINDOW_TEST(obj)
#define BAMF_IS_LEGACY_WINDOW_TEST_CLASS(klass)
#define BAMF_LEGACY_WINDOW_TEST_GET_CLASS(obj)

Typedefs

typedef struct _BamfLegacyWindowTest
typedef struct _BamfLegacyWindowTestClass

Functions

GType bamf_legacy_window_test_get_type (void) G_GNUC_CONST
gint bamf_legacy_window_test_get_pid (BamfLegacyWindow *legacy_window)
guint32 bamf_legacy_window_test_get_xid (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_attention (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_needs_attention (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_active (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_active (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_desktop (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_desktop (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_skip (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_skip_tasklist (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_name (BamfLegacyWindowTest *self, char *val)
void bamf_legacy_window_test_set_geometry (BamfLegacyWindowTest *self, int x, int y, int width, int height)
void bamf_legacy_window_test_set_maximized (BamfLegacyWindowTest *self, BamfWindowMaximizationType maximized)
void bamf_legacy_window_test_set_application_id (BamfLegacyWindowTest *self, const char *id)
void bamf_legacy_window_test_set_unique_bus_name (BamfLegacyWindowTest *self, const char *bus_name)
void bamf_legacy_window_test_set_dbus_menu_object_path (BamfLegacyWindowTest *self, const char *object_path)
void bamf_legacy_window_test_close (BamfLegacyWindowTest *self)
BamfLegacyWindowTest * bamf_legacy_window_test_new (guint32 xid, gchar *name, gchar *klass, gchar *exec)

Class Documentation

struct _BamfLegacyWindowTest

Definition at line 51 of file bamf-legacy-window-test.h.

Class Members
char * application_id
char * dbus_menu_object_path
char * exec
GdkRectangle geometry
gboolean is_active
gboolean is_desktop
gboolean is_skip
char * klass
BamfWindowMaximizationType maximized
char * name
gboolean needs_attention
BamfLegacyWindow parent
gint pid
char * unique_bus_name
guint32 xid

Define Documentation

#define BAMF_IS_LEGACY_WINDOW_TEST (   obj)
Value:
(G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
       BAMF_TYPE_LEGACY_WINDOW_TEST))

Definition at line 39 of file bamf-legacy-window-test.h.

#define BAMF_IS_LEGACY_WINDOW_TEST_CLASS (   klass)
Value:
(G_TYPE_CHECK_CLASS_TYPE ((klass),\
       BAMF_TYPE_LEGACY_WINDOW_TEST))

Definition at line 42 of file bamf-legacy-window-test.h.

#define BAMF_LEGACY_WINDOW_TEST (   obj)
Value:
(G_TYPE_CHECK_INSTANCE_CAST ((obj),\
       BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTest))

Definition at line 33 of file bamf-legacy-window-test.h.

#define BAMF_LEGACY_WINDOW_TEST_CLASS (   klass)
Value:
(G_TYPE_CHECK_CLASS_CAST ((klass),\
       BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTestClass))

Definition at line 36 of file bamf-legacy-window-test.h.

Value:
(G_TYPE_INSTANCE_GET_CLASS ((obj),\
       BAMF_TYPE_LEGACY_WINDOW_TEST, BamfLegacyWindowTestClass))

Definition at line 45 of file bamf-legacy-window-test.h.

Definition at line 31 of file bamf-legacy-window-test.h.


Typedef Documentation

typedef struct _BamfLegacyWindowTest

Definition at line 48 of file bamf-legacy-window-test.h.

Definition at line 49 of file bamf-legacy-window-test.h.


Function Documentation

void bamf_legacy_window_test_close ( BamfLegacyWindowTest *  self)

Definition at line 230 of file bamf-legacy-window-test.c.

{
  g_signal_emit_by_name (self, "closed");
}

Here is the caller graph for this function:

gint bamf_legacy_window_test_get_pid ( BamfLegacyWindow *  legacy_window)

Definition at line 25 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return  self->pid;
}

Here is the caller graph for this function:

guint32 bamf_legacy_window_test_get_xid ( BamfLegacyWindow *  legacy_window)

Definition at line 35 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->xid;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_is_active ( BamfLegacyWindow *  legacy_window)

Definition at line 77 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_active;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_is_desktop ( BamfLegacyWindow *  legacy_window)

Definition at line 98 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_desktop;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_is_skip_tasklist ( BamfLegacyWindow *  legacy_window)

Definition at line 119 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_skip;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_needs_attention ( BamfLegacyWindow *  legacy_window)

Definition at line 56 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->needs_attention;
}

Here is the caller graph for this function:

BamfLegacyWindowTest* bamf_legacy_window_test_new ( guint32  xid,
gchar *  name,
gchar *  klass,
gchar *  exec 
)

Definition at line 322 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = g_object_new (BAMF_TYPE_LEGACY_WINDOW_TEST, NULL);
  self->xid = xid;
  self->name = g_strdup (name);
  self->klass = g_strdup (klass);
  self->exec = g_strdup (exec);

  return self;
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_active ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 66 of file bamf-legacy-window-test.c.

{
  if (self->is_active == val)
    return;

  self->is_active = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_application_id ( BamfLegacyWindowTest *  self,
const char *  id 
)

Definition at line 260 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->application_id = g_strdup (id);
}
void bamf_legacy_window_test_set_attention ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 45 of file bamf-legacy-window-test.c.

{
  if (self->needs_attention == val)
    return;

  self->needs_attention = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_dbus_menu_object_path ( BamfLegacyWindowTest *  self,
const char *  object_path 
)

Definition at line 276 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->dbus_menu_object_path = g_strdup (object_path);
}
void bamf_legacy_window_test_set_desktop ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 87 of file bamf-legacy-window-test.c.

{
  if (self->is_desktop == val)
    return;

  self->is_desktop = val;

  g_signal_emit_by_name (self, "state-changed");
}
void bamf_legacy_window_test_set_geometry ( BamfLegacyWindowTest *  self,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 236 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->geometry.x = x;
  self->geometry.y = y;
  self->geometry.width = width;
  self->geometry.height = height;
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_GEOMETRY_CHANGED);
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_maximized ( BamfLegacyWindowTest *  self,
BamfWindowMaximizationType  maximized 
)

Definition at line 249 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->maximized = maximized;
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_GEOMETRY_CHANGED);
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_STATE_CHANGED);
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_name ( BamfLegacyWindowTest *  self,
char *  val 
)

Definition at line 129 of file bamf-legacy-window-test.c.

{
  if (g_strcmp0 (self->name, val) == 0)
    return;

  self->name = val;

  g_signal_emit_by_name (self, "name-changed");
}
void bamf_legacy_window_test_set_skip ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 108 of file bamf-legacy-window-test.c.

{
  if (self->is_skip == val)
    return;

  self->is_skip = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_unique_bus_name ( BamfLegacyWindowTest *  self,
const char *  bus_name 
)

Definition at line 268 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->unique_bus_name = g_strdup (bus_name);
}