Debian Codegraph @

gtk/gtkdropcontrollermotion.c

raw symbols SCIP
1 /*
2 * Copyright © 2020 Benjamin Otte
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: Benjamin Otte <[email protected]>
18 */
19
20 /**
21 * GtkDropControllerMotion:
22 *
23 * An event controller tracking the pointer during Drag-and-Drop operations.
24 *
25 * It is modeled after [[email protected]] so if you
26 * have used that, this should feel really familiar.
27 *
28 * This controller is not able to accept drops, use [[email protected]]
29 * for that purpose.
30 */
31
32 #include "config.h"cxx . . $ `<file>/build/config.h`/
33
34 #include "gtkdropcontrollermotion.h"cxx . . $ `<file>/gtk/gtkdropcontrollermotion.h`/
35
36 #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/
37 #include "gtkwidgetprivate.h"cxx . . $ `<file>/gtk/gtkwidgetprivate.h`/
38 #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/
39 #include "gtkeventcontrollerprivate.h"cxx . . $ `<file>/gtk/gtkeventcontrollerprivate.h`/
40 #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/
41 #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/
42
43 struct _GtkDropControllerMotioncxx . . $ _GtkDropControllerMotion#
44 {
45 GtkEventControllercxx . . $ GtkEventController# parent_instancecxx . . $ _GtkDropControllerMotion#parent_instance.;
46
47 GdkDropcxx . . $ GdkDrop# *dropcxx . . $ _GtkDropControllerMotion#drop.;
48 guintcxx . . $ guint# is_pointercxx . . $ _GtkDropControllerMotion#is_pointer. : 1;
49 guintcxx . . $ guint# contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer. : 1;
50 };
51
52 struct _GtkDropControllerMotionClasscxx . . $ _GtkDropControllerMotionClass#
53 {
54 GtkEventControllerClasscxx . . $ GtkEventControllerClass# parent_classcxx . . $ _GtkDropControllerMotionClass#parent_class.;
55 };
56
57 enumcxx . . $ $anonymous_type_f4125248b0826886_0# {
58 ENTERcxx . . $ ENTER.,
59 LEAVEcxx . . $ LEAVE.,
60 MOTIONcxx . . $ MOTION.,
61 N_SIGNALScxx . . $ N_SIGNALS.
62 };
63
64 enumcxx . . $ $anonymous_type_f4125248b0826886_1# {
65 PROP_0cxx . . $ PROP_0.,
66 PROP_CONTAINS_POINTERcxx . . $ PROP_CONTAINS_POINTER.,
67 PROP_DROPcxx . . $ PROP_DROP.,
68 PROP_IS_POINTERcxx . . $ PROP_IS_POINTER.,
69 NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.
70 };
71
72 static GParamSpeccxx . . $ GParamSpec# *propscxx . . $ props.[NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, };
73
74 static guintcxx . . $ guint# signalscxx . . $ signals.[N_SIGNALScxx . . $ N_SIGNALS.] = { 0 };
75
76 G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (GtkDropControllerMotion, gtk_drop_controller_motion, GTK_TYPE_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:34:9`!)
77
78 static gbooleancxx . . $ gboolean#
79 gtk_drop_controller_motion_handle_eventcxx . . $ gtk_drop_controller_motion_handle_event(df5f496728f85019). (GtkEventControllercxx . . $ GtkEventController# *controller,
80 GdkEventcxx . . $ GdkEvent# *event,
81 double x,
82 double y)
83 {
84 GtkEventControllerClasscxx . . $ GtkEventControllerClass# *parent_class;
85 GdkEventTypecxx . . $ GdkEventType# type;
86
87 type = gdk_event_get_event_typecxx . . $ gdk_event_get_event_type(af0289f7121992bc). (event);
88 if (type == GDK_DRAG_MOTIONcxx . . $ GDK_DRAG_MOTION.)
89 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (controller, signalscxx . . $ signals.[MOTIONcxx . . $ MOTION.], 0, x, y);
90
91 parent_class = GTK_EVENT_CONTROLLER_CLASScxx . . $ `gtk/gtkeventcontroller.h:36:9`! (gtk_drop_controller_motion_parent_class);
92
93 return parent_class->handle_eventcxx . . $ _GtkEventControllerClass#handle_event. (controller, event, x, y);
94 }
95
96 static void
97 update_pointer_focuscxx . . $ update_pointer_focus(640db48255c9900f). (GtkEventControllercxx . . $ GtkEventController# *controller,
98 const GtkCrossingDatacxx . . $ GtkCrossingData# *crossing,
99 double x,
100 double y)
101 {
102 GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self = GTK_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:32:9`! (controller);
103 GtkWidgetcxx . . $ GtkWidget# *widget = gtk_event_controller_get_widgetcxx . . $ gtk_event_controller_get_widget(71aab0125320da1a). (controller);
104 gbooleancxx . . $ gboolean# is_pointer = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
105 gbooleancxx . . $ gboolean# contains_pointer = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
106 gbooleancxx . . $ gboolean# enter = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
107 gbooleancxx . . $ gboolean# leave = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
108
109 if (crossing->directioncxx . . $ _GtkCrossingData#direction. == GTK_CROSSING_INcxx . . $ GTK_CROSSING_IN.)
110 {
111 if (crossing->new_descendentcxx . . $ _GtkCrossingData#new_descendent. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
112 {
113 contains_pointer = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
114 }
115 if (crossing->new_targetcxx . . $ _GtkCrossingData#new_target. == widget)
116 {
117 contains_pointer = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
118 is_pointer = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
119 }
120 }
121 else
122 {
123 if (crossing->new_descendentcxx . . $ _GtkCrossingData#new_descendent. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
124 crossing->new_targetcxx . . $ _GtkCrossingData#new_target. == widget)
125 contains_pointer = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
126 is_pointer = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
127 }
128
129 if (self->contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer. != contains_pointer)
130 {
131 enter = contains_pointer;
132 leave = !contains_pointer;
133 }
134
135 if (leave)
136 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (controller, signalscxx . . $ signals.[LEAVEcxx . . $ LEAVE.], 0);
137
138 g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self));
139 if (self->is_pointercxx . . $ _GtkDropControllerMotion#is_pointer. != is_pointer)
140 {
141 self->is_pointercxx . . $ _GtkDropControllerMotion#is_pointer. = is_pointer;
142 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), "is-pointer");
143 }
144 if (self->contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer. != contains_pointer)
145 {
146 self->contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer. = contains_pointer;
147 if (contains_pointer)
148 self->dropcxx . . $ _GtkDropControllerMotion#drop. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (crossing->drop);
149 else
150 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&self->drop);
151 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), "contains-pointer");
152 g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), "drop");
153 }
154 g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self));
155
156 if (enter)
157 g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (controller, signalscxx . . $ signals.[ENTERcxx . . $ ENTER.], 0, x, y);
158 }
159
160 static void
161 gtk_drop_controller_motion_handle_crossingcxx . . $ gtk_drop_controller_motion_handle_crossing(640db48255c9900f). (GtkEventControllercxx . . $ GtkEventController# *controller,
162 const GtkCrossingDatacxx . . $ GtkCrossingData# *crossing,
163 double x,
164 double y)
165 {
166 if (crossing->typecxx . . $ _GtkCrossingData#type. == GTK_CROSSING_DROPcxx . . $ GTK_CROSSING_DROP.)
167 update_pointer_focuscxx . . $ update_pointer_focus(640db48255c9900f). (controller, crossing, x, y);
168 }
169
170 static void
171 gtk_drop_controller_motion_get_propertycxx . . $ gtk_drop_controller_motion_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object,
172 guintcxx . . $ guint# prop_id,
173 GValuecxx . . $ GValue# *value,
174 GParamSpeccxx . . $ GParamSpec# *pspec)
175 {
176 GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self = GTK_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:32:9`! (object);
177
178 switch (prop_id)
179 {
180 case PROP_CONTAINS_POINTERcxx . . $ PROP_CONTAINS_POINTER.:
181 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer.);
182 break;
183
184 case PROP_DROPcxx . . $ PROP_DROP.:
185 g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, self->dropcxx . . $ _GtkDropControllerMotion#drop.);
186 break;
187
188 case PROP_IS_POINTERcxx . . $ PROP_IS_POINTER.:
189 g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, self->is_pointercxx . . $ _GtkDropControllerMotion#is_pointer.);
190 break;
191
192 default:
193 G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec);
194 }
195 }
196
197 static void
198 gtk_drop_controller_motion_class_initcxx . . $ gtk_drop_controller_motion_class_init(164cb5462c2e839b). (GtkDropControllerMotionClasscxx . . $ GtkDropControllerMotionClass# *klass)
199 {
200 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
201 GtkEventControllerClasscxx . . $ GtkEventControllerClass# *controller_class = GTK_EVENT_CONTROLLER_CLASScxx . . $ `gtk/gtkeventcontroller.h:36:9`! (klass);
202
203 object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_drop_controller_motion_get_propertycxx . . $ gtk_drop_controller_motion_get_property(cee2c52f22407c66).;
204
205 controller_class->handle_eventcxx . . $ _GtkEventControllerClass#handle_event. = gtk_drop_controller_motion_handle_eventcxx . . $ gtk_drop_controller_motion_handle_event(df5f496728f85019).;
206 controller_class->handle_crossingcxx . . $ _GtkEventControllerClass#handle_crossing. = gtk_drop_controller_motion_handle_crossingcxx . . $ gtk_drop_controller_motion_handle_crossing(640db48255c9900f).;
207
208 /**
209 * GtkDropControllerMotion:contains-pointer:
210 *
211 * Whether the pointer of a Drag-and-Drop operation is in
212 * the controller's widget or a descendant.
213 *
214 * See also [[email protected]:is-pointer].
215 *
216 * When handling crossing events, this property is updated
217 * before [[email protected]::enter], but after
218 * [[email protected]::leave] is emitted.
219 */
220 propscxx . . $ props.[PROP_CONTAINS_POINTERcxx . . $ PROP_CONTAINS_POINTER.] =
221 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("contains-pointer", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
222 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
223 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE.);
224
225 /**
226 * GtkDropControllerMotion:drop:
227 *
228 * The ongoing drop operation over the controller's widget or
229 * its descendant.
230 *
231 * If no drop operation is going on, this property returns %NULL.
232 *
233 * The event controller should not modify the @drop, but it might
234 * want to query its properties.
235 *
236 * When handling crossing events, this property is updated
237 * before [[email protected]::enter], but after
238 * [[email protected]::leave] is emitted.
239 */
240 propscxx . . $ props.[PROP_DROPcxx . . $ PROP_DROP.] =
241 g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("drop", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
242 GDK_TYPE_DROPcxx . . $ `gdk/gdkdrop.h:31:9`!,
243 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE.);
244
245 /**
246 * GtkDropControllerMotion:is-pointer:
247 *
248 * Whether the pointer is in the controllers widget itself,
249 * as opposed to in a descendent widget.
250 *
251 * See also [[email protected]:contains-pointer].
252 *
253 * When handling crossing events, this property is updated
254 * before [[email protected]::enter], but after
255 * [[email protected]::leave] is emitted.
256 */
257 propscxx . . $ props.[PROP_IS_POINTERcxx . . $ PROP_IS_POINTER.] =
258 g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("is-pointer", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
259 FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
260 G_PARAM_READABLEcxx . . $ G_PARAM_READABLE.);
261
262 g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, NUM_PROPERTIEScxx . . $ NUM_PROPERTIES., propscxx . . $ props.);
263
264 /**
265 * GtkDropControllerMotion::enter:
266 * @self: the object which received the signal
267 * @x: coordinates of pointer location
268 * @y: coordinates of pointer location
269 *
270 * Signals that the pointer has entered the widget.
271 */
272 signalscxx . . $ signals.[ENTERcxx . . $ ENTER.] =
273 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("enter"),
274 GTK_TYPE_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:31:9`!,
275 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
276 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
277 _gtk_marshal_VOID__DOUBLE_DOUBLEcxx . . $ _gtk_marshal_VOID__DOUBLE_DOUBLE(cba270afb0f82555).,
278 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 2,
279 G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!,
280 G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!);
281 g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[ENTERcxx . . $ ENTER.],
282 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (klass),
283 _gtk_marshal_VOID__DOUBLE_DOUBLEvcxx . . $ _gtk_marshal_VOID__DOUBLE_DOUBLEv(d309f4be92d1737c).);
284
285 /**
286 * GtkDropControllerMotion::leave:
287 * @self: the object which received the signal
288 *
289 * Signals that the pointer has left the widget.
290 */
291 signalscxx . . $ signals.[LEAVEcxx . . $ LEAVE.] =
292 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("leave"),
293 GTK_TYPE_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:31:9`!,
294 G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST.,
295 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
296 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
297 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0);
298
299 /**
300 * GtkDropControllerMotion::motion:
301 * @self: The object that received the signal
302 * @x: the x coordinate
303 * @y: the y coordinate
304 *
305 * Emitted when the pointer moves inside the widget.
306 */
307 signalscxx . . $ signals.[MOTIONcxx . . $ MOTION.] =
308 g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("motion"),
309 GTK_TYPE_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:31:9`!,
310 G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST.,
311 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
312 _gtk_marshal_VOID__DOUBLE_DOUBLEcxx . . $ _gtk_marshal_VOID__DOUBLE_DOUBLE(cba270afb0f82555).,
313 G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 2,
314 G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!,
315 G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!);
316 g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[MOTIONcxx . . $ MOTION.],
317 G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (klass),
318 _gtk_marshal_VOID__DOUBLE_DOUBLEvcxx . . $ _gtk_marshal_VOID__DOUBLE_DOUBLEv(d309f4be92d1737c).);
319 }
320
321 static void
322 gtk_drop_controller_motion_initcxx . . $ gtk_drop_controller_motion_init(c228c0c44763c599). (GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self)
323 {
324 }
325
326 /**
327 * gtk_drop_controller_motion_new:
328 *
329 * Creates a new event controller that will handle pointer motion
330 * events during drag and drop.
331 *
332 * Returns: a new `GtkDropControllerMotion`
333 **/
334 GtkEventControllercxx . . $ GtkEventController# *
335 gtk_drop_controller_motion_newcxx . . $ gtk_drop_controller_motion_new(f1c553b571625c41). (void)
336 {
337 return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:31:9`!,
338 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
339 }
340
341 /**
342 * gtk_drop_controller_motion_contains_pointer:
343 * @self: a `GtkDropControllerMotion`
344 *
345 * Returns if a Drag-and-Drop operation is within the widget
346 * @self or one of its children.
347 *
348 * Returns: %TRUE if a dragging pointer is within @self or one of its children.
349 */
350 gbooleancxx . . $ gboolean#
351 gtk_drop_controller_motion_contains_pointercxx . . $ gtk_drop_controller_motion_contains_pointer(fa5e0050dc6e802d). (GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self)
352 {
353 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:34:9`! (self), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
354
355 return self->contains_pointercxx . . $ _GtkDropControllerMotion#contains_pointer.;
356 }
357
358 /**
359 * gtk_drop_controller_motion_get_drop:
360 * @self: a `GtkDropControllerMotion`
361 *
362 * Returns the `GdkDrop` of a current Drag-and-Drop operation
363 * over the widget of @self.
364 *
365 * Returns: (transfer none) (nullable): The `GdkDrop` currently
366 * happening within @self
367 */
368 GdkDropcxx . . $ GdkDrop# *
369 gtk_drop_controller_motion_get_dropcxx . . $ gtk_drop_controller_motion_get_drop(529e54503ee96f36). (GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self)
370 {
371 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:34:9`! (self), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
372
373 return self->dropcxx . . $ _GtkDropControllerMotion#drop.;
374 }
375
376 /**
377 * gtk_drop_controller_motion_is_pointer:
378 * @self: a `GtkDropControllerMotion`
379 *
380 * Returns if a Drag-and-Drop operation is within the widget
381 * @self, not one of its children.
382 *
383 * Returns: %TRUE if a dragging pointer is within @self but
384 * not one of its children
385 */
386 gbooleancxx . . $ gboolean#
387 gtk_drop_controller_motion_is_pointercxx . . $ gtk_drop_controller_motion_is_pointer(fa5e0050dc6e802d). (GtkDropControllerMotioncxx . . $ GtkDropControllerMotion# *self)
388 {
389 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_DROP_CONTROLLER_MOTIONcxx . . $ `gtk/gtkdropcontrollermotion.h:34:9`! (self), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
390
391 return self->is_pointercxx . . $ _GtkDropControllerMotion#is_pointer.;
392 }