2006-05-21 16:11:05 -07:00
|
|
|
/*
|
2005-10-13 07:08:18 -07:00
|
|
|
* moobigpaned.h
|
|
|
|
*
|
2007-04-12 08:24:21 -07:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-10-13 07:08:18 -07:00
|
|
|
*
|
2007-06-24 10:56:20 -07:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* 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.
|
2005-10-13 07:08:18 -07:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2007-04-12 08:24:21 -07:00
|
|
|
#ifndef MOO_BIG_PANED_H
|
|
|
|
#define MOO_BIG_PANED_H
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
#include <gtk/gtkframe.h>
|
2007-04-12 08:24:21 -07:00
|
|
|
#include "moopaned.h"
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_BIG_PANED (moo_big_paned_get_type ())
|
|
|
|
#define MOO_BIG_PANED(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_BIG_PANED, MooBigPaned))
|
|
|
|
#define MOO_BIG_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_BIG_PANED, MooBigPanedClass))
|
|
|
|
#define MOO_IS_BIG_PANED(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_BIG_PANED))
|
|
|
|
#define MOO_IS_BIG_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_BIG_PANED))
|
|
|
|
#define MOO_BIG_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_BIG_PANED, MooBigPanedClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _MooBigPaned MooBigPaned;
|
|
|
|
typedef struct _MooBigPanedPrivate MooBigPanedPrivate;
|
|
|
|
typedef struct _MooBigPanedClass MooBigPanedClass;
|
|
|
|
|
|
|
|
struct _MooBigPaned
|
|
|
|
{
|
|
|
|
GtkFrame parent;
|
|
|
|
|
|
|
|
GtkWidget *paned[4]; /* indexed by PanePos */
|
|
|
|
MooPanePosition order[4]; /* inner is paned[order[3]]*/
|
|
|
|
GtkWidget *inner;
|
|
|
|
GtkWidget *outer;
|
|
|
|
|
|
|
|
int drop_pos;
|
|
|
|
GdkRectangle drop_rect;
|
|
|
|
GdkWindow *drop_outline;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooBigPanedClass
|
|
|
|
{
|
|
|
|
GtkFrameClass parent_class;
|
|
|
|
void (*set_pane_size) (MooBigPaned *paned,
|
|
|
|
MooPanePosition position,
|
|
|
|
int size);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType moo_big_paned_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GtkWidget *moo_big_paned_new (void);
|
|
|
|
|
|
|
|
void moo_big_paned_set_pane_order (MooBigPaned *paned,
|
|
|
|
int *order);
|
|
|
|
|
2007-05-06 22:26:18 -07:00
|
|
|
MooPane *moo_big_paned_find_pane (MooBigPaned *paned,
|
2005-11-25 12:48:01 -08:00
|
|
|
GtkWidget *pane_widget,
|
2007-05-06 22:26:18 -07:00
|
|
|
MooPaned **child_paned);
|
2005-11-25 12:48:01 -08:00
|
|
|
|
2005-10-13 07:08:18 -07:00
|
|
|
void moo_big_paned_add_child (MooBigPaned *paned,
|
|
|
|
GtkWidget *widget);
|
|
|
|
void moo_big_paned_remove_child (MooBigPaned *paned);
|
|
|
|
GtkWidget *moo_big_paned_get_child (MooBigPaned *paned);
|
|
|
|
|
2007-05-06 22:26:18 -07:00
|
|
|
MooPane *moo_big_paned_insert_pane (MooBigPaned *paned,
|
2005-10-13 07:08:18 -07:00
|
|
|
GtkWidget *pane_widget,
|
|
|
|
MooPaneLabel *pane_label,
|
|
|
|
MooPanePosition position,
|
|
|
|
int index_);
|
|
|
|
gboolean moo_big_paned_remove_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
|
|
|
|
GtkWidget *moo_big_paned_get_pane (MooBigPaned *paned,
|
|
|
|
MooPanePosition position,
|
|
|
|
int index_);
|
|
|
|
|
2007-04-10 06:41:02 -07:00
|
|
|
MooPaned *moo_big_paned_get_paned (MooBigPaned *paned,
|
|
|
|
MooPanePosition position);
|
|
|
|
|
2005-10-13 07:08:18 -07:00
|
|
|
void moo_big_paned_open_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_hide_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_present_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
2007-04-17 10:50:01 -07:00
|
|
|
void moo_big_paned_attach_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
|
|
|
void moo_big_paned_detach_pane (MooBigPaned *paned,
|
|
|
|
GtkWidget *pane_widget);
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-04-12 08:24:21 -07:00
|
|
|
#endif /* MOO_BIG_PANED_H */
|