CoreGTK  3.10.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKWidget.h
1 /*
2  * CGTKWidget.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2015 - 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, 2015. 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/CGTKBase.h"
33 
34 @interface CGTKWidget : CGTKBase
35 {
36 
37 }
38 
42 +(GtkTextDirection)getDefaultDirection;
43 +(GtkStyle*)getDefaultStyle;
44 +(void)popCompositeChild;
45 +(void)pushCompositeChild;
46 +(void)setDefaultDirection:(GtkTextDirection) dir;
47 
52 -(GtkWidget*)WIDGET;
53 
59 -(BOOL)activate;
60 
70 -(void)addAcceleratorWithAccelSignal:(NSString*) accelSignal andAccelGroup:(GtkAccelGroup*) accelGroup andAccelKey:(guint) accelKey andAccelMods:(GdkModifierType) accelMods andAccelFlags:(GtkAccelFlags) accelFlags;
71 
78 -(void)addDeviceEventsWithDevice:(GdkDevice*) device andEvents:(GdkEventMask) events;
79 
85 -(void)addEvents:(gint) events;
86 
92 -(void)addMnemonicLabel:(CGTKWidget*) label;
93 
102 -(guint)addTickCallbackWithCallback:(GtkTickCallback) callback andUserData:(gpointer) userData andNotify:(GDestroyNotify) notify;
103 
110 -(BOOL)canActivateAccel:(guint) signalId;
111 
118 -(BOOL)childFocus:(GtkDirectionType) direction;
119 
125 -(void)childNotify:(NSString*) childProperty;
126 
134 -(void)classPathWithPathLength:(guint*) pathLength andPath:(gchar**) path andPathReversed:(gchar**) pathReversed;
135 
142 -(BOOL)computeExpand:(GtkOrientation) orientation;
143 
149 -(PangoContext*)createPangoContext;
150 
157 -(PangoLayout*)createPangoLayout:(NSString*) text;
158 
163 -(void)destroy;
164 
170 -(void)destroyed:(GtkWidget**) widgetPointer;
171 
178 -(BOOL)deviceIsShadowed:(GdkDevice*) device;
179 
189 -(GdkDragContext*)gtkDragBeginWithTargets:(GtkTargetList*) targets andActions:(GdkDragAction) actions andButton:(gint) button andEvent:(GdkEvent*) event;
190 
202 -(GdkDragContext*)gtkDragBeginWithCoordinatesWithTargets:(GtkTargetList*) targets andActions:(GdkDragAction) actions andButton:(gint) button andEvent:(GdkEvent*) event andX:(gint) x andY:(gint) y;
203 
213 -(BOOL)gtkDragCheckThresholdWithStartX:(gint) startX andStartY:(gint) startY andCurrentX:(gint) currentX andCurrentY:(gint) currentY;
214 
219 -(void)gtkDragDestAddImageTargets;
220 
225 -(void)gtkDragDestAddTextTargets;
226 
231 -(void)gtkDragDestAddUriTargets;
232 
240 -(GdkAtom)gtkDragDestFindTargetWithContext:(GdkDragContext*) context andTargetList:(GtkTargetList*) targetList;
241 
247 -(GtkTargetList*)gtkDragDestGetTargetList;
248 
254 -(BOOL)gtkDragDestGetTrackMotion;
255 
264 -(void)gtkDragDestSetWithFlags:(GtkDestDefaults) flags andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
265 
273 -(void)gtkDragDestSetProxyWithProxyWindow:(GdkWindow*) proxyWindow andProtocol:(GdkDragProtocol) protocol andUseCoordinates:(BOOL) useCoordinates;
274 
280 -(void)gtkDragDestSetTargetList:(GtkTargetList*) targetList;
281 
287 -(void)gtkDragDestSetTrackMotion:(BOOL) trackMotion;
288 
293 -(void)gtkDragDestUnset;
294 
302 -(void)gtkDragGetDataWithContext:(GdkDragContext*) context andTarget:(GdkAtom) target andTime:(guint32) time;
303 
308 -(void)gtkDragHighlight;
309 
314 -(void)gtkDragSourceAddImageTargets;
315 
320 -(void)gtkDragSourceAddTextTargets;
321 
326 -(void)gtkDragSourceAddUriTargets;
327 
333 -(GtkTargetList*)gtkDragSourceGetTargetList;
334 
343 -(void)gtkDragSourceSetWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
344 
350 -(void)gtkDragSourceSetIconGicon:(GIcon*) icon;
351 
357 -(void)gtkDragSourceSetIconName:(NSString*) iconName;
358 
364 -(void)gtkDragSourceSetIconPixbuf:(GdkPixbuf*) pixbuf;
365 
371 -(void)gtkDragSourceSetIconStock:(NSString*) stockId;
372 
378 -(void)gtkDragSourceSetTargetList:(GtkTargetList*) targetList;
379 
384 -(void)gtkDragSourceUnset;
385 
390 -(void)gtkDragUnhighlight;
391 
397 -(void)draw:(cairo_t*) cr;
398 
403 -(void)ensureStyle;
404 
409 -(void)errorBell;
410 
417 -(BOOL)event:(GdkEvent*) event;
418 
423 -(void)freezeChildNotify;
424 
430 -(AtkObject*)getAccessible;
431 
437 -(int)getAllocatedBaseline;
438 
444 -(int)getAllocatedHeight;
445 
451 -(int)getAllocatedWidth;
452 
458 -(void)getAllocation:(GtkAllocation*) allocation;
459 
466 -(CGTKWidget*)getAncestor:(GType) widgetType;
467 
473 -(BOOL)getAppPaintable;
474 
480 -(BOOL)getCanDefault;
481 
487 -(BOOL)getCanFocus;
488 
494 -(void)getChildRequisition:(GtkRequisition*) requisition;
495 
501 -(BOOL)getChildVisible;
502 
509 -(GtkClipboard*)getClipboard:(GdkAtom) selection;
510 
516 -(NSString*)getCompositeName;
517 
524 -(BOOL)getDeviceEnabled:(GdkDevice*) device;
525 
532 -(GdkEventMask)getDeviceEvents:(GdkDevice*) device;
533 
539 -(GtkTextDirection)getDirection;
540 
546 -(GdkDisplay*)getDisplay;
547 
553 -(BOOL)getDoubleBuffered;
554 
560 -(gint)getEvents;
561 
567 -(GdkFrameClock*)getFrameClock;
568 
574 -(GtkAlign)getHalign;
575 
581 -(BOOL)getHasTooltip;
582 
588 -(BOOL)getHasWindow;
589 
595 -(BOOL)getHexpand;
596 
602 -(BOOL)getHexpandSet;
603 
609 -(BOOL)getMapped;
610 
616 -(gint)getMarginBottom;
617 
623 -(gint)getMarginLeft;
624 
630 -(gint)getMarginRight;
631 
637 -(gint)getMarginTop;
638 
645 -(GdkModifierType)getModifierMask:(GdkModifierIntent) intent;
646 
652 -(GtkRcStyle*)getModifierStyle;
653 
659 -(NSString*)getName;
660 
666 -(BOOL)getNoShowAll;
667 
673 -(double)getOpacity;
674 
680 -(PangoContext*)getPangoContext;
681 
687 -(CGTKWidget*)getParent;
688 
694 -(GdkWindow*)getParentWindow;
695 
701 -(GtkWidgetPath*)getPath;
702 
709 -(void)getPointerWithX:(gint*) x andY:(gint*) y;
710 
717 -(void)getPreferredHeightWithMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight;
718 
728 -(void)getPreferredHeightAndBaselineForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight andMinimumBaseline:(gint*) minimumBaseline andNaturalBaseline:(gint*) naturalBaseline;
729 
737 -(void)getPreferredHeightForWidthWithWidth:(gint) width andMinimumHeight:(gint*) minimumHeight andNaturalHeight:(gint*) naturalHeight;
738 
745 -(void)getPreferredSizeWithMinimumSize:(GtkRequisition*) minimumSize andNaturalSize:(GtkRequisition*) naturalSize;
746 
753 -(void)getPreferredWidthWithMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth;
754 
762 -(void)getPreferredWidthForHeightWithHeight:(gint) height andMinimumWidth:(gint*) minimumWidth andNaturalWidth:(gint*) naturalWidth;
763 
769 -(BOOL)getRealized;
770 
776 -(BOOL)getReceivesDefault;
777 
783 -(GtkSizeRequestMode)getRequestMode;
784 
790 -(void)getRequisition:(GtkRequisition*) requisition;
791 
797 -(GdkWindow*)getRootWindow;
798 
804 -(gint)getScaleFactor;
805 
811 -(GdkScreen*)getScreen;
812 
818 -(BOOL)getSensitive;
819 
825 -(GtkSettings*)getSettings;
826 
833 -(void)getSizeRequestWithWidth:(gint*) width andHeight:(gint*) height;
834 
840 -(GtkStateType)getState;
841 
847 -(GtkStateFlags)getStateFlags;
848 
854 -(GtkStyle*)getStyle;
855 
861 -(GtkStyleContext*)getStyleContext;
862 
868 -(BOOL)getSupportMultidevice;
869 
877 -(GObject*)getTemplateChildWithWidgetType:(GType) widgetType andName:(NSString*) name;
878 
884 -(NSString*)getTooltipMarkup;
885 
891 -(NSString*)getTooltipText;
892 
898 -(GtkWindow*)getTooltipWindow;
899 
905 -(CGTKWidget*)getToplevel;
906 
912 -(GtkAlign)getValign;
913 
919 -(GtkAlign)getValignWithBaseline;
920 
926 -(BOOL)getVexpand;
927 
933 -(BOOL)getVexpandSet;
934 
940 -(BOOL)getVisible;
941 
947 -(GdkVisual*)getVisual;
948 
954 -(GdkWindow*)getWindow;
955 
960 -(void)gtkGrabAdd;
961 
966 -(void)grabDefault;
967 
972 -(void)grabFocus;
973 
978 -(void)gtkGrabRemove;
979 
985 -(BOOL)hasDefault;
986 
992 -(BOOL)hasFocus;
993 
999 -(BOOL)hasGrab;
1000 
1006 -(BOOL)hasRcStyle;
1007 
1013 -(BOOL)hasScreen;
1014 
1020 -(BOOL)hasVisibleFocus;
1021 
1026 -(void)hide;
1027 
1033 -(BOOL)hideOnDelete;
1034 
1040 -(BOOL)inDestruction;
1041 
1046 -(void)initTemplate;
1047 
1053 -(void)inputShapeCombineRegion:(cairo_region_t*) region;
1054 
1061 -(void)insertActionGroupWithName:(NSString*) name andGroup:(GActionGroup*) group;
1062 
1070 -(BOOL)intersectWithArea:(const GdkRectangle*) area andIntersection:(GdkRectangle*) intersection;
1071 
1078 -(BOOL)isAncestor:(CGTKWidget*) ancestor;
1079 
1085 -(BOOL)isComposited;
1086 
1092 -(BOOL)isDrawable;
1093 
1099 -(BOOL)isFocus;
1100 
1106 -(BOOL)isSensitive;
1107 
1113 -(BOOL)isToplevel;
1114 
1120 -(BOOL)isVisible;
1121 
1128 -(BOOL)keynavFailed:(GtkDirectionType) direction;
1129 
1135 -(GList*)listAccelClosures;
1136 
1142 -(GList*)listMnemonicLabels;
1143 
1148 -(void)map;
1149 
1156 -(BOOL)mnemonicActivate:(BOOL) groupCycling;
1157 
1164 -(void)modifyBaseWithState:(GtkStateType) state andColor:(const GdkColor*) color;
1165 
1172 -(void)modifyBgWithState:(GtkStateType) state andColor:(const GdkColor*) color;
1173 
1180 -(void)modifyCursorWithPrimary:(const GdkColor*) primary andSecondary:(const GdkColor*) secondary;
1181 
1188 -(void)modifyFgWithState:(GtkStateType) state andColor:(const GdkColor*) color;
1189 
1195 -(void)modifyFont:(PangoFontDescription*) fontDesc;
1196 
1202 -(void)modifyStyle:(GtkRcStyle*) style;
1203 
1210 -(void)modifyTextWithState:(GtkStateType) state andColor:(const GdkColor*) color;
1211 
1218 -(void)overrideBackgroundColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color;
1219 
1226 -(void)overrideColorWithState:(GtkStateFlags) state andColor:(const GdkRGBA*) color;
1227 
1234 -(void)overrideCursorWithCursor:(const GdkRGBA*) cursor andSecondaryCursor:(const GdkRGBA*) secondaryCursor;
1235 
1241 -(void)overrideFont:(const PangoFontDescription*) fontDesc;
1242 
1249 -(void)overrideSymbolicColorWithName:(NSString*) name andColor:(const GdkRGBA*) color;
1250 
1258 -(void)pathWithPathLength:(guint*) pathLength andPath:(gchar**) path andPathReversed:(gchar**) pathReversed;
1259 
1264 -(void)queueComputeExpand;
1265 
1270 -(void)queueDraw;
1271 
1280 -(void)queueDrawAreaWithX:(gint) x andY:(gint) y andWidth:(gint) width andHeight:(gint) height;
1281 
1287 -(void)queueDrawRegion:(const cairo_region_t*) region;
1288 
1293 -(void)queueResize;
1294 
1299 -(void)queueResizeNoRedraw;
1300 
1305 -(void)realize;
1306 
1313 -(cairo_region_t*)regionIntersect:(const cairo_region_t*) region;
1314 
1320 -(void)registerWindow:(GdkWindow*) window;
1321 
1330 -(BOOL)removeAcceleratorWithAccelGroup:(GtkAccelGroup*) accelGroup andAccelKey:(guint) accelKey andAccelMods:(GdkModifierType) accelMods;
1331 
1337 -(void)removeMnemonicLabel:(CGTKWidget*) label;
1338 
1344 -(void)removeTickCallback:(guint) id;
1345 
1354 -(GdkPixbuf*)renderIconWithStockId:(NSString*) stockId andSize:(GtkIconSize) size andDetail:(NSString*) detail;
1355 
1363 -(GdkPixbuf*)renderIconPixbufWithStockId:(NSString*) stockId andSize:(GtkIconSize) size;
1364 
1370 -(void)reparent:(CGTKWidget*) newParent;
1371 
1376 -(void)resetRcStyles;
1377 
1382 -(void)resetStyle;
1383 
1390 -(gint)sendExpose:(GdkEvent*) event;
1391 
1398 -(BOOL)sendFocusChange:(GdkEvent*) event;
1399 
1406 -(void)setAccelPathWithAccelPath:(NSString*) accelPath andAccelGroup:(GtkAccelGroup*) accelGroup;
1407 
1413 -(void)setAllocation:(const GtkAllocation*) allocation;
1414 
1420 -(void)setAppPaintable:(BOOL) appPaintable;
1421 
1427 -(void)setCanDefault:(BOOL) canDefault;
1428 
1434 -(void)setCanFocus:(BOOL) canFocus;
1435 
1441 -(void)setChildVisible:(BOOL) isVisible;
1442 
1448 -(void)setCompositeName:(NSString*) name;
1449 
1456 -(void)setDeviceEnabledWithDevice:(GdkDevice*) device andEnabled:(BOOL) enabled;
1457 
1464 -(void)setDeviceEventsWithDevice:(GdkDevice*) device andEvents:(GdkEventMask) events;
1465 
1471 -(void)setDirection:(GtkTextDirection) dir;
1472 
1478 -(void)setDoubleBuffered:(BOOL) doubleBuffered;
1479 
1485 -(void)setEvents:(gint) events;
1486 
1492 -(void)setHalign:(GtkAlign) align;
1493 
1499 -(void)setHasTooltip:(BOOL) hasTooltip;
1500 
1506 -(void)setHasWindow:(BOOL) hasWindow;
1507 
1513 -(void)setHexpand:(BOOL) expand;
1514 
1520 -(void)setHexpandSet:(BOOL) set;
1521 
1527 -(void)setMapped:(BOOL) mapped;
1528 
1534 -(void)setMarginBottom:(gint) margin;
1535 
1541 -(void)setMarginLeft:(gint) margin;
1542 
1548 -(void)setMarginRight:(gint) margin;
1549 
1555 -(void)setMarginTop:(gint) margin;
1556 
1562 -(void)setName:(NSString*) name;
1563 
1569 -(void)setNoShowAll:(BOOL) noShowAll;
1570 
1576 -(void)setOpacity:(double) opacity;
1577 
1583 -(void)setParent:(CGTKWidget*) parent;
1584 
1590 -(void)setParentWindow:(GdkWindow*) parentWindow;
1591 
1597 -(void)setRealized:(BOOL) realized;
1598 
1604 -(void)setReceivesDefault:(BOOL) receivesDefault;
1605 
1611 -(void)setRedrawOnAllocate:(BOOL) redrawOnAllocate;
1612 
1618 -(void)setSensitive:(BOOL) sensitive;
1619 
1626 -(void)setSizeRequestWithWidth:(gint) width andHeight:(gint) height;
1627 
1633 -(void)setState:(GtkStateType) state;
1634 
1641 -(void)setStateFlagsWithFlags:(GtkStateFlags) flags andClear:(BOOL) clear;
1642 
1648 -(void)setStyle:(GtkStyle*) style;
1649 
1655 -(void)setSupportMultidevice:(BOOL) supportMultidevice;
1656 
1662 -(void)setTooltipMarkup:(NSString*) markup;
1663 
1669 -(void)setTooltipText:(NSString*) text;
1670 
1676 -(void)setTooltipWindow:(GtkWindow*) customWindow;
1677 
1683 -(void)setValign:(GtkAlign) align;
1684 
1690 -(void)setVexpand:(BOOL) expand;
1691 
1697 -(void)setVexpandSet:(BOOL) set;
1698 
1704 -(void)setVisible:(BOOL) visible;
1705 
1711 -(void)setVisual:(GdkVisual*) visual;
1712 
1718 -(void)setWindow:(GdkWindow*) window;
1719 
1725 -(void)shapeCombineRegion:(cairo_region_t*) region;
1726 
1731 -(void)show;
1732 
1737 -(void)showAll;
1738 
1743 -(void)showNow;
1744 
1750 -(void)sizeAllocate:(GtkAllocation*) allocation;
1751 
1758 -(void)sizeAllocateWithBaselineWithAllocation:(GtkAllocation*) allocation andBaseline:(gint) baseline;
1759 
1765 -(void)sizeRequest:(GtkRequisition*) requisition;
1766 
1771 -(void)styleAttach;
1772 
1779 -(void)styleGetPropertyWithPropertyName:(NSString*) propertyName andValue:(GValue*) value;
1780 
1787 -(void)styleGetValistWithFirstPropertyName:(NSString*) firstPropertyName andVarArgs:(va_list) varArgs;
1788 
1793 -(void)thawChildNotify;
1794 
1805 -(BOOL)translateCoordinatesWithDestWidget:(CGTKWidget*) destWidget andSrcX:(gint) srcX andSrcY:(gint) srcY andDestX:(gint*) destX andDestY:(gint*) destY;
1806 
1811 -(void)triggerTooltipQuery;
1812 
1817 -(void)unmap;
1818 
1823 -(void)unparent;
1824 
1829 -(void)unrealize;
1830 
1836 -(void)unregisterWindow:(GdkWindow*) window;
1837 
1843 -(void)unsetStateFlags:(GtkStateFlags) flags;
1844 
1845 @end