Code

Extensions. XAML export improvements.
[inkscape.git] / src / libgdl / gdl-dock-paned.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * gdl-dock-paned.h
4  *
5  * This file is part of the GNOME Devtools Libraries.
6  *
7  * Copyright (C) 2002 Gustavo Giráldez <gustavo.giraldez@gmx.net>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22  */
24 #ifndef __GDL_DOCK_PANED_H__
25 #define __GDL_DOCK_PANED_H__
27 #include "libgdl/gdl-dock-item.h"
29 G_BEGIN_DECLS
31 /* standard macros */
32 #define GDL_TYPE_DOCK_PANED                  (gdl_dock_paned_get_type ())
33 #define GDL_DOCK_PANED(obj)                  (GTK_CHECK_CAST ((obj), GDL_TYPE_DOCK_PANED, GdlDockPaned))
34 #define GDL_DOCK_PANED_CLASS(klass)          (GTK_CHECK_CLASS_CAST ((klass), GDL_TYPE_DOCK_PANED, GdlDockPanedClass))
35 #define GDL_IS_DOCK_PANED(obj)               (GTK_CHECK_TYPE ((obj), GDL_TYPE_DOCK_PANED))
36 #define GDL_IS_DOCK_PANED_CLASS(klass)       (GTK_CHECK_CLASS_TYPE ((klass), GDL_TYPE_DOCK_PANED))
37 #define GDL_DOCK_PANED_GET_CLASS(obj)        (GTK_CHECK_GET_CLASS ((obj), GDL_TYE_DOCK_PANED, GdlDockPanedClass))
39 /* data types & structures */
40 typedef struct _GdlDockPaned      GdlDockPaned;
41 typedef struct _GdlDockPanedClass GdlDockPanedClass;
43 struct _GdlDockPaned {
44     GdlDockItem  dock_item;
46     gboolean     position_changed;
47     gboolean     in_drag;
48     gint         last_drag_position;
49 };
51 struct _GdlDockPanedClass {
52     GdlDockItemClass parent_class;
53 };
56 /* public interface */
57  
58 GType      gdl_dock_paned_get_type        (void);
60 GtkWidget *gdl_dock_paned_new             (GtkOrientation orientation);
63 G_END_DECLS
65 #endif /* __GDL_DOCK_PANED_H__ */