CoreGTK  2.24.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) 2014 - 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, 2014. 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 <Foundation/NSArray.h>
33 #import <Foundation/NSException.h>
34 #import <Foundation/NSObject.h>
35 
36 #import "CGTK.h"
37 #import "CGTKObject.h"
38 
39 /*
40  * C imports
41  */
42 #import <gtk/gtk.h>
43 
50 @interface CGTKWidget : CGTKObject
51 {
52 
53 }
54 
65 +(id)widgetWithGtkWidget:(GtkWidget *)widget;
66 
73 -(id)init;
74 
86 -(id)initWithGtkWidget:(GtkWidget *)widget andIncrementRefCount:(BOOL)incrementRefCount;
87 
96 -(id)initWithGtkWidget:(GtkWidget *)widget;
97 
107 -(id)initWithWidget:(CGTKWidget *)widget;
108 
114 -(GtkWidget *)WIDGET;
115 
122 -(void)setWidget:(GtkWidget *)widget;
123 
127 -(void)destroy;
128 
134 -(void)unparent;
135 
151 -(void)show;
152 
159 -(void)showNow;
160 
167 -(void)hide;
168 
173 -(void)showAll;
174 
179 -(void)map;
180 
185 -(void)unmap;
186 
204 -(void)realize;
205 
211 -(void)unrealize;
212 
218 -(void)queueDraw;
219 
228 -(void)queueResize;
229 
236 -(void)queueResizeNoRedraw;
237 
259 -(void)sizeRequest:(GtkRequisition *)requisition;
260 
285 -(void)getChildRequisition:(GtkRequisition *)requisition;
286 
301 -(void)sizeAllocate:(GtkAllocation *)allocation;
302 
330 -(void)addAcceleratorWithSignal:(NSString *)accelSignal andAccelGroup:(GtkAccelGroup *)accelGroup andAccelKey:(NSNumber *)accelKey andAccelMods:(GdkModifierType)accelMods andAccelFlags:(GtkAccelFlags)accelFlags;
331 
349 -(BOOL)removeAcceleratorWithGroup:(GtkAccelGroup *)accelGroup andKey:(NSNumber *)accelKey andAccelMods:(GdkModifierType)accelMods;
350 
380 -(void)setAccelPathWithAccelPath:(NSString *)accelPath andGroup:(GtkAccelGroup *)accelGroup;
381 
392 -(GList *)listAccelClosures;
393 
406 -(BOOL)canActivateAccel:(NSNumber *)signalId;
407 
423 -(BOOL)event:(GdkEvent *)event;
424 
432 -(BOOL)activate;
433 
441 -(void)reparent:(CGTKWidget *)newParent;
442 
457 -(BOOL)intersectWithArea:(const GdkRectangle *)area andIntersection:(GdkRectangle *)intersection;
458 
466 -(BOOL)isFocus;
467 
482 -(void)grabFocus;
483 
495 -(void)grabDefault;
496 
512 -(void)setName:(NSString *)name;
513 
523 -(NSString *)getName;
524 
535 -(void)setState:(GtkStateType)state;
536 
546 -(void)setSensitive:(BOOL)sensitive;
547 
559 -(void)setParent:(CGTKWidget *)parent;
560 
567 -(void)setParentWindow:(GdkWindow *)parentWindow;
568 
574 -(GdkWindow *)getParentWindow;
575 
592 -(void)setEvents:(NSNumber *)events;
593 
603 -(void)addEvents:(NSNumber *)events;
604 
612 -(void)setExtensionEvents:(GdkExtensionMode) mode;
613 
620 -(GdkExtensionMode)getExtensionEvents;
621 
645 -(CGTKWidget *)getToplevel;
646 
666 -(CGTKWidget *)getAncestor:(GType)widgetType;
667 
674 -(GdkColormap *)getColormap;
675 
684 -(void)setColormap:(GdkColormap *)colormap;
685 
691 -(GdkVisual *)getVisual;
692 
699 -(NSNumber *)getEvents;
700 
714 -(void)getPointerWithX:(NSNumber **)x andY:(NSNumber **)y;
715 
726 -(BOOL)isAncestor:(CGTKWidget *)ancestor;
727 
751 +(BOOL)translateCoordinatesWithSrc:(CGTKWidget *)srcWidget andDest:(CGTKWidget *)destWidget andSrcX:(NSNumber *)srcX andSrcY:(NSNumber *)srcY andDestX:(NSNumber **)destX andDestY:(NSNumber **)destY;
752 
765 -(BOOL)hideOnDelete;
766 
780 -(void)setStyle:(GtkStyle *)style;
781 
787 -(void)ensureStyle;
788 
794 -(GtkStyle *)getStyle;
795 
802 -(void)resetRcStyles;
803 
814 +(void)pushColormap:(GdkColormap *)cmap;
815 
821 +(void)popColormap;
822 
833 +(void)setDefaultColormap:(GdkColormap *)colormap;
834 
841 +(GtkStyle *)getDefaultStyle;
842 
848 +(GdkColormap *)getDefaultColormap;
849 
856 +(GdkVisual *)getDefaultVisual;
857 
876 -(void)setDirection:(GtkTextDirection)dir;
877 
885 -(GtkTextDirection)getDirection;
886 
896 +(void)setDefaultDirection:(GtkTextDirection)dir;
897 
905 +(GtkTextDirection)getDefaultDirection;
906 
920 -(void)shapeCombineMaskWithShapeMask:(GdkBitmap *)shapeMask andOffsetX:(NSNumber *)offsetX andOffsetY:(NSNumber *)offsetY;
921 
936 -(void)inputShapeCombineMaskWithShapeMask:(GdkBitmap *)shapeMask andOffsetX:(NSNumber *)offsetX andOffsetY:(NSNumber *)offsetY;
937 
962 -(void)pathWithPathLength:(NSNumber **)pathLength andPath:(NSString **)path andPathReversed:(NSString **)pathReversed;
963 
981 -(void)classPathWithPathLength:(NSNumber **)pathLength andPath:(NSString **)path andPathReversed:(NSString **)pathReversed;
982 
989 -(NSString *)getCompositeName;
990 
1019 -(void)modifyStyleWithStyle:(GtkRcStyle *)style;
1020 
1041 -(GtkRcStyle *)getModifierStyle;
1042 
1056 -(void)modifyFgWithState:(GtkStateType)state andColor:(const GdkColor *)color;
1057 
1078 -(void)modifyBgWithState:(GtkStateType)state andColor:(const GdkColor *)color;
1079 
1097 -(void)modifyTextWithState:(GtkStateType)state andColor:(const GdkColor *)color;
1098 
1125 -(void)modifyBaseWithState:(GtkStateType)state andColor:(const GdkColor *)color;
1126 
1135 -(void)modifyFontWithFontDescription:(PangoFontDescription *)fontDesc;
1136 
1154 -(void)modifyCursorWithPrimary:(const GdkColor *)primary andSecondary:(const GdkColor *)secondary;
1155 
1165 -(PangoContext *)createPangoContext;
1166 
1181 -(PangoContext *)getPangoContext;
1182 
1197 -(PangoLayout *)createPangoLayout:(NSString *)text;
1198 
1224 -(GdkPixbuf *)renderIconWithStockId:(NSString *)stockId andSize:(GtkIconSize)size andDetail:(NSString *)detail;
1225 
1231 +(void)popCompositeChild;
1232 
1250 +(void)pushCompositeChild;
1251 
1283 -(void)queueDrawAreaWithX:(NSNumber *)x andY:(NSNumber *)y andWidth:(NSNumber *)width andHeight:(NSNumber *)height;
1284 
1303 -(void)setAppPaintable:(BOOL)appPaintable;
1304 
1326 -(void)setDoubleBuffered:(BOOL)doubleBuffered;
1327 
1346 -(void)setRedrawOnAllocate:(BOOL)redrawOnAllocate;
1347 
1357 -(void)setCompositeName:(NSString *)name;
1358 
1373 -(BOOL)setScrollAdjustmentsWithHadjustment:(GtkAdjustment *)hadjustment andVadjustment:(GtkAdjustment *)vadjustment;
1374 
1386 -(BOOL)mnemonicActivate:(BOOL)groupCycling;
1387 
1398 +(void)classInstallStylePropertyWithClass:(GtkWidgetClass *)klass andParamSpec:(GParamSpec *)pspec;
1399 
1412 +(void)classInstallStylePropertyParserWithClass:(GtkWidgetClass*)klass andParamSpec:(GParamSpec *)pspec andParser:(GtkRcPropertyParser)parser;
1413 
1426 +(GParamSpec *)classFindStylePropertyWithClass:(GtkWidgetClass *)klass andPropertyName:(NSString *)propertyName;
1427 
1440 +(GParamSpec **)classListStylePropertiesWithClass:(GtkWidgetClass *)klass andNumberOfProperties:(NSNumber **)nProperties;
1441 
1456 -(GdkRegion *)regionIntersect:(const GdkRegion *)region;
1457 
1477 -(NSNumber *)sendExpose:(GdkEvent *)event;
1478 
1494 -(BOOL)sendFocusChange:(GdkEvent *)event;
1495 
1505 -(void)styleGetPropertyWithName:(NSString *)propertyName andValue:(GValue *)value;
1506 
1518 -(void)styleGetValistWithPropertyName:(NSString *)propertyName andVaList:(va_list)varArgs;
1519 
1523 -(void)styleAttach;
1524 
1541 -(AtkObject *)getAccessible;
1542 
1578 -(BOOL)childFocus:(GtkDirectionType)direction;
1579 
1590 -(void)childNotify:(NSString *)childProperty;
1591 
1600 -(void)freezeChildNotify;
1601 
1613 -(BOOL)getChildVisible;
1614 
1620 -(CGTKWidget *)getParent;
1621 
1631 -(GtkSettings *)getSettings;
1632 
1647 -(GtkClipboard *)getClipboard:(GdkAtom)selection;
1648 
1660 -(GdkDisplay *)getDisplay;
1661 
1675 -(GdkWindow *)getRootWindow;
1676 
1688 -(GdkScreen *)getScreen;
1689 
1697 -(BOOL)hasScreen;
1698 
1717 -(void)getSizeRequestWithWidth:(NSNumber **)width andHeight:(NSNumber **)height;
1718 
1740 -(void)setChildVisible:(BOOL)isVisible;
1741 
1780 -(void)setSizeRequestWithWidth:(NSNumber *)width andHeight:(NSNumber *)height;
1781 
1788 -(void)thawChildNotify;
1789 
1802 -(void)setNoShowAll:(BOOL)noShowAll;
1803 
1813 -(BOOL)getNoShowAll;
1814 
1830 -(GList *)listMnemonicLabels;
1831 
1844 -(void)addMnemonicLabel:(CGTKWidget *)label;
1845 
1859 -(void)removeMnemonicLabel:(CGTKWidget *)label;
1860 
1873 -(BOOL)isComposited;
1874 
1884 -(void)errorBell;
1885 
1921 -(BOOL)keynavFailed:(GtkDirectionType)direction;
1922 
1928 -(NSString *)getTooltipMarkup;
1929 
1942 -(void)setTooltipMarkup:(NSString *)markup;
1943 
1949 -(NSString *)getTooltipText;
1950 
1961 -(void)setTooltipText:(NSString *)text;
1962 
1969 -(BOOL)getHasTooltip;
1970 
1978 -(void)setHasTooltip:(BOOL)hasTooltip;
1979 
1984 -(void)triggerTooltipQuery;
1985 
2017 -(GdkPixmap *)getSnapshot:(GdkRectangle *)clipRect;
2018 
2024 -(GdkWindow *)getWindow;
2025 
2032 -(void)getAllocation:(GtkAllocation *)allocation;
2033 
2041 -(void)setAllocation:(const GtkAllocation *)allocation;
2042 
2053 -(BOOL)getAppPaintable;
2054 
2062 -(BOOL)getCanDefault;
2063 
2073 -(void)setCanDefault:(BOOL)canDefault;
2074 
2082 -(BOOL)getCanFocus;
2083 
2093 -(void)setCanFocus:(BOOL)canFocus;
2094 
2104 -(BOOL)getDoubleBuffered;
2105 
2113 -(BOOL)getHasWindow;
2114 
2131 -(void)setHasWindow:(BOOL)hasWindow;
2132 
2146 -(BOOL)getSensitive;
2147 
2154 -(BOOL)isSensitive;
2155 
2163 -(GtkStateType)getState;
2164 
2176 -(BOOL)getVisible;
2177 
2194 -(void)setVisible:(BOOL)visible;
2195 
2205 -(BOOL)hasDefault;
2206 
2214 -(BOOL)hasFocus;
2215 
2226 -(BOOL)hasGrab;
2227 
2234 -(BOOL)hasRcStyle;
2235 
2242 -(BOOL)isDrawable;
2243 
2250 -(BOOL)isTopLevel;
2251 
2266 -(void)setWindow:(GdkWindow *)window;
2267 
2279 -(void)setReceivesDefault:(BOOL)receivesDefault;
2280 
2291 -(BOOL)getReceivesDefault;
2292 
2302 -(void)setRealized:(BOOL)realized;
2303 
2309 -(BOOL)getRealized;
2310 
2320 -(void)setMapped:(BOOL)mapped;
2321 
2327 -(BOOL)getMapped;
2328 
2348 -(void)getRequisition:(GtkRequisition *)requisition;
2349 
2358 +(GtkRequisition *)requisitionCopy:(const GtkRequisition *)requisition;
2359 
2366 +(void)requisitionFree:(GtkRequisition *)requisition;
2367 
2376 -(void)grabAdd;
2377 
2384 +(CGTKWidget *)grabGetCurrent;
2385 
2394 -(void)grabRemove;
2395 
2405 +(CGTKWidget *)getEventWidget:(GdkEvent *)event;
2406 
2433 -(void)propagateEvent:(GdkEvent *)event;
2434 
2435 @end
Definition: CGTKObject.h:44
Definition: CGTKWidget.h:50