Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkpopup.h
Go to the documentation of this file.
1/*
2 * Copyright © 2020 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authors: Matthias Clasen <mclasen@redhat.com>
18 */
19
20#pragma once
21
22#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gdk/gdk.h> can be included directly."
24#endif
25
26#include <gdk/gdkpopuplayout.h>
27#include <gdk/gdksurface.h>
28
30
31#define GDK_TYPE_POPUP (gdk_popup_get_type ())
32
34G_DECLARE_INTERFACE (GdkPopup, gdk_popup, GDK, POPUP, GObject)
35
37gboolean gdk_popup_present (GdkPopup *popup,
38 int width,
39 int height,
40 GdkPopupLayout *layout);
41
44
47
49GdkSurface * gdk_popup_get_parent (GdkPopup *popup);
50
52int gdk_popup_get_position_x (GdkPopup *popup);
53
55int gdk_popup_get_position_y (GdkPopup *popup);
56
59
61
#define GDK_AVAILABLE_IN_ALL
GdkGravity
Definition gdkenums.h:72
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL gboolean gdk_popup_present(GdkPopup *popup, int width, int height, GdkPopupLayout *layout)
GDK_AVAILABLE_IN_ALL GdkGravity gdk_popup_get_rect_anchor(GdkPopup *popup)
GDK_AVAILABLE_IN_ALL GdkSurface * gdk_popup_get_parent(GdkPopup *popup)
GDK_AVAILABLE_IN_ALL GdkGravity gdk_popup_get_surface_anchor(GdkPopup *popup)
GDK_AVAILABLE_IN_ALL gboolean gdk_popup_get_autohide(GdkPopup *popup)
GDK_AVAILABLE_IN_ALL int gdk_popup_get_position_x(GdkPopup *popup)
GDK_AVAILABLE_IN_ALL int gdk_popup_get_position_y(GdkPopup *popup)
struct _GdkPopupLayout GdkPopupLayout
struct _GdkSurface GdkSurface
Definition gdktypes.h:91
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_DECLARE_INTERFACE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, PrerequisiteName)
Definition gtype.h:1797
gint gboolean
Definition gtypes.h:56