2008-07-01 22:57:50 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2003-06-30 12:57:57 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2003-06-30 12:57:57 +00:00
|
|
|
*
|
|
|
|
* Authors:
|
2020-05-07 04:02:42 +00:00
|
|
|
* Mark McLoughlin <mark@skynet.ie>
|
2003-06-30 12:57:57 +00:00
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GTK_EXPANDER_H__
|
|
|
|
#define __GTK_EXPANDER_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2020-05-03 23:32:13 +00:00
|
|
|
#include <gtk/gtkwidget.h>
|
2003-06-30 12:57:57 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_EXPANDER (gtk_expander_get_type ())
|
|
|
|
#define GTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPANDER, GtkExpander))
|
|
|
|
#define GTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPANDER))
|
|
|
|
|
|
|
|
typedef struct _GtkExpander GtkExpander;
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
GType gtk_expander_get_type (void) G_GNUC_CONST;
|
2003-06-30 12:57:57 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
GtkWidget *gtk_expander_new (const char *label);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
GtkWidget *gtk_expander_new_with_mnemonic (const char *label);
|
2003-06-30 12:57:57 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_expanded (GtkExpander *expander,
|
|
|
|
gboolean expanded);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
gboolean gtk_expander_get_expanded (GtkExpander *expander);
|
2003-06-30 12:57:57 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_label (GtkExpander *expander,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *label);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gtk_expander_get_label (GtkExpander *expander);
|
2011-03-21 19:57:43 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_use_underline (GtkExpander *expander,
|
|
|
|
gboolean use_underline);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
gboolean gtk_expander_get_use_underline (GtkExpander *expander);
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_use_markup (GtkExpander *expander,
|
|
|
|
gboolean use_markup);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
gboolean gtk_expander_get_use_markup (GtkExpander *expander);
|
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_label_widget (GtkExpander *expander,
|
2020-05-07 04:02:42 +00:00
|
|
|
GtkWidget *label_widget);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander);
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
void gtk_expander_set_resize_toplevel (GtkExpander *expander,
|
|
|
|
gboolean resize_toplevel);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-03-21 19:57:43 +00:00
|
|
|
gboolean gtk_expander_get_resize_toplevel (GtkExpander *expander);
|
2003-06-30 12:57:57 +00:00
|
|
|
|
2020-05-07 04:02:42 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_expander_set_child (GtkExpander *expander,
|
|
|
|
GtkWidget *child);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkWidget * gtk_expander_get_child (GtkExpander *expander);
|
|
|
|
|
2022-09-24 01:54:15 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkExpander, g_object_unref)
|
2020-05-07 04:02:42 +00:00
|
|
|
|
2003-06-30 12:57:57 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_EXPANDER_H__ */
|