2013-03-10 19:15:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program 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 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_HEADER_BAR_H__
|
|
|
|
#define __GTK_HEADER_BAR_H__
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2020-05-08 13:37:52 +00:00
|
|
|
#include <gtk/gtkwidget.h>
|
2013-03-10 19:15:45 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_HEADER_BAR (gtk_header_bar_get_type ())
|
|
|
|
#define GTK_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HEADER_BAR, GtkHeaderBar))
|
|
|
|
#define GTK_IS_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HEADER_BAR))
|
|
|
|
|
|
|
|
typedef struct _GtkHeaderBar GtkHeaderBar;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2013-03-10 19:15:45 +00:00
|
|
|
GType gtk_header_bar_get_type (void) G_GNUC_CONST;
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2013-03-10 19:15:45 +00:00
|
|
|
GtkWidget *gtk_header_bar_new (void);
|
2013-03-20 02:07:26 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-04-30 23:17:27 +00:00
|
|
|
void gtk_header_bar_set_title_widget (GtkHeaderBar *bar,
|
2013-03-10 19:15:45 +00:00
|
|
|
GtkWidget *title_widget);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-04-30 23:17:27 +00:00
|
|
|
GtkWidget *gtk_header_bar_get_title_widget (GtkHeaderBar *bar);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2013-03-10 19:15:45 +00:00
|
|
|
void gtk_header_bar_pack_start (GtkHeaderBar *bar,
|
|
|
|
GtkWidget *child);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2013-03-10 19:15:45 +00:00
|
|
|
void gtk_header_bar_pack_end (GtkHeaderBar *bar,
|
|
|
|
GtkWidget *child);
|
2020-05-08 13:19:21 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_header_bar_remove (GtkHeaderBar *bar,
|
|
|
|
GtkWidget *child);
|
2013-03-10 19:15:45 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-08 03:36:29 +00:00
|
|
|
gboolean gtk_header_bar_get_show_title_buttons (GtkHeaderBar *bar);
|
2013-08-03 23:25:26 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-08 03:36:29 +00:00
|
|
|
void gtk_header_bar_set_show_title_buttons (GtkHeaderBar *bar,
|
|
|
|
gboolean setting);
|
2013-08-03 23:25:26 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2013-12-22 02:58:24 +00:00
|
|
|
void gtk_header_bar_set_decoration_layout (GtkHeaderBar *bar,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *layout);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *gtk_header_bar_get_decoration_layout (GtkHeaderBar *bar);
|
2013-12-22 02:58:24 +00:00
|
|
|
|
2022-09-24 01:54:15 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkHeaderBar, g_object_unref)
|
|
|
|
|
2013-03-10 19:15:45 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_HEADER_BAR_H__ */
|