2013-11-12 15:55:23 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2019-04-29 03:25:37 +00:00
|
|
|
* Copyright (C) 2019 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* - Matthias Clasen <mclasen@redhat.com>
|
2013-11-12 15:55:23 +00: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 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_POPOVER_H__
|
|
|
|
#define __GTK_POPOVER_H__
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2019-04-29 03:25:37 +00:00
|
|
|
#include <gtk/gtkbin.h>
|
2013-11-12 15:55:23 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2019-04-29 03:25:37 +00:00
|
|
|
#define GTK_TYPE_POPOVER (gtk_popover_get_type ())
|
|
|
|
#define GTK_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_POPOVER, GtkPopover))
|
|
|
|
#define GTK_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_POPOVER, GtkPopoverClass))
|
|
|
|
#define GTK_IS_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_POPOVER))
|
|
|
|
#define GTK_IS_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_POPOVER))
|
|
|
|
#define GTK_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_POPOVER, GtkPopoverClass))
|
2013-11-12 15:55:23 +00:00
|
|
|
|
2019-04-29 03:25:37 +00:00
|
|
|
typedef struct _GtkPopover GtkPopover;
|
|
|
|
typedef struct _GtkPopoverClass GtkPopoverClass;
|
2013-11-12 15:55:23 +00:00
|
|
|
|
|
|
|
struct _GtkPopover
|
|
|
|
{
|
2019-04-29 03:25:37 +00:00
|
|
|
GtkBin parent;
|
2013-11-12 15:55:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GtkPopoverClass
|
|
|
|
{
|
|
|
|
GtkBinClass parent_class;
|
2014-02-06 14:21:56 +00:00
|
|
|
|
2019-06-12 16:54:57 +00:00
|
|
|
void (* closed) (GtkPopover *popover);
|
|
|
|
void (* activate_default) (GtkPopover *popover);
|
2014-02-06 14:30:55 +00:00
|
|
|
|
2014-02-09 06:22:07 +00:00
|
|
|
/*< private >*/
|
|
|
|
|
2019-05-19 20:34:49 +00:00
|
|
|
gpointer reserved[8];
|
2013-11-12 15:55:23 +00:00
|
|
|
};
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-29 03:25:37 +00:00
|
|
|
GType gtk_popover_get_type (void) G_GNUC_CONST;
|
2013-11-12 15:55:23 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-02-24 12:21:46 +00:00
|
|
|
GtkWidget * gtk_popover_new (void);
|
2013-11-12 15:55:23 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
void gtk_popover_set_pointing_to (GtkPopover *popover,
|
|
|
|
const GdkRectangle *rect);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
gboolean gtk_popover_get_pointing_to (GtkPopover *popover,
|
|
|
|
GdkRectangle *rect);
|
2019-04-29 03:25:37 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
void gtk_popover_set_position (GtkPopover *popover,
|
|
|
|
GtkPositionType position);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
GtkPositionType gtk_popover_get_position (GtkPopover *popover);
|
2014-02-16 21:10:55 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
void gtk_popover_set_autohide (GtkPopover *popover,
|
|
|
|
gboolean autohide);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
gboolean gtk_popover_get_autohide (GtkPopover *popover);
|
2015-04-17 04:10:06 +00:00
|
|
|
|
2019-05-22 00:42:07 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
void gtk_popover_set_has_arrow (GtkPopover *popover,
|
|
|
|
gboolean has_arrow);
|
2019-05-22 00:42:07 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-06-07 17:05:48 +00:00
|
|
|
gboolean gtk_popover_get_has_arrow (GtkPopover *popover);
|
2019-05-22 00:42:07 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-29 03:25:37 +00:00
|
|
|
void gtk_popover_popup (GtkPopover *popover);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-29 03:25:37 +00:00
|
|
|
void gtk_popover_popdown (GtkPopover *popover);
|
2015-12-01 19:56:56 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-29 03:25:37 +00:00
|
|
|
void gtk_popover_set_default_widget (GtkPopover *popover,
|
|
|
|
GtkWidget *widget);
|
2016-08-10 16:28:14 +00:00
|
|
|
|
|
|
|
|
2013-11-12 15:55:23 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_POPOVER_H__ */
|