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  * SPDX-License-Identifier: LGPL-2.1-or-later
18  */
19 
20 #ifndef __GDK_MACOS_POPUP_SURFACE_PRIVATE_H__
21 #define __GDK_MACOS_POPUP_SURFACE_PRIVATE_H__
22 
23 #include "gdkmacossurface-private.h"
24 
25 G_BEGIN_DECLS
26 
27 typedef struct _GdkMacosPopupSurface      GdkMacosPopupSurface;
28 typedef struct _GdkMacosPopupSurfaceClass GdkMacosPopupSurfaceClass;
29 
30 #define GDK_TYPE_MACOS_POPUP_SURFACE       (_gdk_macos_popup_surface_get_type())
31 #define GDK_MACOS_POPUP_SURFACE(object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_MACOS_POPUP_SURFACE, GdkMacosPopupSurface))
32 #define GDK_IS_MACOS_POPUP_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_MACOS_POPUP_SURFACE))
33 
34 GType            _gdk_macos_popup_surface_get_type           (void);
35 GdkMacosSurface *_gdk_macos_popup_surface_new                (GdkMacosDisplay      *display,
36                                                               GdkSurface           *parent,
37                                                               GdkFrameClock        *frame_clock,
38                                                               int                   x,
39                                                               int                   y,
40                                                               int                   width,
41                                                               int                   height);
42 void             _gdk_macos_popup_surface_attach_to_parent   (GdkMacosPopupSurface *self);
43 void             _gdk_macos_popup_surface_detach_from_parent (GdkMacosPopupSurface *self);
44 void             _gdk_macos_popup_surface_reposition         (GdkMacosPopupSurface *self);
45 
46 G_END_DECLS
47 
48 #endif /* __GDK_MACOS_POPUP_SURFACE_PRIVATE_H__ */
49