Github User Fetcher
1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkpopuplayout.h
Go to the documentation of this file.
1
/* GDK - The GIMP Drawing Kit
2
* Copyright (C) 2020 Red Hat
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 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
*/
18
19
#pragma once
20
21
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
22
#error "Only <gdk/gdk.h> can be included directly."
23
#endif
24
25
#include <
gdk/gdktypes.h
>
26
27
G_BEGIN_DECLS
28
29
/**
30
* GdkAnchorHints:
31
* @GDK_ANCHOR_FLIP_X: allow flipping anchors horizontally
32
* @GDK_ANCHOR_FLIP_Y: allow flipping anchors vertically
33
* @GDK_ANCHOR_SLIDE_X: allow sliding surface horizontally
34
* @GDK_ANCHOR_SLIDE_Y: allow sliding surface vertically
35
* @GDK_ANCHOR_RESIZE_X: allow resizing surface horizontally
36
* @GDK_ANCHOR_RESIZE_Y: allow resizing surface vertically
37
* @GDK_ANCHOR_FLIP: allow flipping anchors on both axes
38
* @GDK_ANCHOR_SLIDE: allow sliding surface on both axes
39
* @GDK_ANCHOR_RESIZE: allow resizing surface on both axes
40
*
41
* Positioning hints for aligning a surface relative to a rectangle.
42
*
43
* These hints determine how the surface should be positioned in the case that
44
* the surface would fall off-screen if placed in its ideal position.
45
*
46
* For example, %GDK_ANCHOR_FLIP_X will replace %GDK_GRAVITY_NORTH_WEST with
47
* %GDK_GRAVITY_NORTH_EAST and vice versa if the surface extends beyond the left
48
* or right edges of the monitor.
49
*
50
* If %GDK_ANCHOR_SLIDE_X is set, the surface can be shifted horizontally to fit
51
* on-screen. If %GDK_ANCHOR_RESIZE_X is set, the surface can be shrunken
52
* horizontally to fit.
53
*
54
* In general, when multiple flags are set, flipping should take precedence over
55
* sliding, which should take precedence over resizing.
56
*/
57
typedef
enum
58
{
59
GDK_ANCHOR_FLIP_X
= 1 << 0,
60
GDK_ANCHOR_FLIP_Y
= 1 << 1,
61
GDK_ANCHOR_SLIDE_X
= 1 << 2,
62
GDK_ANCHOR_SLIDE_Y
= 1 << 3,
63
GDK_ANCHOR_RESIZE_X
= 1 << 4,
64
GDK_ANCHOR_RESIZE_Y
= 1 << 5,
65
GDK_ANCHOR_FLIP
=
GDK_ANCHOR_FLIP_X
|
GDK_ANCHOR_FLIP_Y
,
66
GDK_ANCHOR_SLIDE
=
GDK_ANCHOR_SLIDE_X
|
GDK_ANCHOR_SLIDE_Y
,
67
GDK_ANCHOR_RESIZE
=
GDK_ANCHOR_RESIZE_X
|
GDK_ANCHOR_RESIZE_Y
,
68
}
GdkAnchorHints
;
69
70
typedef
struct
_GdkPopupLayout
GdkPopupLayout
;
71
72
#define GDK_TYPE_POPUP_LAYOUT (gdk_popup_layout_get_type ())
73
74
GDK_AVAILABLE_IN_ALL
75
GType
gdk_popup_layout_get_type
(
void
);
76
77
GDK_AVAILABLE_IN_ALL
78
GdkPopupLayout
*
gdk_popup_layout_new
(
const
GdkRectangle
*anchor_rect,
79
GdkGravity
rect_anchor,
80
GdkGravity
surface_anchor);
81
82
GDK_AVAILABLE_IN_ALL
83
GdkPopupLayout
*
gdk_popup_layout_ref
(
GdkPopupLayout
*layout);
84
85
GDK_AVAILABLE_IN_ALL
86
void
gdk_popup_layout_unref
(
GdkPopupLayout
*layout);
87
88
GDK_AVAILABLE_IN_ALL
89
GdkPopupLayout
*
gdk_popup_layout_copy
(
GdkPopupLayout
*layout);
90
91
GDK_AVAILABLE_IN_ALL
92
gboolean
gdk_popup_layout_equal
(
GdkPopupLayout
*layout,
93
GdkPopupLayout
*other);
94
95
GDK_AVAILABLE_IN_ALL
96
void
gdk_popup_layout_set_anchor_rect
(
GdkPopupLayout
*layout,
97
const
GdkRectangle
*anchor_rect);
98
99
GDK_AVAILABLE_IN_ALL
100
const
GdkRectangle
*
gdk_popup_layout_get_anchor_rect
(
GdkPopupLayout
*layout);
101
102
GDK_AVAILABLE_IN_ALL
103
void
gdk_popup_layout_set_rect_anchor
(
GdkPopupLayout
*layout,
104
GdkGravity
anchor);
105
106
GDK_AVAILABLE_IN_ALL
107
GdkGravity
gdk_popup_layout_get_rect_anchor
(
GdkPopupLayout
*layout);
108
109
GDK_AVAILABLE_IN_ALL
110
void
gdk_popup_layout_set_surface_anchor
(
GdkPopupLayout
*layout,
111
GdkGravity
anchor);
112
113
GDK_AVAILABLE_IN_ALL
114
GdkGravity
gdk_popup_layout_get_surface_anchor
(
GdkPopupLayout
*layout);
115
116
GDK_AVAILABLE_IN_ALL
117
void
gdk_popup_layout_set_anchor_hints
(
GdkPopupLayout
*layout,
118
GdkAnchorHints
anchor_hints);
119
120
GDK_AVAILABLE_IN_ALL
121
GdkAnchorHints
gdk_popup_layout_get_anchor_hints
(
GdkPopupLayout
*layout);
122
123
GDK_AVAILABLE_IN_ALL
124
void
gdk_popup_layout_set_offset
(
GdkPopupLayout
*layout,
125
int
dx,
126
int
dy);
127
128
GDK_AVAILABLE_IN_ALL
129
void
gdk_popup_layout_get_offset
(
GdkPopupLayout
*layout,
130
int
*dx,
131
int
*dy);
132
133
GDK_AVAILABLE_IN_4_2
134
void
gdk_popup_layout_set_shadow_width
(
GdkPopupLayout
*layout,
135
int
left
,
136
int
right
,
137
int
top,
138
int
bottom);
139
GDK_AVAILABLE_IN_4_2
140
void
gdk_popup_layout_get_shadow_width
(
GdkPopupLayout
*layout,
141
int
*
left
,
142
int
*
right
,
143
int
*top,
144
int
*bottom);
145
146
G_DEFINE_AUTOPTR_CLEANUP_FUNC
(
GdkPopupLayout
,
gdk_popup_layout_unref
)
147
148
G_END_DECLS
149
GDK_AVAILABLE_IN_4_2
#define GDK_AVAILABLE_IN_4_2
Definition
gdk-visibility.h:97
GDK_AVAILABLE_IN_ALL
#define GDK_AVAILABLE_IN_ALL
Definition
gdk-visibility.h:22
GdkGravity
GdkGravity
Definition
gdkenums.h:72
gdk_popup_layout_get_offset
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_get_offset(GdkPopupLayout *layout, int *dx, int *dy)
gdk_popup_layout_equal
GDK_AVAILABLE_IN_ALL gboolean gdk_popup_layout_equal(GdkPopupLayout *layout, GdkPopupLayout *other)
gdk_popup_layout_get_shadow_width
GDK_AVAILABLE_IN_4_2 void gdk_popup_layout_get_shadow_width(GdkPopupLayout *layout, int *left, int *right, int *top, int *bottom)
gdk_popup_layout_ref
GDK_AVAILABLE_IN_ALL GdkPopupLayout * gdk_popup_layout_ref(GdkPopupLayout *layout)
gdk_popup_layout_get_anchor_hints
GDK_AVAILABLE_IN_ALL GdkAnchorHints gdk_popup_layout_get_anchor_hints(GdkPopupLayout *layout)
gdk_popup_layout_unref
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_unref(GdkPopupLayout *layout)
gdk_popup_layout_set_anchor_hints
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_set_anchor_hints(GdkPopupLayout *layout, GdkAnchorHints anchor_hints)
gdk_popup_layout_set_rect_anchor
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_set_rect_anchor(GdkPopupLayout *layout, GdkGravity anchor)
gdk_popup_layout_get_anchor_rect
GDK_AVAILABLE_IN_ALL const GdkRectangle * gdk_popup_layout_get_anchor_rect(GdkPopupLayout *layout)
gdk_popup_layout_set_offset
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_set_offset(GdkPopupLayout *layout, int dx, int dy)
gdk_popup_layout_set_surface_anchor
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_set_surface_anchor(GdkPopupLayout *layout, GdkGravity anchor)
gdk_popup_layout_set_shadow_width
GDK_AVAILABLE_IN_4_2 void gdk_popup_layout_set_shadow_width(GdkPopupLayout *layout, int left, int right, int top, int bottom)
gdk_popup_layout_get_type
GDK_AVAILABLE_IN_ALL GType gdk_popup_layout_get_type(void)
gdk_popup_layout_new
GDK_AVAILABLE_IN_ALL GdkPopupLayout * gdk_popup_layout_new(const GdkRectangle *anchor_rect, GdkGravity rect_anchor, GdkGravity surface_anchor)
gdk_popup_layout_get_surface_anchor
GDK_AVAILABLE_IN_ALL GdkGravity gdk_popup_layout_get_surface_anchor(GdkPopupLayout *layout)
gdk_popup_layout_set_anchor_rect
GDK_AVAILABLE_IN_ALL void gdk_popup_layout_set_anchor_rect(GdkPopupLayout *layout, const GdkRectangle *anchor_rect)
GdkAnchorHints
GdkAnchorHints
Definition
gdkpopuplayout.h:58
GDK_ANCHOR_FLIP_X
@ GDK_ANCHOR_FLIP_X
Definition
gdkpopuplayout.h:59
GDK_ANCHOR_FLIP
@ GDK_ANCHOR_FLIP
Definition
gdkpopuplayout.h:65
GDK_ANCHOR_SLIDE_X
@ GDK_ANCHOR_SLIDE_X
Definition
gdkpopuplayout.h:61
GDK_ANCHOR_SLIDE
@ GDK_ANCHOR_SLIDE
Definition
gdkpopuplayout.h:66
GDK_ANCHOR_RESIZE_X
@ GDK_ANCHOR_RESIZE_X
Definition
gdkpopuplayout.h:63
GDK_ANCHOR_FLIP_Y
@ GDK_ANCHOR_FLIP_Y
Definition
gdkpopuplayout.h:60
GDK_ANCHOR_RESIZE_Y
@ GDK_ANCHOR_RESIZE_Y
Definition
gdkpopuplayout.h:64
GDK_ANCHOR_RESIZE
@ GDK_ANCHOR_RESIZE
Definition
gdkpopuplayout.h:67
GDK_ANCHOR_SLIDE_Y
@ GDK_ANCHOR_SLIDE_Y
Definition
gdkpopuplayout.h:62
gdk_popup_layout_get_rect_anchor
GDK_AVAILABLE_IN_ALL GdkGravity gdk_popup_layout_get_rect_anchor(GdkPopupLayout *layout)
GdkPopupLayout
struct _GdkPopupLayout GdkPopupLayout
Definition
gdkpopuplayout.h:70
gdk_popup_layout_copy
GDK_AVAILABLE_IN_ALL GdkPopupLayout * gdk_popup_layout_copy(GdkPopupLayout *layout)
gdktypes.h
G_END_DECLS
#define G_END_DECLS
Definition
gmacros.h:910
G_BEGIN_DECLS
#define G_BEGIN_DECLS
Definition
gmacros.h:909
G_DEFINE_AUTOPTR_CLEANUP_FUNC
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition
gmacros.h:1400
GType
gsize GType
Definition
gtype.h:427
gboolean
gint gboolean
Definition
gtypes.h:56
right
lu_byte right
Definition
lua-5.1.5/src/lparser.c:812
left
lu_byte left
Definition
lua-5.1.5/src/lparser.c:811
_cairo_rectangle_int
Definition
cairo.h:532
nix
store
v9wbd5iwvxl666sf67ard7lvjamhggbk-gtk4-4.16.12-dev
include
gtk-4.0
gdk
gdkpopuplayout.h
Generated by
1.10.0