CoreGTK 3.22.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) 2017 - 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, 2017. 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
161 -(void)gtkDragDestAddImageTargets
162 {
163 gtk_drag_dest_add_image_targets(GTK_WIDGET([self GOBJECT]));
164 }
165
166 -(void)gtkDragDestAddTextTargets
167 {
168 gtk_drag_dest_add_text_targets(GTK_WIDGET([self GOBJECT]));
169 }
170
171 -(void)gtkDragDestAddUriTargets
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
186 -(BOOL)gtkDragDestGetTrackMotion
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
211 -(void)gtkDragDestUnset
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
221 -(void)gtkDragHighlight
222 {
223 gtk_drag_highlight(GTK_WIDGET([self GOBJECT]));
224 }
225
226 -(void)gtkDragSourceAddImageTargets
227 {
228 gtk_drag_source_add_image_targets(GTK_WIDGET([self GOBJECT]));
229 }
230
231 -(void)gtkDragSourceAddTextTargets
232 {
233 gtk_drag_source_add_text_targets(GTK_WIDGET([self GOBJECT]));
234 }
235
236 -(void)gtkDragSourceAddUriTargets
237 {
238 gtk_drag_source_add_uri_targets(GTK_WIDGET([self GOBJECT]));
239 }
240
241 -(GtkTargetList*)gtkDragSourceGetTargetList
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
276 -(void)gtkDragSourceUnset
277 {
278 gtk_drag_source_unset(GTK_WIDGET([self GOBJECT]));
279 }
280
281 -(void)gtkDragUnhighlight
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
291 -(void)ensureStyle
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
306 -(void)freezeChildNotify
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
321 -(int)getAllocatedBaseline
322 {
323 return gtk_widget_get_allocated_baseline(GTK_WIDGET([self GOBJECT]));
324 }
325
326 -(int)getAllocatedHeight
327 {
328 return gtk_widget_get_allocated_height(GTK_WIDGET([self GOBJECT]));
329 }
330
331 -(void)getAllocatedSizeWithAllocation:(GtkAllocation*) allocation andBaseline:(int*) baseline
332 {
333 gtk_widget_get_allocated_size(GTK_WIDGET([self GOBJECT]), allocation, baseline);
334 }
335
336 -(int)getAllocatedWidth
337 {
338 return gtk_widget_get_allocated_width(GTK_WIDGET([self GOBJECT]));
339 }
340
341 -(void)getAllocation:(GtkAllocation*) allocation
342 {
343 gtk_widget_get_allocation(GTK_WIDGET([self GOBJECT]), allocation);
344 }
345
346 -(CGTKWidget*)getAncestor:(GType) widgetType
347 {
348 return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_ancestor(GTK_WIDGET([self GOBJECT]), widgetType)];
349 }
350
351 -(BOOL)getAppPaintable
352 {
353 return (gtk_widget_get_app_paintable(GTK_WIDGET([self GOBJECT])) ? YES : NO);
354 }
355
356 -(BOOL)getCanDefault
357 {
358 return (gtk_widget_get_can_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
359 }
360
361 -(BOOL)getCanFocus
362 {
363 return (gtk_widget_get_can_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
364 }
365
366 -(void)getChildRequisition:(GtkRequisition*) requisition
367 {
368 gtk_widget_get_child_requisition(GTK_WIDGET([self GOBJECT]), requisition);
369 }
370
371 -(BOOL)getChildVisible
372 {
373 return (gtk_widget_get_child_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
374 }
375
376 -(void)getClip:(GtkAllocation*) clip
377 {
378 gtk_widget_get_clip(GTK_WIDGET([self GOBJECT]), clip);
379 }
380
381 -(GtkClipboard*)getClipboard:(GdkAtom) selection
382 {
383 return gtk_widget_get_clipboard(GTK_WIDGET([self GOBJECT]), selection);
384 }
385
386 -(NSString*)getCompositeName
387 {
388 return [NSString stringWithUTF8String:gtk_widget_get_composite_name(GTK_WIDGET([self GOBJECT]))];
389 }
390
391 -(BOOL)getDeviceEnabled:(GdkDevice*) device
392 {
393 return (gtk_widget_get_device_enabled(GTK_WIDGET([self GOBJECT]), device) ? YES : NO);
394 }
395
396 -(GdkEventMask)getDeviceEvents:(GdkDevice*) device
397 {
398 return gtk_widget_get_device_events(GTK_WIDGET([self GOBJECT]), device);
399 }
400
401 -(GtkTextDirection)getDirection
402 {
403 return gtk_widget_get_direction(GTK_WIDGET([self GOBJECT]));
404 }
405
406 -(GdkDisplay*)getDisplay
407 {
408 return gtk_widget_get_display(GTK_WIDGET([self GOBJECT]));
409 }
410
411 -(BOOL)getDoubleBuffered
412 {
413 return (gtk_widget_get_double_buffered(GTK_WIDGET([self GOBJECT])) ? YES : NO);
414 }
415
416 -(gint)getEvents
417 {
418 return gtk_widget_get_events(GTK_WIDGET([self GOBJECT]));
419 }
420
421 -(BOOL)getFocusOnClick
422 {
423 return (gtk_widget_get_focus_on_click(GTK_WIDGET([self GOBJECT])) ? YES : NO);
424 }
425
426 -(PangoFontMap*)getFontMap
427 {
428 return gtk_widget_get_font_map(GTK_WIDGET([self GOBJECT]));
429 }
430
431 -(const cairo_font_options_t*)getFontOptions
432 {
433 return gtk_widget_get_font_options(GTK_WIDGET([self GOBJECT]));
434 }
435
436 -(GdkFrameClock*)getFrameClock
437 {
438 return gtk_widget_get_frame_clock(GTK_WIDGET([self GOBJECT]));
439 }
440
441 -(GtkAlign)getHalign
442 {
443 return gtk_widget_get_halign(GTK_WIDGET([self GOBJECT]));
444 }
445
446 -(BOOL)getHasTooltip
447 {
448 return (gtk_widget_get_has_tooltip(GTK_WIDGET([self GOBJECT])) ? YES : NO);
449 }
450
451 -(BOOL)getHasWindow
452 {
453 return (gtk_widget_get_has_window(GTK_WIDGET([self GOBJECT])) ? YES : NO);
454 }
455
456 -(BOOL)getHexpand
457 {
458 return (gtk_widget_get_hexpand(GTK_WIDGET([self GOBJECT])) ? YES : NO);
459 }
460
461 -(BOOL)getHexpandSet
462 {
463 return (gtk_widget_get_hexpand_set(GTK_WIDGET([self GOBJECT])) ? YES : NO);
464 }
465
466 -(BOOL)getMapped
467 {
468 return (gtk_widget_get_mapped(GTK_WIDGET([self GOBJECT])) ? YES : NO);
469 }
470
471 -(gint)getMarginBottom
472 {
473 return gtk_widget_get_margin_bottom(GTK_WIDGET([self GOBJECT]));
474 }
475
476 -(gint)getMarginEnd
477 {
478 return gtk_widget_get_margin_end(GTK_WIDGET([self GOBJECT]));
479 }
480
481 -(gint)getMarginLeft
482 {
483 return gtk_widget_get_margin_left(GTK_WIDGET([self GOBJECT]));
484 }
485
486 -(gint)getMarginRight
487 {
488 return gtk_widget_get_margin_right(GTK_WIDGET([self GOBJECT]));
489 }
490
491 -(gint)getMarginStart
492 {
493 return gtk_widget_get_margin_start(GTK_WIDGET([self GOBJECT]));
494 }
495
496 -(gint)getMarginTop
497 {
498 return gtk_widget_get_margin_top(GTK_WIDGET([self GOBJECT]));
499 }
500
501 -(GdkModifierType)getModifierMask:(GdkModifierIntent) intent
502 {
503 return gtk_widget_get_modifier_mask(GTK_WIDGET([self GOBJECT]), intent);
504 }
505
506 -(GtkRcStyle*)getModifierStyle
507 {
508 return gtk_widget_get_modifier_style(GTK_WIDGET([self GOBJECT]));
509 }
510
511 -(NSString*)getName
512 {
513 return [NSString stringWithUTF8String:gtk_widget_get_name(GTK_WIDGET([self GOBJECT]))];
514 }
515
516 -(BOOL)getNoShowAll
517 {
518 return (gtk_widget_get_no_show_all(GTK_WIDGET([self GOBJECT])) ? YES : NO);
519 }
520
521 -(double)getOpacity
522 {
523 return gtk_widget_get_opacity(GTK_WIDGET([self GOBJECT]));
524 }
525
526 -(PangoContext*)getPangoContext
527 {
528 return gtk_widget_get_pango_context(GTK_WIDGET([self GOBJECT]));
529 }
530
531 -(CGTKWidget*)getParent
532 {
533 return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_parent(GTK_WIDGET([self GOBJECT]))];
534 }
535
536 -(GdkWindow*)getParentWindow
537 {
538 return gtk_widget_get_parent_window(GTK_WIDGET([self GOBJECT]));
539 }
540
541 -(GtkWidgetPath*)getPath
542 {
543 return gtk_widget_get_path(GTK_WIDGET([self GOBJECT]));
544 }
545
546 -(void)getPointerWithX:(gint*) x andY:(gint*) y
547 {
548 gtk_widget_get_pointer(GTK_WIDGET([self GOBJECT]), x, y);
549 }
550
551 -(void)getPreferredHeightWithMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight
552 {
553 gtk_widget_get_preferred_height(GTK_WIDGET([self GOBJECT]), minimumHeight, naturalHeight);
554 }
555
556 -(void)getPreferredHeightAndBaselineForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight andMinimumBaseline:(gint*) minimumBaseline andNaturalBaseline:(gint*) naturalBaseline
557 {
558 gtk_widget_get_preferred_height_and_baseline_for_width(GTK_WIDGET([self GOBJECT]), width, minimumHeight, naturalHeight, minimumBaseline, naturalBaseline);
559 }
560
561 -(void)getPreferredHeightForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight
562 {
563 gtk_widget_get_preferred_height_for_width(GTK_WIDGET([self GOBJECT]), width, minimumHeight, naturalHeight);
564 }
565
566 -(void)getPreferredSizeWithMinimumSize:(GtkRequisition*) minimumSize andNaturalSize:(GtkRequisition*) naturalSize
567 {
568 gtk_widget_get_preferred_size(GTK_WIDGET([self GOBJECT]), minimumSize, naturalSize);
569 }
570
571 -(void)getPreferredWidthWithMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth
572 {
573 gtk_widget_get_preferred_width(GTK_WIDGET([self GOBJECT]), minimumWidth, naturalWidth);
574 }
575
576 -(void)getPreferredWidthForHeightWithHeight:(gint) height andMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth
577 {
578 gtk_widget_get_preferred_width_for_height(GTK_WIDGET([self GOBJECT]), height, minimumWidth, naturalWidth);
579 }
580
581 -(BOOL)getRealized
582 {
583 return (gtk_widget_get_realized(GTK_WIDGET([self GOBJECT])) ? YES : NO);
584 }
585
586 -(BOOL)getReceivesDefault
587 {
588 return (gtk_widget_get_receives_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
589 }
590
591 -(GtkSizeRequestMode)getRequestMode
592 {
593 return gtk_widget_get_request_mode(GTK_WIDGET([self GOBJECT]));
594 }
595
596 -(void)getRequisition:(GtkRequisition*) requisition
597 {
598 gtk_widget_get_requisition(GTK_WIDGET([self GOBJECT]), requisition);
599 }
600
601 -(GdkWindow*)getRootWindow
602 {
603 return gtk_widget_get_root_window(GTK_WIDGET([self GOBJECT]));
604 }
605
606 -(gint)getScaleFactor
607 {
608 return gtk_widget_get_scale_factor(GTK_WIDGET([self GOBJECT]));
609 }
610
611 -(GdkScreen*)getScreen
612 {
613 return gtk_widget_get_screen(GTK_WIDGET([self GOBJECT]));
614 }
615
616 -(BOOL)getSensitive
617 {
618 return (gtk_widget_get_sensitive(GTK_WIDGET([self GOBJECT])) ? YES : NO);
619 }
620
621 -(GtkSettings*)getSettings
622 {
623 return gtk_widget_get_settings(GTK_WIDGET([self GOBJECT]));
624 }
625
626 -(void)getSizeRequestWithWidth:(gint*) width andHeight:(gint*) height
627 {
628 gtk_widget_get_size_request(GTK_WIDGET([self GOBJECT]), width, height);
629 }
630
631 -(GtkStateType)getState
632 {
633 return gtk_widget_get_state(GTK_WIDGET([self GOBJECT]));
634 }
635
636 -(GtkStateFlags)getStateFlags
637 {
638 return gtk_widget_get_state_flags(GTK_WIDGET([self GOBJECT]));
639 }
640
641 -(GtkStyle*)getStyle
642 {
643 return gtk_widget_get_style(GTK_WIDGET([self GOBJECT]));
644 }
645
646 -(GtkStyleContext*)getStyleContext
647 {
648 return gtk_widget_get_style_context(GTK_WIDGET([self GOBJECT]));
649 }
650
651 -(BOOL)getSupportMultidevice
652 {
653 return (gtk_widget_get_support_multidevice(GTK_WIDGET([self GOBJECT])) ? YES : NO);
654 }
655
656 -(GObject*)getTemplateChildWithWidgetType:(GType) widgetType andName:(NSString*) name
657 {
658 return gtk_widget_get_template_child(GTK_WIDGET([self GOBJECT]), widgetType, [name UTF8String]);
659 }
660
661 -(NSString*)getTooltipMarkup
662 {
663 return [NSString stringWithUTF8String:gtk_widget_get_tooltip_markup(GTK_WIDGET([self GOBJECT]))];
664 }
665
666 -(NSString*)getTooltipText
667 {
668 return [NSString stringWithUTF8String:gtk_widget_get_tooltip_text(GTK_WIDGET([self GOBJECT]))];
669 }
670
671 -(GtkWindow*)getTooltipWindow
672 {
673 return gtk_widget_get_tooltip_window(GTK_WIDGET([self GOBJECT]));
674 }
675
676 -(CGTKWidget*)getToplevel
677 {
678 return [[CGTKWidget alloc] initWithGObject:(GObject *)gtk_widget_get_toplevel(GTK_WIDGET([self GOBJECT]))];
679 }
680
681 -(GtkAlign)getValign
682 {
683 return gtk_widget_get_valign(GTK_WIDGET([self GOBJECT]));
684 }
685
686 -(GtkAlign)getValignWithBaseline
687 {
688 return gtk_widget_get_valign_with_baseline(GTK_WIDGET([self GOBJECT]));
689 }
690
691 -(BOOL)getVexpand
692 {
693 return (gtk_widget_get_vexpand(GTK_WIDGET([self GOBJECT])) ? YES : NO);
694 }
695
696 -(BOOL)getVexpandSet
697 {
698 return (gtk_widget_get_vexpand_set(GTK_WIDGET([self GOBJECT])) ? YES : NO);
699 }
700
701 -(BOOL)getVisible
702 {
703 return (gtk_widget_get_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
704 }
705
706 -(GdkVisual*)getVisual
707 {
708 return gtk_widget_get_visual(GTK_WIDGET([self GOBJECT]));
709 }
710
711 -(GdkWindow*)getWindow
712 {
713 return gtk_widget_get_window(GTK_WIDGET([self GOBJECT]));
714 }
715
716 -(void)gtkGrabAdd
717 {
718 gtk_grab_add(GTK_WIDGET([self GOBJECT]));
719 }
720
721 -(void)grabDefault
722 {
723 gtk_widget_grab_default(GTK_WIDGET([self GOBJECT]));
724 }
725
726 -(void)grabFocus
727 {
728 gtk_widget_grab_focus(GTK_WIDGET([self GOBJECT]));
729 }
730
731 -(void)gtkGrabRemove
732 {
733 gtk_grab_remove(GTK_WIDGET([self GOBJECT]));
734 }
735
736 -(BOOL)hasDefault
737 {
738 return (gtk_widget_has_default(GTK_WIDGET([self GOBJECT])) ? YES : NO);
739 }
740
741 -(BOOL)hasFocus
742 {
743 return (gtk_widget_has_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
744 }
745
746 -(BOOL)hasGrab
747 {
748 return (gtk_widget_has_grab(GTK_WIDGET([self GOBJECT])) ? YES : NO);
749 }
750
751 -(BOOL)hasRcStyle
752 {
753 return (gtk_widget_has_rc_style(GTK_WIDGET([self GOBJECT])) ? YES : NO);
754 }
755
756 -(BOOL)hasScreen
757 {
758 return (gtk_widget_has_screen(GTK_WIDGET([self GOBJECT])) ? YES : NO);
759 }
760
761 -(BOOL)hasVisibleFocus
762 {
763 return (gtk_widget_has_visible_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
764 }
765
766 -(void)hide
767 {
768 gtk_widget_hide(GTK_WIDGET([self GOBJECT]));
769 }
770
771 -(BOOL)hideOnDelete
772 {
773 return (gtk_widget_hide_on_delete(GTK_WIDGET([self GOBJECT])) ? YES : NO);
774 }
775
776 -(BOOL)inDestruction
777 {
778 return (gtk_widget_in_destruction(GTK_WIDGET([self GOBJECT])) ? YES : NO);
779 }
780
781 -(void)initTemplate
782 {
783 gtk_widget_init_template(GTK_WIDGET([self GOBJECT]));
784 }
785
786 -(void)inputShapeCombineRegion:(cairo_region_t*) region
787 {
788 gtk_widget_input_shape_combine_region(GTK_WIDGET([self GOBJECT]), region);
789 }
790
791 -(void)insertActionGroupWithName:(NSString*) name andGroup:(GActionGroup*) group
792 {
793 gtk_widget_insert_action_group(GTK_WIDGET([self GOBJECT]), [name UTF8String], group);
794 }
795
796 -(BOOL)intersectWithArea:(const GdkRectangle*) area andIntersection:(GdkRectangle*) intersection
797 {
798 return (gtk_widget_intersect(GTK_WIDGET([self GOBJECT]), area, intersection) ? YES : NO);
799 }
800
801 -(BOOL)isAncestor:(CGTKWidget*) ancestor
802 {
803 return (gtk_widget_is_ancestor(GTK_WIDGET([self GOBJECT]), [ancestor WIDGET]) ? YES : NO);
804 }
805
806 -(BOOL)isComposited
807 {
808 return (gtk_widget_is_composited(GTK_WIDGET([self GOBJECT])) ? YES : NO);
809 }
810
811 -(BOOL)isDrawable
812 {
813 return (gtk_widget_is_drawable(GTK_WIDGET([self GOBJECT])) ? YES : NO);
814 }
815
816 -(BOOL)isFocus
817 {
818 return (gtk_widget_is_focus(GTK_WIDGET([self GOBJECT])) ? YES : NO);
819 }
820
821 -(BOOL)isSensitive
822 {
823 return (gtk_widget_is_sensitive(GTK_WIDGET([self GOBJECT])) ? YES : NO);
824 }
825
826 -(BOOL)isToplevel
827 {
828 return (gtk_widget_is_toplevel(GTK_WIDGET([self GOBJECT])) ? YES : NO);
829 }
830
831 -(BOOL)isVisible
832 {
833 return (gtk_widget_is_visible(GTK_WIDGET([self GOBJECT])) ? YES : NO);
834 }
835
836 -(BOOL)keynavFailed:(GtkDirectionType) direction
837 {
838 return (gtk_widget_keynav_failed(GTK_WIDGET([self GOBJECT]), direction) ? YES : NO);
839 }
840
841 -(GList*)listAccelClosures
842 {
843 return gtk_widget_list_accel_closures(GTK_WIDGET([self GOBJECT]));
844 }
845
846 -(const gchar**)listActionPrefixes
847 {
848 return gtk_widget_list_action_prefixes(GTK_WIDGET([self GOBJECT]));
849 }
850
851 -(GList*)listMnemonicLabels
852 {
853 return gtk_widget_list_mnemonic_labels(GTK_WIDGET([self GOBJECT]));
854 }
855
856 -(void)map
857 {
858 gtk_widget_map(GTK_WIDGET([self GOBJECT]));
859 }
860
861 -(BOOL)mnemonicActivate:(BOOL) groupCycling
862 {
863 return (gtk_widget_mnemonic_activate(GTK_WIDGET([self GOBJECT]), (groupCycling ? TRUE : FALSE)) ? YES : NO);
864 }
865
866 -(void)modifyBaseWithState:(GtkStateType) state andColor:(const GdkColor*) color
867 {
868 gtk_widget_modify_base(GTK_WIDGET([self GOBJECT]), state, color);
869 }
870
871 -(void)modifyBgWithState:(GtkStateType) state andColor:(const GdkColor*) color
872 {
873 gtk_widget_modify_bg(GTK_WIDGET([self GOBJECT]), state, color);
874 }
875
876 -(void)modifyCursorWithPrimary:(const GdkColor*) primary andSecondary:(const GdkColor*) secondary
877 {
878 gtk_widget_modify_cursor(GTK_WIDGET([self GOBJECT]), primary, secondary);
879 }
880
881 -(void)modifyFgWithState:(GtkStateType) state andColor:(const GdkColor*) color
882 {
883 gtk_widget_modify_fg(GTK_WIDGET([self GOBJECT]), state, color);
884 }
885
886 -(void)modifyFont:(PangoFontDescription*) fontDesc
887 {
888 gtk_widget_modify_font(GTK_WIDGET([self GOBJECT]), fontDesc);
889 }
890
891 -(void)modifyStyle:(GtkRcStyle*) style
892 {
893 gtk_widget_modify_style(GTK_WIDGET([self GOBJECT]), style);
894 }
895
896 -(void)modifyTextWithState:(GtkStateType) state andColor:(const GdkColor*) color
897 {
898 gtk_widget_modify_text(GTK_WIDGET([self GOBJECT]), state, color);
899 }
900
901 -(void)overrideBackgroundColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color
902 {
903 gtk_widget_override_background_color(GTK_WIDGET([self GOBJECT]), state, color);
904 }
905
906 -(void)overrideColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color
907 {
908 gtk_widget_override_color(GTK_WIDGET([self GOBJECT]), state, color);
909 }
910
911 -(void)overrideCursorWithCursor:(const GdkRGBA*) cursor andSecondaryCursor:(const GdkRGBA*) secondaryCursor
912 {
913 gtk_widget_override_cursor(GTK_WIDGET([self GOBJECT]), cursor, secondaryCursor);
914 }
915
916 -(void)overrideFont:(const PangoFontDescription*) fontDesc
917 {
918 gtk_widget_override_font(GTK_WIDGET([self GOBJECT]), fontDesc);
919 }
920
921 -(void)overrideSymbolicColorWithName:(NSString*) name andColor:(const GdkRGBA*) color
922 {
923 gtk_widget_override_symbolic_color(GTK_WIDGET([self GOBJECT]), [name UTF8String], color);
924 }
925
926 -(void)pathWithPathLength:(guint*) pathLength andPath:(gchar**) path andPathReversed:(gchar**) pathReversed
927 {
928 gtk_widget_path(GTK_WIDGET([self GOBJECT]), pathLength, path, pathReversed);
929 }
930
931 -(void)queueAllocate
932 {
933 gtk_widget_queue_allocate(GTK_WIDGET([self GOBJECT]));
934 }
935
936 -(void)queueComputeExpand
937 {
938 gtk_widget_queue_compute_expand(GTK_WIDGET([self GOBJECT]));
939 }
940
941 -(void)queueDraw
942 {
943 gtk_widget_queue_draw(GTK_WIDGET([self GOBJECT]));
944 }
945
946 -(void)queueDrawAreaWithX:(gint) x andY:(gint) y andWidth:(gint) width andHeight:(gint) height
947 {
948 gtk_widget_queue_draw_area(GTK_WIDGET([self GOBJECT]), x, y, width, height);
949 }
950
951 -(void)queueDrawRegion:(const cairo_region_t*) region
952 {
953 gtk_widget_queue_draw_region(GTK_WIDGET([self GOBJECT]), region);
954 }
955
956 -(void)queueResize
957 {
958 gtk_widget_queue_resize(GTK_WIDGET([self GOBJECT]));
959 }
960
961 -(void)queueResizeNoRedraw
962 {
963 gtk_widget_queue_resize_no_redraw(GTK_WIDGET([self GOBJECT]));
964 }
965
966 -(void)realize
967 {
968 gtk_widget_realize(GTK_WIDGET([self GOBJECT]));
969 }
970
971 -(cairo_region_t*)regionIntersect:(const cairo_region_t*) region
972 {
973 return gtk_widget_region_intersect(GTK_WIDGET([self GOBJECT]), region);
974 }
975
976 -(void)registerWindow:(GdkWindow*) window
977 {
978 gtk_widget_register_window(GTK_WIDGET([self GOBJECT]), window);
979 }
980
981 -(BOOL)removeAcceleratorWithAccelGroup:(GtkAccelGroup*) accelGroup andAccelKey:(guint) accelKey andAccelMods:(GdkModifierType) accelMods
982 {
983 return (gtk_widget_remove_accelerator(GTK_WIDGET([self GOBJECT]), accelGroup, accelKey, accelMods) ? YES : NO);
984 }
985
986 -(void)removeMnemonicLabel:(CGTKWidget*) label
987 {
988 gtk_widget_remove_mnemonic_label(GTK_WIDGET([self GOBJECT]), [label WIDGET]);
989 }
990
991 -(void)removeTickCallback:(guint) id
992 {
993 gtk_widget_remove_tick_callback(GTK_WIDGET([self GOBJECT]), id);
994 }
995
996 -(GdkPixbuf*)renderIconWithStockId:(NSString*) stockId andSize:(GtkIconSize) size andDetail:(NSString*) detail
997 {
998 return gtk_widget_render_icon(GTK_WIDGET([self GOBJECT]), [stockId UTF8String], size, [detail UTF8String]);
999 }
1000
1001 -(GdkPixbuf*)renderIconPixbufWithStockId:(NSString*) stockId andSize:(GtkIconSize) size
1002 {
1003 return gtk_widget_render_icon_pixbuf(GTK_WIDGET([self GOBJECT]), [stockId UTF8String], size);
1004 }
1005
1006 -(void)reparent:(CGTKWidget*) newParent
1007 {
1008 gtk_widget_reparent(GTK_WIDGET([self GOBJECT]), [newParent WIDGET]);
1009 }
1010
1011 -(void)resetRcStyles
1012 {
1013 gtk_widget_reset_rc_styles(GTK_WIDGET([self GOBJECT]));
1014 }
1015
1016 -(void)resetStyle
1017 {
1018 gtk_widget_reset_style(GTK_WIDGET([self GOBJECT]));
1019 }
1020
1021 -(gint)sendExpose:(GdkEvent*) event
1022 {
1023 return gtk_widget_send_expose(GTK_WIDGET([self GOBJECT]), event);
1024 }
1025
1026 -(BOOL)sendFocusChange:(GdkEvent*) event
1027 {
1028 return (gtk_widget_send_focus_change(GTK_WIDGET([self GOBJECT]), event) ? YES : NO);
1029 }
1030
1031 -(void)setAccelPathWithAccelPath:(NSString*) accelPath andAccelGroup:(GtkAccelGroup*) accelGroup
1032 {
1033 gtk_widget_set_accel_path(GTK_WIDGET([self GOBJECT]), [accelPath UTF8String], accelGroup);
1034 }
1035
1036 -(void)setAllocation:(const GtkAllocation*) allocation
1037 {
1038 gtk_widget_set_allocation(GTK_WIDGET([self GOBJECT]), allocation);
1039 }
1040
1041 -(void)setAppPaintable:(BOOL) appPaintable
1042 {
1043 gtk_widget_set_app_paintable(GTK_WIDGET([self GOBJECT]), (appPaintable ? TRUE : FALSE));
1044 }
1045
1046 -(void)setCanDefault:(BOOL) canDefault
1047 {
1048 gtk_widget_set_can_default(GTK_WIDGET([self GOBJECT]), (canDefault ? TRUE : FALSE));
1049 }
1050
1051 -(void)setCanFocus:(BOOL) canFocus
1052 {
1053 gtk_widget_set_can_focus(GTK_WIDGET([self GOBJECT]), (canFocus ? TRUE : FALSE));
1054 }
1055
1056 -(void)setChildVisible:(BOOL) isVisible
1057 {
1058 gtk_widget_set_child_visible(GTK_WIDGET([self GOBJECT]), (isVisible ? TRUE : FALSE));
1059 }
1060
1061 -(void)setClip:(const GtkAllocation*) clip
1062 {
1063 gtk_widget_set_clip(GTK_WIDGET([self GOBJECT]), clip);
1064 }
1065
1066 -(void)setCompositeName:(NSString*) name
1067 {
1068 gtk_widget_set_composite_name(GTK_WIDGET([self GOBJECT]), [name UTF8String]);
1069 }
1070
1071 -(void)setDeviceEnabledWithDevice:(GdkDevice*) device andEnabled:(BOOL) enabled
1072 {
1073 gtk_widget_set_device_enabled(GTK_WIDGET([self GOBJECT]), device, (enabled ? TRUE : FALSE));
1074 }
1075
1076 -(void)setDeviceEventsWithDevice:(GdkDevice*) device andEvents:(GdkEventMask) events
1077 {
1078 gtk_widget_set_device_events(GTK_WIDGET([self GOBJECT]), device, events);
1079 }
1080
1081 -(void)setDirection:(GtkTextDirection) dir
1082 {
1083 gtk_widget_set_direction(GTK_WIDGET([self GOBJECT]), dir);
1084 }
1085
1086 -(void)setDoubleBuffered:(BOOL) doubleBuffered
1087 {
1088 gtk_widget_set_double_buffered(GTK_WIDGET([self GOBJECT]), (doubleBuffered ? TRUE : FALSE));
1089 }
1090
1091 -(void)setEvents:(gint) events
1092 {
1093 gtk_widget_set_events(GTK_WIDGET([self GOBJECT]), events);
1094 }
1095
1096 -(void)setFocusOnClick:(BOOL) focusOnClick
1097 {
1098 gtk_widget_set_focus_on_click(GTK_WIDGET([self GOBJECT]), (focusOnClick ? TRUE : FALSE));
1099 }
1100
1101 -(void)setFontMap:(PangoFontMap*) fontMap
1102 {
1103 gtk_widget_set_font_map(GTK_WIDGET([self GOBJECT]), fontMap);
1104 }
1105
1106 -(void)setFontOptions:(const cairo_font_options_t*) options
1107 {
1108 gtk_widget_set_font_options(GTK_WIDGET([self GOBJECT]), options);
1109 }
1110
1111 -(void)setHalign:(GtkAlign) align
1112 {
1113 gtk_widget_set_halign(GTK_WIDGET([self GOBJECT]), align);
1114 }
1115
1116 -(void)setHasTooltip:(BOOL) hasTooltip
1117 {
1118 gtk_widget_set_has_tooltip(GTK_WIDGET([self GOBJECT]), (hasTooltip ? TRUE : FALSE));
1119 }
1120
1121 -(void)setHasWindow:(BOOL) hasWindow
1122 {
1123 gtk_widget_set_has_window(GTK_WIDGET([self GOBJECT]), (hasWindow ? TRUE : FALSE));
1124 }
1125
1126 -(void)setHexpand:(BOOL) expand
1127 {
1128 gtk_widget_set_hexpand(GTK_WIDGET([self GOBJECT]), (expand ? TRUE : FALSE));
1129 }
1130
1131 -(void)setHexpandSet:(BOOL) set
1132 {
1133 gtk_widget_set_hexpand_set(GTK_WIDGET([self GOBJECT]), (set ? TRUE : FALSE));
1134 }
1135
1136 -(void)setMapped:(BOOL) mapped
1137 {
1138 gtk_widget_set_mapped(GTK_WIDGET([self GOBJECT]), (mapped ? TRUE : FALSE));
1139 }
1140
1141 -(void)setMarginBottom:(gint) margin
1142 {
1143 gtk_widget_set_margin_bottom(GTK_WIDGET([self GOBJECT]), margin);
1144 }
1145
1146 -(void)setMarginEnd:(gint) margin
1147 {
1148 gtk_widget_set_margin_end(GTK_WIDGET([self GOBJECT]), margin);
1149 }
1150
1151 -(void)setMarginLeft:(gint) margin
1152 {
1153 gtk_widget_set_margin_left(GTK_WIDGET([self GOBJECT]), margin);
1154 }
1155
1156 -(void)setMarginRight:(gint) margin
1157 {
1158 gtk_widget_set_margin_right(GTK_WIDGET([self GOBJECT]), margin);
1159 }
1160
1161 -(void)setMarginStart:(gint) margin
1162 {
1163 gtk_widget_set_margin_start(GTK_WIDGET([self GOBJECT]), margin);
1164 }
1165
1166 -(void)setMarginTop:(gint) margin
1167 {
1168 gtk_widget_set_margin_top(GTK_WIDGET([self GOBJECT]), margin);
1169 }
1170
1171 -(void)setName:(NSString*) name
1172 {
1173 gtk_widget_set_name(GTK_WIDGET([self GOBJECT]), [name UTF8String]);
1174 }
1175
1176 -(void)setNoShowAll:(BOOL) noShowAll
1177 {
1178 gtk_widget_set_no_show_all(GTK_WIDGET([self GOBJECT]), (noShowAll ? TRUE : FALSE));
1179 }
1180
1181 -(void)setOpacity:(double) opacity
1182 {
1183 gtk_widget_set_opacity(GTK_WIDGET([self GOBJECT]), opacity);
1184 }
1185
1186 -(void)setParent:(CGTKWidget*) parent
1187 {
1188 gtk_widget_set_parent(GTK_WIDGET([self GOBJECT]), [parent WIDGET]);
1189 }
1190
1191 -(void)setParentWindow:(GdkWindow*) parentWindow
1192 {
1193 gtk_widget_set_parent_window(GTK_WIDGET([self GOBJECT]), parentWindow);
1194 }
1195
1196 -(void)setRealized:(BOOL) realized
1197 {
1198 gtk_widget_set_realized(GTK_WIDGET([self GOBJECT]), (realized ? TRUE : FALSE));
1199 }
1200
1201 -(void)setReceivesDefault:(BOOL) receivesDefault
1202 {
1203 gtk_widget_set_receives_default(GTK_WIDGET([self GOBJECT]), (receivesDefault ? TRUE : FALSE));
1204 }
1205
1206 -(void)setRedrawOnAllocate:(BOOL) redrawOnAllocate
1207 {
1208 gtk_widget_set_redraw_on_allocate(GTK_WIDGET([self GOBJECT]), (redrawOnAllocate ? TRUE : FALSE));
1209 }
1210
1211 -(void)setSensitive:(BOOL) sensitive
1212 {
1213 gtk_widget_set_sensitive(GTK_WIDGET([self GOBJECT]), (sensitive ? TRUE : FALSE));
1214 }
1215
1216 -(void)setSizeRequestWithWidth:(gint) width andHeight:(gint) height
1217 {
1218 gtk_widget_set_size_request(GTK_WIDGET([self GOBJECT]), width, height);
1219 }
1220
1221 -(void)setState:(GtkStateType) state
1222 {
1223 gtk_widget_set_state(GTK_WIDGET([self GOBJECT]), state);
1224 }
1225
1226 -(void)setStateFlagsWithFlags:(GtkStateFlags) flags andClear:(BOOL) clear
1227 {
1228 gtk_widget_set_state_flags(GTK_WIDGET([self GOBJECT]), flags, (clear ? TRUE : FALSE));
1229 }
1230
1231 -(void)setStyle:(GtkStyle*) style
1232 {
1233 gtk_widget_set_style(GTK_WIDGET([self GOBJECT]), style);
1234 }
1235
1236 -(void)setSupportMultidevice:(BOOL) supportMultidevice
1237 {
1238 gtk_widget_set_support_multidevice(GTK_WIDGET([self GOBJECT]), (supportMultidevice ? TRUE : FALSE));
1239 }
1240
1241 -(void)setTooltipMarkup:(NSString*) markup
1242 {
1243 gtk_widget_set_tooltip_markup(GTK_WIDGET([self GOBJECT]), [markup UTF8String]);
1244 }
1245
1246 -(void)setTooltipText:(NSString*) text
1247 {
1248 gtk_widget_set_tooltip_text(GTK_WIDGET([self GOBJECT]), [text UTF8String]);
1249 }
1250
1251 -(void)setTooltipWindow:(GtkWindow*) customWindow
1252 {
1253 gtk_widget_set_tooltip_window(GTK_WIDGET([self GOBJECT]), customWindow);
1254 }
1255
1256 -(void)setValign:(GtkAlign) align
1257 {
1258 gtk_widget_set_valign(GTK_WIDGET([self GOBJECT]), align);
1259 }
1260
1261 -(void)setVexpand:(BOOL) expand
1262 {
1263 gtk_widget_set_vexpand(GTK_WIDGET([self GOBJECT]), (expand ? TRUE : FALSE));
1264 }
1265
1266 -(void)setVexpandSet:(BOOL) set
1267 {
1268 gtk_widget_set_vexpand_set(GTK_WIDGET([self GOBJECT]), (set ? TRUE : FALSE));
1269 }
1270
1271 -(void)setVisible:(BOOL) visible
1272 {
1273 gtk_widget_set_visible(GTK_WIDGET([self GOBJECT]), (visible ? TRUE : FALSE));
1274 }
1275
1276 -(void)setVisual:(GdkVisual*) visual
1277 {
1278 gtk_widget_set_visual(GTK_WIDGET([self GOBJECT]), visual);
1279 }
1280
1281 -(void)setWindow:(GdkWindow*) window
1282 {
1283 gtk_widget_set_window(GTK_WIDGET([self GOBJECT]), window);
1284 }
1285
1286 -(void)shapeCombineRegion:(cairo_region_t*) region
1287 {
1288 gtk_widget_shape_combine_region(GTK_WIDGET([self GOBJECT]), region);
1289 }
1290
1291 -(void)show
1292 {
1293 gtk_widget_show(GTK_WIDGET([self GOBJECT]));
1294 }
1295
1296 -(void)showAll
1297 {
1298 gtk_widget_show_all(GTK_WIDGET([self GOBJECT]));
1299 }
1300
1301 -(void)showNow
1302 {
1303 gtk_widget_show_now(GTK_WIDGET([self GOBJECT]));
1304 }
1305
1306 -(void)sizeAllocate:(GtkAllocation*) allocation
1307 {
1308 gtk_widget_size_allocate(GTK_WIDGET([self GOBJECT]), allocation);
1309 }
1310
1311 -(void)sizeAllocateWithBaselineWithAllocation:(GtkAllocation*) allocation andBaseline:(gint) baseline
1312 {
1313 gtk_widget_size_allocate_with_baseline(GTK_WIDGET([self GOBJECT]), allocation, baseline);
1314 }
1315
1316 -(void)sizeRequest:(GtkRequisition*) requisition
1317 {
1318 gtk_widget_size_request(GTK_WIDGET([self GOBJECT]), requisition);
1319 }
1320
1321 -(void)styleAttach
1322 {
1323 gtk_widget_style_attach(GTK_WIDGET([self GOBJECT]));
1324 }
1325
1326 -(void)styleGetPropertyWithPropertyName:(NSString*) propertyName andValue:(GValue*) value
1327 {
1328 gtk_widget_style_get_property(GTK_WIDGET([self GOBJECT]), [propertyName UTF8String], value);
1329 }
1330
1331 -(void)styleGetValistWithFirstPropertyName:(NSString*) firstPropertyName andVarArgs:(va_list) varArgs
1332 {
1333 gtk_widget_style_get_valist(GTK_WIDGET([self GOBJECT]), [firstPropertyName UTF8String], varArgs);
1334 }
1335
1336 -(void)thawChildNotify
1337 {
1338 gtk_widget_thaw_child_notify(GTK_WIDGET([self GOBJECT]));
1339 }
1340
1341 -(BOOL)translateCoordinatesWithDestWidget:(CGTKWidget*) destWidget andSrcX:(gint) srcX andSrcY:(gint) srcY andDestX:(gint*) destX andDestY:(gint*) destY
1342 {
1343 return (gtk_widget_translate_coordinates(GTK_WIDGET([self GOBJECT]), [destWidget WIDGET], srcX, srcY, destX, destY) ? YES : NO);
1344 }
1345
1346 -(void)triggerTooltipQuery
1347 {
1348 gtk_widget_trigger_tooltip_query(GTK_WIDGET([self GOBJECT]));
1349 }
1350
1351 -(void)unmap
1352 {
1353 gtk_widget_unmap(GTK_WIDGET([self GOBJECT]));
1354 }
1355
1356 -(void)unparent
1357 {
1358 gtk_widget_unparent(GTK_WIDGET([self GOBJECT]));
1359 }
1360
1361 -(void)unrealize
1362 {
1363 gtk_widget_unrealize(GTK_WIDGET([self GOBJECT]));
1364 }
1365
1366 -(void)unregisterWindow:(GdkWindow*) window
1367 {
1368 gtk_widget_unregister_window(GTK_WIDGET([self GOBJECT]), window);
1369 }
1370
1371 -(void)unsetStateFlags:(GtkStateFlags) flags
1372 {
1373 gtk_widget_unset_state_flags(GTK_WIDGET([self GOBJECT]), flags);
1374 }
1375
1376
1377 @end
-[CGTKWidget initTemplate]
void initTemplate()
Definition: CGTKWidget.m:781
-[CGTKWidget getHexpandSet]
BOOL getHexpandSet()
Definition: CGTKWidget.m:461
-[CGTKWidget activate]
BOOL activate()
Definition: CGTKWidget.m:66
-[CGTKWidget getRequestMode]
GtkSizeRequestMode getRequestMode()
Definition: CGTKWidget.m:591
-[CGTKWidget isSensitive]
BOOL isSensitive()
Definition: CGTKWidget.m:821
-[CGTKWidget getTooltipText]
NSString * getTooltipText()
Definition: CGTKWidget.m:666
-[CGTKWidget getFontMap]
PangoFontMap * getFontMap()
Definition: CGTKWidget.m:426
-[CGTKBase GOBJECT]
GObject * GOBJECT()
Definition: CGTKBase.m:82
-[CGTKWidget gtkDragDestAddImageTargets]
void gtkDragDestAddImageTargets()
Definition: CGTKWidget.m:161
-[CGTKWidget gtkDragDestGetTrackMotion]
BOOL gtkDragDestGetTrackMotion()
Definition: CGTKWidget.m:186
-[CGTKWidget getAllocatedBaseline]
int getAllocatedBaseline()
Definition: CGTKWidget.m:321
-[CGTKWidget isToplevel]
BOOL isToplevel()
Definition: CGTKWidget.m:826
-[CGTKWidget gtkDragDestGetTargetList]
GtkTargetList * gtkDragDestGetTargetList()
Definition: CGTKWidget.m:181
-[CGTKWidget getValign]
GtkAlign getValign()
Definition: CGTKWidget.m:681
-[CGTKWidget gtkDragUnhighlight]
void gtkDragUnhighlight()
Definition: CGTKWidget.m:281
-[CGTKWidget getVisible]
BOOL getVisible()
Definition: CGTKWidget.m:701
-[CGTKWidget getParentWindow]
GdkWindow * getParentWindow()
Definition: CGTKWidget.m:536
-[CGTKWidget styleAttach]
void styleAttach()
Definition: CGTKWidget.m:1321
-[CGTKWidget thawChildNotify]
void thawChildNotify()
Definition: CGTKWidget.m:1336
-[CGTKWidget hide]
void hide()
Definition: CGTKWidget.m:766
-[CGTKWidget getState]
GtkStateType getState()
Definition: CGTKWidget.m:631
-[CGTKWidget hasVisibleFocus]
BOOL hasVisibleFocus()
Definition: CGTKWidget.m:761
-[CGTKWidget getSettings]
GtkSettings * getSettings()
Definition: CGTKWidget.m:621
-[CGTKWidget getSensitive]
BOOL getSensitive()
Definition: CGTKWidget.m:616
-[CGTKWidget hasGrab]
BOOL hasGrab()
Definition: CGTKWidget.m:746
-[CGTKWidget listMnemonicLabels]
GList * listMnemonicLabels()
Definition: CGTKWidget.m:851
-[CGTKWidget resetStyle]
void resetStyle()
Definition: CGTKWidget.m:1016
-[CGTKWidget gtkDragSourceAddUriTargets]
void gtkDragSourceAddUriTargets()
Definition: CGTKWidget.m:236
-[CGTKWidget getScreen]
GdkScreen * getScreen()
Definition: CGTKWidget.m:611
-[CGTKWidget queueResize]
void queueResize()
Definition: CGTKWidget.m:956
-[CGTKWidget getCompositeName]
NSString * getCompositeName()
Definition: CGTKWidget.m:386
-[CGTKWidget getToplevel]
CGTKWidget * getToplevel()
Definition: CGTKWidget.m:676
+[CGTKWidget getDefaultDirection]
GtkTextDirection getDefaultDirection()
Definition: CGTKWidget.m:36
-[CGTKWidget gtkDragDestAddTextTargets]
void gtkDragDestAddTextTargets()
Definition: CGTKWidget.m:166
-[CGTKWidget getDirection]
GtkTextDirection getDirection()
Definition: CGTKWidget.m:401
-[CGTKWidget getReceivesDefault]
BOOL getReceivesDefault()
Definition: CGTKWidget.m:586
-[CGTKWidget getDisplay]
GdkDisplay * getDisplay()
Definition: CGTKWidget.m:406
-[CGTKWidget freezeChildNotify]
void freezeChildNotify()
Definition: CGTKWidget.m:306
-[CGTKWidget realize]
void realize()
Definition: CGTKWidget.m:966
-[CGTKWidget gtkDragDestUnset]
void gtkDragDestUnset()
Definition: CGTKWidget.m:211
-[CGTKWidget listActionPrefixes]
const gchar ** listActionPrefixes()
Definition: CGTKWidget.m:846
-[CGTKWidget getNoShowAll]
BOOL getNoShowAll()
Definition: CGTKWidget.m:516
-[CGTKWidget getOpacity]
double getOpacity()
Definition: CGTKWidget.m:521
-[CGTKWidget unmap]
void unmap()
Definition: CGTKWidget.m:1351
-[CGTKWidget getWindow]
GdkWindow * getWindow()
Definition: CGTKWidget.m:711
-[CGTKWidget isDrawable]
BOOL isDrawable()
Definition: CGTKWidget.m:811
-[CGTKWidget getHalign]
GtkAlign getHalign()
Definition: CGTKWidget.m:441
-[CGTKWidget getFontOptions]
const cairo_font_options_t * getFontOptions()
Definition: CGTKWidget.m:431
-[CGTKWidget showAll]
void showAll()
Definition: CGTKWidget.m:1296
-[CGTKWidget map]
void map()
Definition: CGTKWidget.m:856
-[CGTKWidget hasRcStyle]
BOOL hasRcStyle()
Definition: CGTKWidget.m:751
-[CGTKWidget isFocus]
BOOL isFocus()
Definition: CGTKWidget.m:816
-[CGTKWidget getPangoContext]
PangoContext * getPangoContext()
Definition: CGTKWidget.m:526
-[CGTKWidget getMarginBottom]
gint getMarginBottom()
Definition: CGTKWidget.m:471
-[CGTKWidget hasScreen]
BOOL hasScreen()
Definition: CGTKWidget.m:756
-[CGTKWidget destroy]
void destroy()
Definition: CGTKWidget.m:131
-[CGTKWidget getName]
NSString * getName()
Definition: CGTKWidget.m:511
-[CGTKWidget hideOnDelete]
BOOL hideOnDelete()
Definition: CGTKWidget.m:771
-[CGTKWidget gtkGrabRemove]
void gtkGrabRemove()
Definition: CGTKWidget.m:731
-[CGTKWidget gtkDragDestAddUriTargets]
void gtkDragDestAddUriTargets()
Definition: CGTKWidget.m:171
-[CGTKWidget getChildVisible]
BOOL getChildVisible()
Definition: CGTKWidget.m:371
-[CGTKWidget WIDGET]
GtkWidget * WIDGET()
Definition: CGTKWidget.m:61
-[CGTKWidget listAccelClosures]
GList * listAccelClosures()
Definition: CGTKWidget.m:841
-[CGTKWidget getAppPaintable]
BOOL getAppPaintable()
Definition: CGTKWidget.m:351
-[CGTKWidget gtkDragHighlight]
void gtkDragHighlight()
Definition: CGTKWidget.m:221
-[CGTKWidget getStateFlags]
GtkStateFlags getStateFlags()
Definition: CGTKWidget.m:636
-[CGTKWidget queueResizeNoRedraw]
void queueResizeNoRedraw()
Definition: CGTKWidget.m:961
-[CGTKWidget getFocusOnClick]
BOOL getFocusOnClick()
Definition: CGTKWidget.m:421
-[CGTKWidget grabFocus]
void grabFocus()
Definition: CGTKWidget.m:726
-[CGTKWidget getRootWindow]
GdkWindow * getRootWindow()
Definition: CGTKWidget.m:601
-[CGTKWidget getAllocatedHeight]
int getAllocatedHeight()
Definition: CGTKWidget.m:326
-[CGTKWidget getPath]
GtkWidgetPath * getPath()
Definition: CGTKWidget.m:541
-[CGTKWidget gtkDragSourceAddImageTargets]
void gtkDragSourceAddImageTargets()
Definition: CGTKWidget.m:226
-[CGTKWidget getParent]
CGTKWidget * getParent()
Definition: CGTKWidget.m:531
-[CGTKWidget getVexpandSet]
BOOL getVexpandSet()
Definition: CGTKWidget.m:696
-[CGTKWidget errorBell]
void errorBell()
Definition: CGTKWidget.m:296
-[CGTKWidget getModifierStyle]
GtkRcStyle * getModifierStyle()
Definition: CGTKWidget.m:506
-[CGTKWidget getMarginStart]
gint getMarginStart()
Definition: CGTKWidget.m:491
-[CGTKWidget getValignWithBaseline]
GtkAlign getValignWithBaseline()
Definition: CGTKWidget.m:686
-[CGTKWidget getTooltipMarkup]
NSString * getTooltipMarkup()
Definition: CGTKWidget.m:661
-[CGTKWidget getFrameClock]
GdkFrameClock * getFrameClock()
Definition: CGTKWidget.m:436
-[CGTKWidget getVexpand]
BOOL getVexpand()
Definition: CGTKWidget.m:691
-[CGTKWidget triggerTooltipQuery]
void triggerTooltipQuery()
Definition: CGTKWidget.m:1346
-[CGTKWidget isComposited]
BOOL isComposited()
Definition: CGTKWidget.m:806
-[CGTKWidget unparent]
void unparent()
Definition: CGTKWidget.m:1356
-[CGTKWidget queueDraw]
void queueDraw()
Definition: CGTKWidget.m:941
-[CGTKWidget getHasTooltip]
BOOL getHasTooltip()
Definition: CGTKWidget.m:446
-[CGTKWidget gtkDragSourceUnset]
void gtkDragSourceUnset()
Definition: CGTKWidget.m:276
-[CGTKWidget getCanFocus]
BOOL getCanFocus()
Definition: CGTKWidget.m:361
-[CGTKWidget getMarginEnd]
gint getMarginEnd()
Definition: CGTKWidget.m:476
-[CGTKWidget unrealize]
void unrealize()
Definition: CGTKWidget.m:1361
-[CGTKWidget hasFocus]
BOOL hasFocus()
Definition: CGTKWidget.m:741
-[CGTKWidget getMarginLeft]
gint getMarginLeft()
Definition: CGTKWidget.m:481
-[CGTKWidget getScaleFactor]
gint getScaleFactor()
Definition: CGTKWidget.m:606
-[CGTKWidget getMarginRight]
gint getMarginRight()
Definition: CGTKWidget.m:486
-[CGTKWidget isVisible]
BOOL isVisible()
Definition: CGTKWidget.m:831
-[CGTKWidget getHasWindow]
BOOL getHasWindow()
Definition: CGTKWidget.m:451
-[CGTKWidget grabDefault]
void grabDefault()
Definition: CGTKWidget.m:721
-[CGTKWidget getSupportMultidevice]
BOOL getSupportMultidevice()
Definition: CGTKWidget.m:651
-[CGTKWidget queueAllocate]
void queueAllocate()
Definition: CGTKWidget.m:931
-[CGTKWidget getHexpand]
BOOL getHexpand()
Definition: CGTKWidget.m:456
-[CGTKWidget getStyle]
GtkStyle * getStyle()
Definition: CGTKWidget.m:641
-[CGTKWidget getAllocatedWidth]
int getAllocatedWidth()
Definition: CGTKWidget.m:336
CGTKWidget
Definition: CGTKWidget.h:34
-[CGTKWidget getMapped]
BOOL getMapped()
Definition: CGTKWidget.m:466
-[CGTKWidget getStyleContext]
GtkStyleContext * getStyleContext()
Definition: CGTKWidget.m:646
-[CGTKWidget showNow]
void showNow()
Definition: CGTKWidget.m:1301
-[CGTKWidget getAccessible]
AtkObject * getAccessible()
Definition: CGTKWidget.m:311
-[CGTKWidget getMarginTop]
gint getMarginTop()
Definition: CGTKWidget.m:496
-[CGTKWidget getTooltipWindow]
GtkWindow * getTooltipWindow()
Definition: CGTKWidget.m:671
-[CGTKWidget inDestruction]
BOOL inDestruction()
Definition: CGTKWidget.m:776
-[CGTKWidget gtkDragSourceGetTargetList]
GtkTargetList * gtkDragSourceGetTargetList()
Definition: CGTKWidget.m:241
-[CGTKWidget show]
void show()
Definition: CGTKWidget.m:1291
-[CGTKWidget gtkGrabAdd]
void gtkGrabAdd()
Definition: CGTKWidget.m:716
-[CGTKWidget createPangoContext]
PangoContext * createPangoContext()
Definition: CGTKWidget.m:121
-[CGTKWidget resetRcStyles]
void resetRcStyles()
Definition: CGTKWidget.m:1011
-[CGTKWidget getCanDefault]
BOOL getCanDefault()
Definition: CGTKWidget.m:356
-[CGTKWidget hasDefault]
BOOL hasDefault()
Definition: CGTKWidget.m:736
-[CGTKWidget getVisual]
GdkVisual * getVisual()
Definition: CGTKWidget.m:706
-[CGTKWidget gtkDragSourceAddTextTargets]
void gtkDragSourceAddTextTargets()
Definition: CGTKWidget.m:231
-[CGTKWidget getRealized]
BOOL getRealized()
Definition: CGTKWidget.m:581
-[CGTKWidget getDoubleBuffered]
BOOL getDoubleBuffered()
Definition: CGTKWidget.m:411
-[CGTKWidget queueComputeExpand]
void queueComputeExpand()
Definition: CGTKWidget.m:936
-[CGTKWidget getEvents]
gint getEvents()
Definition: CGTKWidget.m:416
-[CGTKWidget ensureStyle]
void ensureStyle()
Definition: CGTKWidget.m:291