mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
a1c5a806b3
The conversion was done by guard2one.
73 lines
2.7 KiB
C
73 lines
2.7 KiB
C
/*
|
|
* 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
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
#endif
|
|
|
|
#include <gtk/gtkwidget.h>
|
|
|
|
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;
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
GType gtk_header_bar_get_type (void) G_GNUC_CONST;
|
|
GDK_AVAILABLE_IN_ALL
|
|
GtkWidget *gtk_header_bar_new (void);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_set_title_widget (GtkHeaderBar *bar,
|
|
GtkWidget *title_widget);
|
|
GDK_AVAILABLE_IN_ALL
|
|
GtkWidget *gtk_header_bar_get_title_widget (GtkHeaderBar *bar);
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_pack_start (GtkHeaderBar *bar,
|
|
GtkWidget *child);
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_pack_end (GtkHeaderBar *bar,
|
|
GtkWidget *child);
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_remove (GtkHeaderBar *bar,
|
|
GtkWidget *child);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gtk_header_bar_get_show_title_buttons (GtkHeaderBar *bar);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_set_show_title_buttons (GtkHeaderBar *bar,
|
|
gboolean setting);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gtk_header_bar_set_decoration_layout (GtkHeaderBar *bar,
|
|
const char *layout);
|
|
GDK_AVAILABLE_IN_ALL
|
|
const char *gtk_header_bar_get_decoration_layout (GtkHeaderBar *bar);
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkHeaderBar, g_object_unref)
|
|
|
|
G_END_DECLS
|
|
|