gdl-dock-object.h revision 9da72320667347f97b641753dd3b4591f95df939
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* gdl-dock-object.h - Abstract base class for all dock related objects
*
* This file is part of the GNOME Devtools Libraries.
*
* Copyright (C) 2002 Gustavo Gir�ldez <gustavo.giraldez@gmx.net>
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __GDL_DOCK_OBJECT_H__
#define __GDL_DOCK_OBJECT_H__
/* standard macros */
#define GDL_TYPE_DOCK_OBJECT (gdl_dock_object_get_type ())
#define GDL_DOCK_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDL_TYPE_DOCK_OBJECT, GdlDockObject))
#define GDL_DOCK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDL_TYPE_DOCK_OBJECT, GdlDockObjectClass))
#define GDL_DOCK_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DOCK_OBJECT, GdlDockObjectClass))
/* data types & structures */
typedef enum {
/* the parameter is to be exported for later layout rebuilding */
/* the parameter must be set after adding the children objects */
#define GDL_DOCK_NAME_PROPERTY "name"
#define GDL_DOCK_MASTER_PROPERTY "master"
typedef enum {
GDL_DOCK_AUTOMATIC = 1 << 0,
#define GDL_DOCK_OBJECT_FLAGS_SHIFT 8
typedef enum {
GDL_DOCK_NONE = 0,
typedef struct _GdlDockObject GdlDockObject;
typedef struct _GdlDockObjectClass GdlDockObjectClass;
typedef struct _GdlDockRequest GdlDockRequest;
struct _GdlDockRequest {
};
struct _GdlDockObject {
};
struct _GdlDockObjectClass {
gint x,
gint y,
GValue *other_data);
GValue *other_data);
};
/* additional macros */
#define GDL_DOCK_OBJECT_AUTOMATIC(obj) \
#define GDL_DOCK_OBJECT_ATTACHED(obj) \
#define GDL_DOCK_OBJECT_IN_REFLOW(obj) \
#define GDL_DOCK_OBJECT_IN_DETACH(obj) \
/* public interface */
GType gdl_dock_object_get_type (void);
gint x,
gint y,
GValue *other_data);
GValue *other_data);
/* other types */
/* this type derives from G_TYPE_STRING and is meant to be the basic
type for serializing object parameters which are exported
(i.e. those that are needed for layout rebuilding) */
#define GDL_TYPE_DOCK_PARAM (gdl_dock_param_get_type ())
GType gdl_dock_param_get_type (void);
/* functions for setting/retrieving nick names for serializing GdlDockObject types */
/* helper macros */
G_STMT_START { \
g_log (G_LOG_DOMAIN, \
"%s:%d (%s) %s [%p %d%s:%d]: "format, \
__FILE__, \
__LINE__, \
##args); } G_STMT_END
#endif /* __GDL_DOCK_OBJECT_H__ */