2009-10-27 11:27:45 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2009-08-04 16:08:59 -04:00
|
|
|
#ifndef __SHELL_GENERIC_CONTAINER_H__
|
|
|
|
#define __SHELL_GENERIC_CONTAINER_H__
|
|
|
|
|
2010-03-02 15:21:22 -05:00
|
|
|
#include "st.h"
|
2009-08-04 16:08:59 -04:00
|
|
|
|
|
|
|
#define SHELL_TYPE_GENERIC_CONTAINER (shell_generic_container_get_type ())
|
|
|
|
#define SHELL_GENERIC_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHELL_TYPE_GENERIC_CONTAINER, ShellGenericContainer))
|
|
|
|
#define SHELL_GENERIC_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_GENERIC_CONTAINER, ShellGenericContainerClass))
|
|
|
|
#define SHELL_IS_GENERIC_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHELL_TYPE_GENERIC_CONTAINER))
|
|
|
|
#define SHELL_IS_GENERIC_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_GENERIC_CONTAINER))
|
|
|
|
#define SHELL_GENERIC_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_GENERIC_CONTAINER, ShellGenericContainerClass))
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
float min_size;
|
|
|
|
float natural_size;
|
|
|
|
|
|
|
|
/* <private> */
|
|
|
|
guint _refcount;
|
|
|
|
} ShellGenericContainerAllocation;
|
|
|
|
|
|
|
|
#define SHELL_TYPE_GENERIC_CONTAINER_ALLOCATION (shell_generic_container_allocation_get_type ())
|
|
|
|
GType shell_generic_container_allocation_get_type (void);
|
|
|
|
|
|
|
|
typedef struct _ShellGenericContainer ShellGenericContainer;
|
|
|
|
typedef struct _ShellGenericContainerClass ShellGenericContainerClass;
|
|
|
|
|
|
|
|
typedef struct _ShellGenericContainerPrivate ShellGenericContainerPrivate;
|
|
|
|
|
|
|
|
struct _ShellGenericContainer
|
|
|
|
{
|
2012-02-16 13:14:53 -05:00
|
|
|
StWidget parent;
|
2009-08-04 16:08:59 -04:00
|
|
|
|
|
|
|
ShellGenericContainerPrivate *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _ShellGenericContainerClass
|
|
|
|
{
|
2012-02-16 13:14:53 -05:00
|
|
|
StWidgetClass parent_class;
|
2009-08-04 16:08:59 -04:00
|
|
|
};
|
|
|
|
|
2010-04-29 11:15:22 -04:00
|
|
|
GType shell_generic_container_get_type (void) G_GNUC_CONST;
|
2009-08-04 16:08:59 -04:00
|
|
|
|
2010-04-29 11:15:22 -04:00
|
|
|
guint shell_generic_container_get_n_skip_paint (ShellGenericContainer *self);
|
2010-02-22 16:22:38 -05:00
|
|
|
|
2010-04-29 11:15:22 -04:00
|
|
|
gboolean shell_generic_container_get_skip_paint (ShellGenericContainer *self,
|
2010-09-14 20:56:34 -04:00
|
|
|
ClutterActor *child);
|
2010-04-29 11:15:22 -04:00
|
|
|
void shell_generic_container_set_skip_paint (ShellGenericContainer *self,
|
2010-09-14 20:56:34 -04:00
|
|
|
ClutterActor *child,
|
2010-04-29 11:15:22 -04:00
|
|
|
gboolean skip);
|
2009-11-26 12:13:16 -05:00
|
|
|
|
2009-08-04 16:08:59 -04:00
|
|
|
#endif /* __SHELL_GENERIC_CONTAINER_H__ */
|