CoreGTK  3.18.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKWidget.m
1 /*
2  * CGTKWidget.m
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2016 - Tyler Burton
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 /*
23  * Modified by the CoreGTK Team, 2016. See the AUTHORS file for a
24  * list of people on the CoreGTK Team.
25  * See the ChangeLog files for a list of changes.
26  *
27  */
28 
29 /*
30  * Objective-C imports
31  */
32 #import "CoreGTK/CGTKWidget.h"
33 
34 @implementation CGTKWidget
35 
36 +(GtkTextDirection)getDefaultDirection
37 {
38  return gtk_widget_get_default_direction();
39 }
40 
41 +(GtkStyle*)getDefaultStyle
42 {
43  return gtk_widget_get_default_style();
44 }
45 
46 +(void)popCompositeChild
47 {
48  gtk_widget_pop_composite_child();
49 }
50 
51 +(void)pushCompositeChild
52 {
53  gtk_widget_push_composite_child();
54 }
55 
56 +(void)setDefaultDirection:(GtkTextDirection) dir
57 {
58  gtk_widget_set_default_direction(dir);
59 }
60 
61 -(GtkWidget*)WIDGET
62 {
63  return GTK_WIDGET([self GOBJECT]);
64 }
65 
66 -(BOOL)activate
67 {
68  return (gtk_widget_activate(GTK_WIDGET([self GOBJECT])) ? YES : NO);
69 }
70 
71 -(void)addAcceleratorWithAccelSignal:(NSString*) accelSignal andAccelGroup:(GtkAccelGroup*) accelGroup andAccelKey:(guint) accelKey andAccelMods:(GdkModifierType) accelMods andAccelFlags:(GtkAccelFlags) accelFlags
72 {
73  gtk_widget_add_accelerator(GTK_WIDGET([self GOBJECT]), [accelSignal UTF8String], accelGroup, accelKey, accelMods, accelFlags);
74 }
75 
76 -(void)addDeviceEventsWithDevice:(GdkDevice*) device andEvents:(GdkEventMask) events
77 {
78  gtk_widget_add_device_events(GTK_WIDGET([self GOBJECT]), device, events);
79 }
80 
81 -(void)addEvents:(gint) events
82 {
83  gtk_widget_add_events(GTK_WIDGET([self GOBJECT]), events);
84 }
85 
86 -(void)addMnemonicLabel:(CGTKWidget*) label
87 {
88  gtk_widget_add_mnemonic_label(GTK_WIDGET([self GOBJECT]), [label WIDGET]);
89 }
90 
91 -(guint)addTickCallbackWithCallback:(GtkTickCallback) callback andUserData:(gpointer) userData andNotify:(GDestroyNotify) notify
92 {
93  return gtk_widget_add_tick_callback(GTK_WIDGET([self GOBJECT]), callback, userData, notify);
94 }
95 
96 -(BOOL)canActivateAccel:(guint) signalId
97 {
98  return (gtk_widget_can_activate_accel(GTK_WIDGET([self GOBJECT]), signalId) ? YES : NO);
99 }
100 
101 -(BOOL)childFocus:(GtkDirectionType) direction
102 {
103  return (gtk_widget_child_focus(GTK_WIDGET([self GOBJECT]), direction) ? YES : NO);
104 }
105 
106 -(void)childNotify:(NSString*) childProperty
107 {
108  gtk_widget_child_notify(GTK_WIDGET([self GOBJECT]), [childProperty UTF8String]);
109 }
110 
111 -(void)classPathWithPathLength:(guint*) pathLength andPath:(gchar**) path andPathReversed:(gchar**) pathReversed
112 {
113  gtk_widget_class_path(GTK_WIDGET([self GOBJECT]), pathLength, path, pathReversed);
114 }
115 
116 -(BOOL)computeExpand:(GtkOrientation) orientation
117 {
118  return (gtk_widget_compute_expand(GTK_WIDGET([self GOBJECT]), orientation) ? YES : NO);
119 }
120 
121 -(PangoContext*)createPangoContext
122 {
123  return gtk_widget_create_pango_context(GTK_WIDGET([self GOBJECT]));
124 }
125 
126 -(PangoLayout*)createPangoLayout:(NSString*) text
127 {
128  return gtk_widget_create_pango_layout(GTK_WIDGET([self GOBJECT]), [text UTF8String]);
129 }
130 
131 -(void)destroy
132 {
133  gtk_widget_destroy(GTK_WIDGET([self GOBJECT]));
134 }
135 
136 -(void)destroyed:(GtkWidget**) widgetPointer
137 {
138  gtk_widget_destroyed(GTK_WIDGET([self GOBJECT]), widgetPointer);
139 }
140 
141 -(BOOL)deviceIsShadowed:(GdkDevice*) device
142 {
143  return (gtk_widget_device_is_shadowed(GTK_WIDGET([self GOBJECT]), device) ? YES : NO);
144 }
145 
146 -(GdkDragContext*)gtkDragBeginWithTargets:(GtkTargetList*) targets andActions:(GdkDragAction) actions andButton:(gint) button andEvent:(GdkEvent*) event
147 {
148  return gtk_drag_begin(GTK_WIDGET([self GOBJECT]), targets, actions, button, event);
149 }
150 
151 -(GdkDragContext*)gtkDragBeginWithCoordinatesWithTargets:(GtkTargetList*) targets andActions:(GdkDragAction) actions andButton:(gint) button andEvent:(GdkEvent*) event andX:(gint) x andY:(gint) y
152 {
153  return gtk_drag_begin_with_coordinates(GTK_WIDGET([self GOBJECT]), targets, actions, button, event, x, y);
154 }
155 
156 -(BOOL)gtkDragCheckThresholdWithStartX:(gint) startX andStartY:(gint) startY andCurrentX:(gint) currentX andCurrentY:(gint) currentY
157 {
158  return (gtk_drag_check_threshold(GTK_WIDGET([self GOBJECT]), startX, startY, currentX, currentY) ? YES : NO);
159 }
160 
162 {
163  gtk_drag_dest_add_image_targets(GTK_WIDGET([self GOBJECT]));
164 }
165 
167 {
168  gtk_drag_dest_add_text_targets(GTK_WIDGET([self GOBJECT]));
169 }
170 
172 {
173  gtk_drag_dest_add_uri_targets(GTK_WIDGET([self GOBJECT]));
174 }
175 
176 -(GdkAtom)gtkDragDestFindTargetWithContext:(GdkDragContext*) context andTargetList:(GtkTargetList*) targetList
177 {
178  return gtk_drag_dest_find_target(GTK_WIDGET([self GOBJECT]), context, targetList);
179 }
180 
181 -(GtkTargetList*)gtkDragDestGetTargetList
182 {
183  return gtk_drag_dest_get_target_list(GTK_WIDGET([self GOBJECT]));
184 }
185 
187 {
188  return (gtk_drag_dest_get_track_motion(GTK_WIDGET([self GOBJECT])) ? YES : NO);
189 }
190 
191 -(void)gtkDragDestSetWithFlags:(GtkDestDefaults) flags andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
192 {
193  gtk_drag_dest_set(GTK_WIDGET([self GOBJECT]), flags, targets, ntargets, actions);
194 }
195 
196 -(void)gtkDragDestSetProxyWithProxyWindow:(GdkWindow*) proxyWindow andProtocol:(GdkDragProtocol) protocol andUseCoordinates:(BOOL) useCoordinates
197 {
198  gtk_drag_dest_set_proxy(GTK_WIDGET([self GOBJECT]), proxyWindow, protocol, (useCoordinates ? TRUE : FALSE));
199 }
200 
201 -(void)gtkDragDestSetTargetList:(GtkTargetList*) targetList
202 {
203  gtk_drag_dest_set_target_list(GTK_WIDGET([self GOBJECT]), targetList);
204 }
205 
206 -(void)gtkDragDestSetTrackMotion:(BOOL) trackMotion
207 {
208  gtk_drag_dest_set_track_motion(GTK_WIDGET([self GOBJECT]), (trackMotion ? TRUE : FALSE));
209 }
210 
212 {
213  gtk_drag_dest_unset(GTK_WIDGET([self GOBJECT]));
214 }
215 
216 -(void)gtkDragGetDataWithContext:(GdkDragContext*) context andTarget:(GdkAtom) target andTime:(guint32) time
217 {
218  gtk_drag_get_data(GTK_WIDGET([self GOBJECT]), context, target, time);
219 }
220 
222 {
223  gtk_drag_highlight(GTK_WIDGET([self GOBJECT]));
224 }
225 
227 {
228  gtk_drag_source_add_image_targets(GTK_WIDGET([self GOBJECT]));
229 }
230 
232 {
233  gtk_drag_source_add_text_targets(GTK_WIDGET([self GOBJECT]));
234 }
235 
237 {
238  gtk_drag_source_add_uri_targets(GTK_WIDGET([self GOBJECT]));
239 }
240 
242 {
243  return gtk_drag_source_get_target_list(GTK_WIDGET([self GOBJECT]));
244 }
245 
246 -(void)gtkDragSourceSetWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
247 {
248  gtk_drag_source_set(GTK_WIDGET([self GOBJECT]), startButtonMask, targets, ntargets, actions);
249 }
250 
251 -(void)gtkDragSourceSetIconGicon:(GIcon*) icon
252 {
253  gtk_drag_source_set_icon_gicon(GTK_WIDGET([self GOBJECT]), icon);
254 }
255 
256 -(void)gtkDragSourceSetIconName:(NSString*) iconName
257 {
258  gtk_drag_source_set_icon_name(GTK_WIDGET([self GOBJECT]), [iconName UTF8String]);
259 }
260 
261 -(void)gtkDragSourceSetIconPixbuf:(GdkPixbuf*) pixbuf
262 {
263  gtk_drag_source_set_icon_pixbuf(GTK_WIDGET([self GOBJECT]), pixbuf);
264 }
265 
266 -(void)gtkDragSourceSetIconStock:(NSString*) stockId
267 {
268  gtk_drag_source_set_icon_stock(GTK_WIDGET([self GOBJECT]), [stockId UTF8String]);
269 }
270 
271 -(void)gtkDragSourceSetTargetList:(GtkTargetList*) targetList
272 {
273  gtk_drag_source_set_target_list(GTK_WIDGET([self GOBJECT]), targetList);
274 }
275 
277 {
278  gtk_drag_source_unset(GTK_WIDGET([self GOBJECT]));
279 }
280 
282 {
283  gtk_drag_unhighlight(GTK_WIDGET([self GOBJECT]));
284 }
285 
286 -(void)draw:(cairo_t*) cr
287 {
288  gtk_widget_draw(GTK_WIDGET([self GOBJECT]), cr);
289 }
290 
292 {
293  gtk_widget_ensure_style(GTK_WIDGET([self GOBJECT]));
294 }
295 
296 -(void)errorBell
297 {
298  gtk_widget_error_bell(GTK_WIDGET([self GOBJECT]));
299 }
300 
301 -(BOOL)event:(GdkEvent*) event
302 {
303  return (gtk_widget_event(GTK_WIDGET([self GOBJECT]), event) ? YES : NO);
304 }
305 
307 {
308  gtk_widget_freeze_child_notify(GTK_WIDGET([self GOBJECT]));
309 }
310 
311 -(AtkObject*)getAccessible
312 {
313  return gtk_widget_get_accessible(GTK_WIDGET([self GOBJECT]));
314 }
315 
316 -(GActionGroup*)getActionGroup:(NSString*) prefix
317 {
318  return gtk_widget_get_action_group(GTK_WIDGET([self GOBJECT]), [prefix UTF8String]);
319 }
320 
322 {
323  return gtk_widget_get_allocated_baseline(GTK_WIDGET([self GOBJECT]));
324 }
325 
327 {
328  return gtk_widget_get_allocated_height(GTK_WIDGET([self GOBJECT]));
329 }
330 
332 {
333  return gtk_widget_get_allocated_width(GTK_WIDGET([self GOBJECT]));
334 }
335 
336 -(void)getAllocation:(GtkAllocation*) allocation
337 {
338  gtk_widget_get_allocation(GTK_WIDGET([self GOBJECT]), allocation);
339 }
340 
341 -(CGTKWidget*)getAncestor:(GType) widgetType
342 {
343  return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_ancestor(GTK_WIDGET([self GOBJECT]), widgetType)];
344 }
345 
347 {
348  return (gtk_widget_get_app_paintable(GTK_WIDGET([self GOBJECT])) ? YES : NO);
349 }
350 
352 {
353  return (gtk_widget_get_can_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
354 }
355 
357 {
358  return (gtk_widget_get_can_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
359 }
360 
361 -(void)getChildRequisition:(GtkRequisition*) requisition
362 {
363  gtk_widget_get_child_requisition(GTK_WIDGET([self GOBJECT]), requisition);
364 }
365 
367 {
368  return (gtk_widget_get_child_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
369 }
370 
371 -(void)getClip:(GtkAllocation*) clip
372 {
373  gtk_widget_get_clip(GTK_WIDGET([self GOBJECT]), clip);
374 }
375 
376 -(GtkClipboard*)getClipboard:(GdkAtom) selection
377 {
378  return gtk_widget_get_clipboard(GTK_WIDGET([self GOBJECT]), selection);
379 }
380 
381 -(NSString*)getCompositeName
382 {
383  return [NSString stringWithUTF8String:gtk_widget_get_composite_name(GTK_WIDGET([self GOBJECT]))];
384 }
385 
386 -(BOOL)getDeviceEnabled:(GdkDevice*) device
387 {
388  return (gtk_widget_get_device_enabled(GTK_WIDGET([self GOBJECT]), device) ? YES : NO);
389 }
390 
391 -(GdkEventMask)getDeviceEvents:(GdkDevice*) device
392 {
393  return gtk_widget_get_device_events(GTK_WIDGET([self GOBJECT]), device);
394 }
395 
396 -(GtkTextDirection)getDirection
397 {
398  return gtk_widget_get_direction(GTK_WIDGET([self GOBJECT]));
399 }
400 
401 -(GdkDisplay*)getDisplay
402 {
403  return gtk_widget_get_display(GTK_WIDGET([self GOBJECT]));
404 }
405 
407 {
408  return (gtk_widget_get_double_buffered(GTK_WIDGET([self GOBJECT])) ? YES : NO);
409 }
410 
411 -(gint)getEvents
412 {
413  return gtk_widget_get_events(GTK_WIDGET([self GOBJECT]));
414 }
415 
416 -(PangoFontMap*)getFontMap
417 {
418  return gtk_widget_get_font_map(GTK_WIDGET([self GOBJECT]));
419 }
420 
421 -(const cairo_font_options_t*)getFontOptions
422 {
423  return gtk_widget_get_font_options(GTK_WIDGET([self GOBJECT]));
424 }
425 
426 -(GdkFrameClock*)getFrameClock
427 {
428  return gtk_widget_get_frame_clock(GTK_WIDGET([self GOBJECT]));
429 }
430 
431 -(GtkAlign)getHalign
432 {
433  return gtk_widget_get_halign(GTK_WIDGET([self GOBJECT]));
434 }
435 
437 {
438  return (gtk_widget_get_has_tooltip(GTK_WIDGET([self GOBJECT])) ? YES : NO);
439 }
440 
442 {
443  return (gtk_widget_get_has_window(GTK_WIDGET([self GOBJECT])) ? YES : NO);
444 }
445 
447 {
448  return (gtk_widget_get_hexpand(GTK_WIDGET([self GOBJECT])) ? YES : NO);
449 }
450 
452 {
453  return (gtk_widget_get_hexpand_set(GTK_WIDGET([self GOBJECT])) ? YES : NO);
454 }
455 
456 -(BOOL)getMapped
457 {
458  return (gtk_widget_get_mapped(GTK_WIDGET([self GOBJECT])) ? YES : NO);
459 }
460 
462 {
463  return gtk_widget_get_margin_bottom(GTK_WIDGET([self GOBJECT]));
464 }
465 
467 {
468  return gtk_widget_get_margin_end(GTK_WIDGET([self GOBJECT]));
469 }
470 
472 {
473  return gtk_widget_get_margin_left(GTK_WIDGET([self GOBJECT]));
474 }
475 
477 {
478  return gtk_widget_get_margin_right(GTK_WIDGET([self GOBJECT]));
479 }
480 
482 {
483  return gtk_widget_get_margin_start(GTK_WIDGET([self GOBJECT]));
484 }
485 
487 {
488  return gtk_widget_get_margin_top(GTK_WIDGET([self GOBJECT]));
489 }
490 
491 -(GdkModifierType)getModifierMask:(GdkModifierIntent) intent
492 {
493  return gtk_widget_get_modifier_mask(GTK_WIDGET([self GOBJECT]), intent);
494 }
495 
496 -(GtkRcStyle*)getModifierStyle
497 {
498  return gtk_widget_get_modifier_style(GTK_WIDGET([self GOBJECT]));
499 }
500 
501 -(NSString*)getName
502 {
503  return [NSString stringWithUTF8String:gtk_widget_get_name(GTK_WIDGET([self GOBJECT]))];
504 }
505 
507 {
508  return (gtk_widget_get_no_show_all(GTK_WIDGET([self GOBJECT])) ? YES : NO);
509 }
510 
511 -(double)getOpacity
512 {
513  return gtk_widget_get_opacity(GTK_WIDGET([self GOBJECT]));
514 }
515 
516 -(PangoContext*)getPangoContext
517 {
518  return gtk_widget_get_pango_context(GTK_WIDGET([self GOBJECT]));
519 }
520 
522 {
523  return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_parent(GTK_WIDGET([self GOBJECT]))];
524 }
525 
526 -(GdkWindow*)getParentWindow
527 {
528  return gtk_widget_get_parent_window(GTK_WIDGET([self GOBJECT]));
529 }
530 
531 -(GtkWidgetPath*)getPath
532 {
533  return gtk_widget_get_path(GTK_WIDGET([self GOBJECT]));
534 }
535 
536 -(void)getPointerWithX:(gint*) x andY:(gint*) y
537 {
538  gtk_widget_get_pointer(GTK_WIDGET([self GOBJECT]), x, y);
539 }
540 
541 -(void)getPreferredHeightWithMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight
542 {
543  gtk_widget_get_preferred_height(GTK_WIDGET([self GOBJECT]), minimumHeight, naturalHeight);
544 }
545 
546 -(void)getPreferredHeightAndBaselineForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight andMinimumBaseline:(gint*) minimumBaseline andNaturalBaseline:(gint*) naturalBaseline
547 {
548  gtk_widget_get_preferred_height_and_baseline_for_width(GTK_WIDGET([self GOBJECT]), width, minimumHeight, naturalHeight, minimumBaseline, naturalBaseline);
549 }
550 
551 -(void)getPreferredHeightForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight
552 {
553  gtk_widget_get_preferred_height_for_width(GTK_WIDGET([self GOBJECT]), width, minimumHeight, naturalHeight);
554 }
555 
556 -(void)getPreferredSizeWithMinimumSize:(GtkRequisition*) minimumSize andNaturalSize:(GtkRequisition*) naturalSize
557 {
558  gtk_widget_get_preferred_size(GTK_WIDGET([self GOBJECT]), minimumSize, naturalSize);
559 }
560 
561 -(void)getPreferredWidthWithMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth
562 {
563  gtk_widget_get_preferred_width(GTK_WIDGET([self GOBJECT]), minimumWidth, naturalWidth);
564 }
565 
566 -(void)getPreferredWidthForHeightWithHeight:(gint) height andMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth
567 {
568  gtk_widget_get_preferred_width_for_height(GTK_WIDGET([self GOBJECT]), height, minimumWidth, naturalWidth);
569 }
570 
572 {
573  return (gtk_widget_get_realized(GTK_WIDGET([self GOBJECT])) ? YES : NO);
574 }
575 
577 {
578  return (gtk_widget_get_receives_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
579 }
580 
581 -(GtkSizeRequestMode)getRequestMode
582 {
583  return gtk_widget_get_request_mode(GTK_WIDGET([self GOBJECT]));
584 }
585 
586 -(void)getRequisition:(GtkRequisition*) requisition
587 {
588  gtk_widget_get_requisition(GTK_WIDGET([self GOBJECT]), requisition);
589 }
590 
591 -(GdkWindow*)getRootWindow
592 {
593  return gtk_widget_get_root_window(GTK_WIDGET([self GOBJECT]));
594 }
595 
597 {
598  return gtk_widget_get_scale_factor(GTK_WIDGET([self GOBJECT]));
599 }
600 
601 -(GdkScreen*)getScreen
602 {
603  return gtk_widget_get_screen(GTK_WIDGET([self GOBJECT]));
604 }
605 
607 {
608  return (gtk_widget_get_sensitive(GTK_WIDGET([self GOBJECT])) ? YES : NO);
609 }
610 
611 -(GtkSettings*)getSettings
612 {
613  return gtk_widget_get_settings(GTK_WIDGET([self GOBJECT]));
614 }
615 
616 -(void)getSizeRequestWithWidth:(gint*) width andHeight:(gint*) height
617 {
618  gtk_widget_get_size_request(GTK_WIDGET([self GOBJECT]), width, height);
619 }
620 
621 -(GtkStateType)getState
622 {
623  return gtk_widget_get_state(GTK_WIDGET([self GOBJECT]));
624 }
625 
626 -(GtkStateFlags)getStateFlags
627 {
628  return gtk_widget_get_state_flags(GTK_WIDGET([self GOBJECT]));
629 }
630 
631 -(GtkStyle*)getStyle
632 {
633  return gtk_widget_get_style(GTK_WIDGET([self GOBJECT]));
634 }
635 
636 -(GtkStyleContext*)getStyleContext
637 {
638  return gtk_widget_get_style_context(GTK_WIDGET([self GOBJECT]));
639 }
640 
642 {
643  return (gtk_widget_get_support_multidevice(GTK_WIDGET([self GOBJECT])) ? YES : NO);
644 }
645 
646 -(GObject*)getTemplateChildWithWidgetType:(GType) widgetType andName:(NSString*) name
647 {
648  return gtk_widget_get_template_child(GTK_WIDGET([self GOBJECT]), widgetType, [name UTF8String]);
649 }
650 
651 -(NSString*)getTooltipMarkup
652 {
653  return [NSString stringWithUTF8String:gtk_widget_get_tooltip_markup(GTK_WIDGET([self GOBJECT]))];
654 }
655 
656 -(NSString*)getTooltipText
657 {
658  return [NSString stringWithUTF8String:gtk_widget_get_tooltip_text(GTK_WIDGET([self GOBJECT]))];
659 }
660 
661 -(GtkWindow*)getTooltipWindow
662 {
663  return gtk_widget_get_tooltip_window(GTK_WIDGET([self GOBJECT]));
664 }
665 
667 {
668  return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_toplevel(GTK_WIDGET([self GOBJECT]))];
669 }
670 
671 -(GtkAlign)getValign
672 {
673  return gtk_widget_get_valign(GTK_WIDGET([self GOBJECT]));
674 }
675 
677 {
678  return gtk_widget_get_valign_with_baseline(GTK_WIDGET([self GOBJECT]));
679 }
680 
682 {
683  return (gtk_widget_get_vexpand(GTK_WIDGET([self GOBJECT])) ? YES : NO);
684 }
685 
687 {
688  return (gtk_widget_get_vexpand_set(GTK_WIDGET([self GOBJECT])) ? YES : NO);
689 }
690 
692 {
693  return (gtk_widget_get_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
694 }
695 
696 -(GdkVisual*)getVisual
697 {
698  return gtk_widget_get_visual(GTK_WIDGET([self GOBJECT]));
699 }
700 
701 -(GdkWindow*)getWindow
702 {
703  return gtk_widget_get_window(GTK_WIDGET([self GOBJECT]));
704 }
705 
707 {
708  gtk_grab_add(GTK_WIDGET([self GOBJECT]));
709 }
710 
712 {
713  gtk_widget_grab_default(GTK_WIDGET([self GOBJECT]));
714 }
715 
716 -(void)grabFocus
717 {
718  gtk_widget_grab_focus(GTK_WIDGET([self GOBJECT]));
719 }
720 
722 {
723  gtk_grab_remove(GTK_WIDGET([self GOBJECT]));
724 }
725 
727 {
728  return (gtk_widget_has_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
729 }
730 
731 -(BOOL)hasFocus
732 {
733  return (gtk_widget_has_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
734 }
735 
736 -(BOOL)hasGrab
737 {
738  return (gtk_widget_has_grab(GTK_WIDGET([self GOBJECT])) ? YES : NO);
739 }
740 
742 {
743  return (gtk_widget_has_rc_style(GTK_WIDGET([self GOBJECT])) ? YES : NO);
744 }
745 
746 -(BOOL)hasScreen
747 {
748  return (gtk_widget_has_screen(GTK_WIDGET([self GOBJECT])) ? YES : NO);
749 }
750 
752 {
753  return (gtk_widget_has_visible_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
754 }
755 
756 -(void)hide
757 {
758  gtk_widget_hide(GTK_WIDGET([self GOBJECT]));
759 }
760 
762 {
763  return (gtk_widget_hide_on_delete(GTK_WIDGET([self GOBJECT])) ? YES : NO);
764 }
765 
767 {
768  return (gtk_widget_in_destruction(GTK_WIDGET([self GOBJECT])) ? YES : NO);
769 }
770 
772 {
773  gtk_widget_init_template(GTK_WIDGET([self GOBJECT]));
774 }
775 
776 -(void)inputShapeCombineRegion:(cairo_region_t*) region
777 {
778  gtk_widget_input_shape_combine_region(GTK_WIDGET([self GOBJECT]), region);
779 }
780 
781 -(void)insertActionGroupWithName:(NSString*) name andGroup:(GActionGroup*) group
782 {
783  gtk_widget_insert_action_group(GTK_WIDGET([self GOBJECT]), [name UTF8String], group);
784 }
785 
786 -(BOOL)intersectWithArea:(const GdkRectangle*) area andIntersection:(GdkRectangle*) intersection
787 {
788  return (gtk_widget_intersect(GTK_WIDGET([self GOBJECT]), area, intersection) ? YES : NO);
789 }
790 
791 -(BOOL)isAncestor:(CGTKWidget*) ancestor
792 {
793  return (gtk_widget_is_ancestor(GTK_WIDGET([self GOBJECT]), [ancestor WIDGET]) ? YES : NO);
794 }
795 
797 {
798  return (gtk_widget_is_composited(GTK_WIDGET([self GOBJECT])) ? YES : NO);
799 }
800 
802 {
803  return (gtk_widget_is_drawable(GTK_WIDGET([self GOBJECT])) ? YES : NO);
804 }
805 
806 -(BOOL)isFocus
807 {
808  return (gtk_widget_is_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
809 }
810 
812 {
813  return (gtk_widget_is_sensitive(GTK_WIDGET([self GOBJECT])) ? YES : NO);
814 }
815 
817 {
818  return (gtk_widget_is_toplevel(GTK_WIDGET([self GOBJECT])) ? YES : NO);
819 }
820 
821 -(BOOL)isVisible
822 {
823  return (gtk_widget_is_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
824 }
825 
826 -(BOOL)keynavFailed:(GtkDirectionType) direction
827 {
828  return (gtk_widget_keynav_failed(GTK_WIDGET([self GOBJECT]), direction) ? YES : NO);
829 }
830 
832 {
833  return gtk_widget_list_accel_closures(GTK_WIDGET([self GOBJECT]));
834 }
835 
836 -(const gchar**)listActionPrefixes
837 {
838  return gtk_widget_list_action_prefixes(GTK_WIDGET([self GOBJECT]));
839 }
840 
842 {
843  return gtk_widget_list_mnemonic_labels(GTK_WIDGET([self GOBJECT]));
844 }
845 
846 -(void)map
847 {
848  gtk_widget_map(GTK_WIDGET([self GOBJECT]));
849 }
850 
851 -(BOOL)mnemonicActivate:(BOOL) groupCycling
852 {
853  return (gtk_widget_mnemonic_activate(GTK_WIDGET([self GOBJECT]), (groupCycling ? TRUE : FALSE)) ? YES : NO);
854 }
855 
856 -(void)modifyBaseWithState:(GtkStateType) state andColor:(const GdkColor*) color
857 {
858  gtk_widget_modify_base(GTK_WIDGET([self GOBJECT]), state, color);
859 }
860 
861 -(void)modifyBgWithState:(GtkStateType) state andColor:(const GdkColor*) color
862 {
863  gtk_widget_modify_bg(GTK_WIDGET([self GOBJECT]), state, color);
864 }
865 
866 -(void)modifyCursorWithPrimary:(const GdkColor*) primary andSecondary:(const GdkColor*) secondary
867 {
868  gtk_widget_modify_cursor(GTK_WIDGET([self GOBJECT]), primary, secondary);
869 }
870 
871 -(void)modifyFgWithState:(GtkStateType) state andColor:(const GdkColor*) color
872 {
873  gtk_widget_modify_fg(GTK_WIDGET([self GOBJECT]), state, color);
874 }
875 
876 -(void)modifyFont:(PangoFontDescription*) fontDesc
877 {
878  gtk_widget_modify_font(GTK_WIDGET([self GOBJECT]), fontDesc);
879 }
880 
881 -(void)modifyStyle:(GtkRcStyle*) style
882 {
883  gtk_widget_modify_style(GTK_WIDGET([self GOBJECT]), style);
884 }
885 
886 -(void)modifyTextWithState:(GtkStateType) state andColor:(const GdkColor*) color
887 {
888  gtk_widget_modify_text(GTK_WIDGET([self GOBJECT]), state, color);
889 }
890 
891 -(void)overrideBackgroundColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color
892 {
893  gtk_widget_override_background_color(GTK_WIDGET([self GOBJECT]), state, color);
894 }
895 
896 -(void)overrideColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color
897 {
898  gtk_widget_override_color(GTK_WIDGET([self GOBJECT]), state, color);
899 }
900 
901 -(void)overrideCursorWithCursor:(const GdkRGBA*) cursor andSecondaryCursor:(const GdkRGBA*) secondaryCursor
902 {
903  gtk_widget_override_cursor(GTK_WIDGET([self GOBJECT]), cursor, secondaryCursor);
904 }
905 
906 -(void)overrideFont:(const PangoFontDescription*) fontDesc
907 {
908  gtk_widget_override_font(GTK_WIDGET([self GOBJECT]), fontDesc);
909 }
910 
911 -(void)overrideSymbolicColorWithName:(NSString*) name andColor:(const GdkRGBA*) color
912 {
913  gtk_widget_override_symbolic_color(GTK_WIDGET([self GOBJECT]), [name UTF8String], color);
914 }
915 
916 -(void)pathWithPathLength:(guint*) pathLength andPath:(gchar**) path andPathReversed:(gchar**) pathReversed
917 {
918  gtk_widget_path(GTK_WIDGET([self GOBJECT]), pathLength, path, pathReversed);
919 }
920 
922 {
923  gtk_widget_queue_compute_expand(GTK_WIDGET([self GOBJECT]));
924 }
925 
926 -(void)queueDraw
927 {
928  gtk_widget_queue_draw(GTK_WIDGET([self GOBJECT]));
929 }
930 
931 -(void)queueDrawAreaWithX:(gint) x andY:(gint) y andWidth:(gint) width andHeight:(gint) height
932 {
933  gtk_widget_queue_draw_area(GTK_WIDGET([self GOBJECT]), x, y, width, height);
934 }
935 
936 -(void)queueDrawRegion:(const cairo_region_t*) region
937 {
938  gtk_widget_queue_draw_region(GTK_WIDGET([self GOBJECT]), region);
939 }
940 
942 {
943  gtk_widget_queue_resize(GTK_WIDGET([self GOBJECT]));
944 }
945 
947 {
948  gtk_widget_queue_resize_no_redraw(GTK_WIDGET([self GOBJECT]));
949 }
950 
951 -(void)realize
952 {
953  gtk_widget_realize(GTK_WIDGET([self GOBJECT]));
954 }
955 
956 -(cairo_region_t*)regionIntersect:(const cairo_region_t*) region
957 {
958  return gtk_widget_region_intersect(GTK_WIDGET([self GOBJECT]), region);
959 }
960 
961 -(void)registerWindow:(GdkWindow*) window
962 {
963  gtk_widget_register_window(GTK_WIDGET([self GOBJECT]), window);
964 }
965 
966 -(BOOL)removeAcceleratorWithAccelGroup:(GtkAccelGroup*) accelGroup andAccelKey:(guint) accelKey andAccelMods:(GdkModifierType) accelMods
967 {
968  return (gtk_widget_remove_accelerator(GTK_WIDGET([self GOBJECT]), accelGroup, accelKey, accelMods) ? YES : NO);
969 }
970 
971 -(void)removeMnemonicLabel:(CGTKWidget*) label
972 {
973  gtk_widget_remove_mnemonic_label(GTK_WIDGET([self GOBJECT]), [label WIDGET]);
974 }
975 
976 -(void)removeTickCallback:(guint) id
977 {
978  gtk_widget_remove_tick_callback(GTK_WIDGET([self GOBJECT]), id);
979 }
980 
981 -(GdkPixbuf*)renderIconWithStockId:(NSString*) stockId andSize:(GtkIconSize) size andDetail:(NSString*) detail
982 {
983  return gtk_widget_render_icon(GTK_WIDGET([self GOBJECT]), [stockId UTF8String], size, [detail UTF8String]);
984 }
985 
986 -(GdkPixbuf*)renderIconPixbufWithStockId:(NSString*) stockId andSize:(GtkIconSize) size
987 {
988  return gtk_widget_render_icon_pixbuf(GTK_WIDGET([self GOBJECT]), [stockId UTF8String], size);
989 }
990 
991 -(void)reparent:(CGTKWidget*) newParent
992 {
993  gtk_widget_reparent(GTK_WIDGET([self GOBJECT]), [newParent WIDGET]);
994 }
995 
997 {
998  gtk_widget_reset_rc_styles(GTK_WIDGET([self GOBJECT]));
999 }
1000 
1002 {
1003  gtk_widget_reset_style(GTK_WIDGET([self GOBJECT]));
1004 }
1005 
1006 -(gint)sendExpose:(GdkEvent*) event
1007 {
1008  return gtk_widget_send_expose(GTK_WIDGET([self GOBJECT]), event);
1009 }
1010 
1011 -(BOOL)sendFocusChange:(GdkEvent*) event
1012 {
1013  return (gtk_widget_send_focus_change(GTK_WIDGET([self GOBJECT]), event) ? YES : NO);
1014 }
1015 
1016 -(void)setAccelPathWithAccelPath:(NSString*) accelPath andAccelGroup:(GtkAccelGroup*) accelGroup
1017 {
1018  gtk_widget_set_accel_path(GTK_WIDGET([self GOBJECT]), [accelPath UTF8String], accelGroup);
1019 }
1020 
1021 -(void)setAllocation:(const GtkAllocation*) allocation
1022 {
1023  gtk_widget_set_allocation(GTK_WIDGET([self GOBJECT]), allocation);
1024 }
1025 
1026 -(void)setAppPaintable:(BOOL) appPaintable
1027 {
1028  gtk_widget_set_app_paintable(GTK_WIDGET([self GOBJECT]), (appPaintable ? TRUE : FALSE));
1029 }
1030 
1031 -(void)setCanDefault:(BOOL) canDefault
1032 {
1033  gtk_widget_set_can_default(GTK_WIDGET([self GOBJECT]), (canDefault ? TRUE : FALSE));
1034 }
1035 
1036 -(void)setCanFocus:(BOOL) canFocus
1037 {
1038  gtk_widget_set_can_focus(GTK_WIDGET([self GOBJECT]), (canFocus ? TRUE : FALSE));
1039 }
1040 
1041 -(void)setChildVisible:(BOOL) isVisible
1042 {
1043  gtk_widget_set_child_visible(GTK_WIDGET([self GOBJECT]), (isVisible ? TRUE : FALSE));
1044 }
1045 
1046 -(void)setClip:(const GtkAllocation*) clip
1047 {
1048  gtk_widget_set_clip(GTK_WIDGET([self GOBJECT]), clip);
1049 }
1050 
1051 -(void)setCompositeName:(NSString*) name
1052 {
1053  gtk_widget_set_composite_name(GTK_WIDGET([self GOBJECT]), [name UTF8String]);
1054 }
1055 
1056 -(void)setDeviceEnabledWithDevice:(GdkDevice*) device andEnabled:(BOOL) enabled
1057 {
1058  gtk_widget_set_device_enabled(GTK_WIDGET([self GOBJECT]), device, (enabled ? TRUE : FALSE));
1059 }
1060 
1061 -(void)setDeviceEventsWithDevice:(GdkDevice*) device andEvents:(GdkEventMask) events
1062 {
1063  gtk_widget_set_device_events(GTK_WIDGET([self GOBJECT]), device, events);
1064 }
1065 
1066 -(void)setDirection:(GtkTextDirection) dir
1067 {
1068  gtk_widget_set_direction(GTK_WIDGET([self GOBJECT]), dir);
1069 }
1070 
1071 -(void)setDoubleBuffered:(BOOL) doubleBuffered
1072 {
1073  gtk_widget_set_double_buffered(GTK_WIDGET([self GOBJECT]), (doubleBuffered ? TRUE : FALSE));
1074 }
1075 
1076 -(void)setEvents:(gint) events
1077 {
1078  gtk_widget_set_events(GTK_WIDGET([self GOBJECT]), events);
1079 }
1080 
1081 -(void)setFontMap:(PangoFontMap*) fontMap
1082 {
1083  gtk_widget_set_font_map(GTK_WIDGET([self GOBJECT]), fontMap);
1084 }
1085 
1086 -(void)setFontOptions:(const cairo_font_options_t*) options
1087 {
1088  gtk_widget_set_font_options(GTK_WIDGET([self GOBJECT]), options);
1089 }
1090 
1091 -(void)setHalign:(GtkAlign) align
1092 {
1093  gtk_widget_set_halign(GTK_WIDGET([self GOBJECT]), align);
1094 }
1095 
1096 -(void)setHasTooltip:(BOOL) hasTooltip
1097 {
1098  gtk_widget_set_has_tooltip(GTK_WIDGET([self GOBJECT]), (hasTooltip ? TRUE : FALSE));
1099 }
1100 
1101 -(void)setHasWindow:(BOOL) hasWindow
1102 {
1103  gtk_widget_set_has_window(GTK_WIDGET([self GOBJECT]), (hasWindow ? TRUE : FALSE));
1104 }
1105 
1106 -(void)setHexpand:(BOOL) expand
1107 {
1108  gtk_widget_set_hexpand(GTK_WIDGET([self GOBJECT]), (expand ? TRUE : FALSE));
1109 }
1110 
1111 -(void)setHexpandSet:(BOOL) set
1112 {
1113  gtk_widget_set_hexpand_set(GTK_WIDGET([self GOBJECT]), (set ? TRUE : FALSE));
1114 }
1115 
1116 -(void)setMapped:(BOOL) mapped
1117 {
1118  gtk_widget_set_mapped(GTK_WIDGET([self GOBJECT]), (mapped ? TRUE : FALSE));
1119 }
1120 
1121 -(void)setMarginBottom:(gint) margin
1122 {
1123  gtk_widget_set_margin_bottom(GTK_WIDGET([self GOBJECT]), margin);
1124 }
1125 
1126 -(void)setMarginEnd:(gint) margin
1127 {
1128  gtk_widget_set_margin_end(GTK_WIDGET([self GOBJECT]), margin);
1129 }
1130 
1131 -(void)setMarginLeft:(gint) margin
1132 {
1133  gtk_widget_set_margin_left(GTK_WIDGET([self GOBJECT]), margin);
1134 }
1135 
1136 -(void)setMarginRight:(gint) margin
1137 {
1138  gtk_widget_set_margin_right(GTK_WIDGET([self GOBJECT]), margin);
1139 }
1140 
1141 -(void)setMarginStart:(gint) margin
1142 {
1143  gtk_widget_set_margin_start(GTK_WIDGET([self GOBJECT]), margin);
1144 }
1145 
1146 -(void)setMarginTop:(gint) margin
1147 {
1148  gtk_widget_set_margin_top(GTK_WIDGET([self GOBJECT]), margin);
1149 }
1150 
1151 -(void)setName:(NSString*) name
1152 {
1153  gtk_widget_set_name(GTK_WIDGET([self GOBJECT]), [name UTF8String]);
1154 }
1155 
1156 -(void)setNoShowAll:(BOOL) noShowAll
1157 {
1158  gtk_widget_set_no_show_all(GTK_WIDGET([self GOBJECT]), (noShowAll ? TRUE : FALSE));
1159 }
1160 
1161 -(void)setOpacity:(double) opacity
1162 {
1163  gtk_widget_set_opacity(GTK_WIDGET([self GOBJECT]), opacity);
1164 }
1165 
1166 -(void)setParent:(CGTKWidget*) parent
1167 {
1168  gtk_widget_set_parent(GTK_WIDGET([self GOBJECT]), [parent WIDGET]);
1169 }
1170 
1171 -(void)setParentWindow:(GdkWindow*) parentWindow
1172 {
1173  gtk_widget_set_parent_window(GTK_WIDGET([self GOBJECT]), parentWindow);
1174 }
1175 
1176 -(void)setRealized:(BOOL) realized
1177 {
1178  gtk_widget_set_realized(GTK_WIDGET([self GOBJECT]), (realized ? TRUE : FALSE));
1179 }
1180 
1181 -(void)setReceivesDefault:(BOOL) receivesDefault
1182 {
1183  gtk_widget_set_receives_default(GTK_WIDGET([self GOBJECT]), (receivesDefault ? TRUE : FALSE));
1184 }
1185 
1186 -(void)setRedrawOnAllocate:(BOOL) redrawOnAllocate
1187 {
1188  gtk_widget_set_redraw_on_allocate(GTK_WIDGET([self GOBJECT]), (redrawOnAllocate ? TRUE : FALSE));
1189 }
1190 
1191 -(void)setSensitive:(BOOL) sensitive
1192 {
1193  gtk_widget_set_sensitive(GTK_WIDGET([self GOBJECT]), (sensitive ? TRUE : FALSE));
1194 }
1195 
1196 -(void)setSizeRequestWithWidth:(gint) width andHeight:(gint) height
1197 {
1198  gtk_widget_set_size_request(GTK_WIDGET([self GOBJECT]), width, height);
1199 }
1200 
1201 -(void)setState:(GtkStateType) state
1202 {
1203  gtk_widget_set_state(GTK_WIDGET([self GOBJECT]), state);
1204 }
1205 
1206 -(void)setStateFlagsWithFlags:(GtkStateFlags) flags andClear:(BOOL) clear
1207 {
1208  gtk_widget_set_state_flags(GTK_WIDGET([self GOBJECT]), flags, (clear ? TRUE : FALSE));
1209 }
1210 
1211 -(void)setStyle:(GtkStyle*) style
1212 {
1213  gtk_widget_set_style(GTK_WIDGET([self GOBJECT]), style);
1214 }
1215 
1216 -(void)setSupportMultidevice:(BOOL) supportMultidevice
1217 {
1218  gtk_widget_set_support_multidevice(GTK_WIDGET([self GOBJECT]), (supportMultidevice ? TRUE : FALSE));
1219 }
1220 
1221 -(void)setTooltipMarkup:(NSString*) markup
1222 {
1223  gtk_widget_set_tooltip_markup(GTK_WIDGET([self GOBJECT]), [markup UTF8String]);
1224 }
1225 
1226 -(void)setTooltipText:(NSString*) text
1227 {
1228  gtk_widget_set_tooltip_text(GTK_WIDGET([self GOBJECT]), [text UTF8String]);
1229 }
1230 
1231 -(void)setTooltipWindow:(GtkWindow*) customWindow
1232 {
1233  gtk_widget_set_tooltip_window(GTK_WIDGET([self GOBJECT]), customWindow);
1234 }
1235 
1236 -(void)setValign:(GtkAlign) align
1237 {
1238  gtk_widget_set_valign(GTK_WIDGET([self GOBJECT]), align);
1239 }
1240 
1241 -(void)setVexpand:(BOOL) expand
1242 {
1243  gtk_widget_set_vexpand(GTK_WIDGET([self GOBJECT]), (expand ? TRUE : FALSE));
1244 }
1245 
1246 -(void)setVexpandSet:(BOOL) set
1247 {
1248  gtk_widget_set_vexpand_set(GTK_WIDGET([self GOBJECT]), (set ? TRUE : FALSE));
1249 }
1250 
1251 -(void)setVisible:(BOOL) visible
1252 {
1253  gtk_widget_set_visible(GTK_WIDGET([self GOBJECT]), (visible ? TRUE : FALSE));
1254 }
1255 
1256 -(void)setVisual:(GdkVisual*) visual
1257 {
1258  gtk_widget_set_visual(GTK_WIDGET([self GOBJECT]), visual);
1259 }
1260 
1261 -(void)setWindow:(GdkWindow*) window
1262 {
1263  gtk_widget_set_window(GTK_WIDGET([self GOBJECT]), window);
1264 }
1265 
1266 -(void)shapeCombineRegion:(cairo_region_t*) region
1267 {
1268  gtk_widget_shape_combine_region(GTK_WIDGET([self GOBJECT]), region);
1269 }
1270 
1271 -(void)show
1272 {
1273  gtk_widget_show(GTK_WIDGET([self GOBJECT]));
1274 }
1275 
1276 -(void)showAll
1277 {
1278  gtk_widget_show_all(GTK_WIDGET([self GOBJECT]));
1279 }
1280 
1281 -(void)showNow
1282 {
1283  gtk_widget_show_now(GTK_WIDGET([self GOBJECT]));
1284 }
1285 
1286 -(void)sizeAllocate:(GtkAllocation*) allocation
1287 {
1288  gtk_widget_size_allocate(GTK_WIDGET([self GOBJECT]), allocation);
1289 }
1290 
1291 -(void)sizeAllocateWithBaselineWithAllocation:(GtkAllocation*) allocation andBaseline:(gint) baseline
1292 {
1293  gtk_widget_size_allocate_with_baseline(GTK_WIDGET([self GOBJECT]), allocation, baseline);
1294 }
1295 
1296 -(void)sizeRequest:(GtkRequisition*) requisition
1297 {
1298  gtk_widget_size_request(GTK_WIDGET([self GOBJECT]), requisition);
1299 }
1300 
1302 {
1303  gtk_widget_style_attach(GTK_WIDGET([self GOBJECT]));
1304 }
1305 
1306 -(void)styleGetPropertyWithPropertyName:(NSString*) propertyName andValue:(GValue*) value
1307 {
1308  gtk_widget_style_get_property(GTK_WIDGET([self GOBJECT]), [propertyName UTF8String], value);
1309 }
1310 
1311 -(void)styleGetValistWithFirstPropertyName:(NSString*) firstPropertyName andVarArgs:(va_list) varArgs
1312 {
1313  gtk_widget_style_get_valist(GTK_WIDGET([self GOBJECT]), [firstPropertyName UTF8String], varArgs);
1314 }
1315 
1317 {
1318  gtk_widget_thaw_child_notify(GTK_WIDGET([self GOBJECT]));
1319 }
1320 
1321 -(BOOL)translateCoordinatesWithDestWidget:(CGTKWidget*) destWidget andSrcX:(gint) srcX andSrcY:(gint) srcY andDestX:(gint*) destX andDestY:(gint*) destY
1322 {
1323  return (gtk_widget_translate_coordinates(GTK_WIDGET([self GOBJECT]), [destWidget WIDGET], srcX, srcY, destX, destY) ? YES : NO);
1324 }
1325 
1327 {
1328  gtk_widget_trigger_tooltip_query(GTK_WIDGET([self GOBJECT]));
1329 }
1330 
1331 -(void)unmap
1332 {
1333  gtk_widget_unmap(GTK_WIDGET([self GOBJECT]));
1334 }
1335 
1336 -(void)unparent
1337 {
1338  gtk_widget_unparent(GTK_WIDGET([self GOBJECT]));
1339 }
1340 
1342 {
1343  gtk_widget_unrealize(GTK_WIDGET([self GOBJECT]));
1344 }
1345 
1346 -(void)unregisterWindow:(GdkWindow*) window
1347 {
1348  gtk_widget_unregister_window(GTK_WIDGET([self GOBJECT]), window);
1349 }
1350 
1351 -(void)unsetStateFlags:(GtkStateFlags) flags
1352 {
1353  gtk_widget_unset_state_flags(GTK_WIDGET([self GOBJECT]), flags);
1354 }
1355 
1356 
1357 @end
void initTemplate()
Definition: CGTKWidget.m:771
BOOL getHexpandSet()
Definition: CGTKWidget.m:451
BOOL activate()
Definition: CGTKWidget.m:66
GtkSizeRequestMode getRequestMode()
Definition: CGTKWidget.m:581
BOOL isSensitive()
Definition: CGTKWidget.m:811
NSString * getTooltipText()
Definition: CGTKWidget.m:656
PangoFontMap * getFontMap()
Definition: CGTKWidget.m:416
GObject * GOBJECT()
Definition: CGTKBase.m:82
void gtkDragDestAddImageTargets()
Definition: CGTKWidget.m:161
BOOL gtkDragDestGetTrackMotion()
Definition: CGTKWidget.m:186
int getAllocatedBaseline()
Definition: CGTKWidget.m:321
BOOL isToplevel()
Definition: CGTKWidget.m:816
GtkTargetList * gtkDragDestGetTargetList()
Definition: CGTKWidget.m:181
GtkAlign getValign()
Definition: CGTKWidget.m:671
void gtkDragUnhighlight()
Definition: CGTKWidget.m:281
BOOL getVisible()
Definition: CGTKWidget.m:691
GdkWindow * getParentWindow()
Definition: CGTKWidget.m:526
void styleAttach()
Definition: CGTKWidget.m:1301
void thawChildNotify()
Definition: CGTKWidget.m:1316
void hide()
Definition: CGTKWidget.m:756
GtkStateType getState()
Definition: CGTKWidget.m:621
BOOL hasVisibleFocus()
Definition: CGTKWidget.m:751
GtkSettings * getSettings()
Definition: CGTKWidget.m:611
BOOL getSensitive()
Definition: CGTKWidget.m:606
BOOL hasGrab()
Definition: CGTKWidget.m:736
GList * listMnemonicLabels()
Definition: CGTKWidget.m:841
void resetStyle()
Definition: CGTKWidget.m:1001
void gtkDragSourceAddUriTargets()
Definition: CGTKWidget.m:236
GdkScreen * getScreen()
Definition: CGTKWidget.m:601
void queueResize()
Definition: CGTKWidget.m:941
NSString * getCompositeName()
Definition: CGTKWidget.m:381
CGTKWidget * getToplevel()
Definition: CGTKWidget.m:666
GtkTextDirection getDefaultDirection()
Definition: CGTKWidget.m:36
void gtkDragDestAddTextTargets()
Definition: CGTKWidget.m:166
GtkTextDirection getDirection()
Definition: CGTKWidget.m:396
BOOL getReceivesDefault()
Definition: CGTKWidget.m:576
GdkDisplay * getDisplay()
Definition: CGTKWidget.m:401
void freezeChildNotify()
Definition: CGTKWidget.m:306
void realize()
Definition: CGTKWidget.m:951
void gtkDragDestUnset()
Definition: CGTKWidget.m:211
const gchar ** listActionPrefixes()
Definition: CGTKWidget.m:836
BOOL getNoShowAll()
Definition: CGTKWidget.m:506
double getOpacity()
Definition: CGTKWidget.m:511
void unmap()
Definition: CGTKWidget.m:1331
GdkWindow * getWindow()
Definition: CGTKWidget.m:701
BOOL isDrawable()
Definition: CGTKWidget.m:801
GtkAlign getHalign()
Definition: CGTKWidget.m:431
const cairo_font_options_t * getFontOptions()
Definition: CGTKWidget.m:421
void showAll()
Definition: CGTKWidget.m:1276
void map()
Definition: CGTKWidget.m:846
BOOL hasRcStyle()
Definition: CGTKWidget.m:741
BOOL isFocus()
Definition: CGTKWidget.m:806
PangoContext * getPangoContext()
Definition: CGTKWidget.m:516
gint getMarginBottom()
Definition: CGTKWidget.m:461
BOOL hasScreen()
Definition: CGTKWidget.m:746
void destroy()
Definition: CGTKWidget.m:131
NSString * getName()
Definition: CGTKWidget.m:501
BOOL hideOnDelete()
Definition: CGTKWidget.m:761
void gtkGrabRemove()
Definition: CGTKWidget.m:721
void gtkDragDestAddUriTargets()
Definition: CGTKWidget.m:171
BOOL getChildVisible()
Definition: CGTKWidget.m:366
GtkWidget * WIDGET()
Definition: CGTKWidget.m:61
GList * listAccelClosures()
Definition: CGTKWidget.m:831
BOOL getAppPaintable()
Definition: CGTKWidget.m:346
void gtkDragHighlight()
Definition: CGTKWidget.m:221
GtkStateFlags getStateFlags()
Definition: CGTKWidget.m:626
void queueResizeNoRedraw()
Definition: CGTKWidget.m:946
void grabFocus()
Definition: CGTKWidget.m:716
GdkWindow * getRootWindow()
Definition: CGTKWidget.m:591
int getAllocatedHeight()
Definition: CGTKWidget.m:326
GtkWidgetPath * getPath()
Definition: CGTKWidget.m:531
void gtkDragSourceAddImageTargets()
Definition: CGTKWidget.m:226
CGTKWidget * getParent()
Definition: CGTKWidget.m:521
BOOL getVexpandSet()
Definition: CGTKWidget.m:686
void errorBell()
Definition: CGTKWidget.m:296
GtkRcStyle * getModifierStyle()
Definition: CGTKWidget.m:496
gint getMarginStart()
Definition: CGTKWidget.m:481
GtkAlign getValignWithBaseline()
Definition: CGTKWidget.m:676
NSString * getTooltipMarkup()
Definition: CGTKWidget.m:651
GdkFrameClock * getFrameClock()
Definition: CGTKWidget.m:426
BOOL getVexpand()
Definition: CGTKWidget.m:681
void triggerTooltipQuery()
Definition: CGTKWidget.m:1326
BOOL isComposited()
Definition: CGTKWidget.m:796
void unparent()
Definition: CGTKWidget.m:1336
void queueDraw()
Definition: CGTKWidget.m:926
BOOL getHasTooltip()
Definition: CGTKWidget.m:436
void gtkDragSourceUnset()
Definition: CGTKWidget.m:276
BOOL getCanFocus()
Definition: CGTKWidget.m:356
gint getMarginEnd()
Definition: CGTKWidget.m:466
void unrealize()
Definition: CGTKWidget.m:1341
BOOL hasFocus()
Definition: CGTKWidget.m:731
gint getMarginLeft()
Definition: CGTKWidget.m:471
gint getScaleFactor()
Definition: CGTKWidget.m:596
gint getMarginRight()
Definition: CGTKWidget.m:476
BOOL isVisible()
Definition: CGTKWidget.m:821
BOOL getHasWindow()
Definition: CGTKWidget.m:441
void grabDefault()
Definition: CGTKWidget.m:711
BOOL getSupportMultidevice()
Definition: CGTKWidget.m:641
BOOL getHexpand()
Definition: CGTKWidget.m:446
GtkStyle * getStyle()
Definition: CGTKWidget.m:631
int getAllocatedWidth()
Definition: CGTKWidget.m:331
BOOL getMapped()
Definition: CGTKWidget.m:456
GtkStyleContext * getStyleContext()
Definition: CGTKWidget.m:636
void showNow()
Definition: CGTKWidget.m:1281
AtkObject * getAccessible()
Definition: CGTKWidget.m:311
gint getMarginTop()
Definition: CGTKWidget.m:486
GtkWindow * getTooltipWindow()
Definition: CGTKWidget.m:661
BOOL inDestruction()
Definition: CGTKWidget.m:766
GtkTargetList * gtkDragSourceGetTargetList()
Definition: CGTKWidget.m:241
void gtkGrabAdd()
Definition: CGTKWidget.m:706
PangoContext * createPangoContext()
Definition: CGTKWidget.m:121
void resetRcStyles()
Definition: CGTKWidget.m:996
BOOL getCanDefault()
Definition: CGTKWidget.m:351
BOOL hasDefault()
Definition: CGTKWidget.m:726
GdkVisual * getVisual()
Definition: CGTKWidget.m:696
void gtkDragSourceAddTextTargets()
Definition: CGTKWidget.m:231
BOOL getRealized()
Definition: CGTKWidget.m:571
BOOL getDoubleBuffered()
Definition: CGTKWidget.m:406
void queueComputeExpand()
Definition: CGTKWidget.m:921
gint getEvents()
Definition: CGTKWidget.m:411
void ensureStyle()
Definition: CGTKWidget.m:291