CoreGTK 3.22.0 CoreGTK is an Objective-C language binding for the GTK+ widget toolkit

CGTKBuilder.h
1 /*
2 * CGTKBuilder.h
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/CGTKBase.h"
33 #import "CoreGTK/CGTKWidget.h"
34
35 @interface CGTKBuilder : CGTKBase
36 {
37
38 }
39
40
44 -(id)init;
45 -(id)initFromFile:(NSString*) filename;
46 -(id)initFromResource:(NSString*) resourcePath;
47 -(id)initFromStringWithString:(NSString*) string andLength:(gssize) length;
48
53 -(GtkBuilder*)BUILDER;
54
61 -(void)addCallbackSymbolWithCallbackName:(NSString*) callbackName andCallbackSymbol:(GCallback) callbackSymbol;
62
70 -(guint)addFromFileWithFilename:(NSString*) filename andErr:(GError**) err;
71
79 -(guint)addFromResourceWithResourcePath:(NSString*) resourcePath andErr:(GError**) err;
80
89 -(guint)addFromStringWithBuffer:(NSString*) buffer andLength:(gsize) length andErr:(GError**) err;
90
99 -(guint)addObjectsFromFileWithFilename:(NSString*) filename andObjectIds:(gchar**) objectIds andErr:(GError**) err;
100
109 -(guint)addObjectsFromResourceWithResourcePath:(NSString*) resourcePath andObjectIds:(gchar**) objectIds andErr:(GError**) err;
110
120 -(guint)addObjectsFromStringWithBuffer:(NSString*) buffer andLength:(gsize) length andObjectIds:(gchar**) objectIds andErr:(GError**) err;
121
127 -(void)connectSignals:(gpointer) userData;
128
135 -(void)connectSignalsFullWithFunc:(GtkBuilderConnectFunc) func andUserData:(gpointer) userData;
136
143 -(void)exposeObjectWithName:(NSString*) name andObject:(GObject*) object;
144
155 -(guint)extendWithTemplateWithWidget:(CGTKWidget*) widget andTemplateType:(GType) templateType andBuffer:(NSString*) buffer andLength:(gsize) length andErr:(GError**) err;
156
162 -(GtkApplication*)getApplication;
163
170 -(GObject*)getObject:(NSString*) name;
171
177 -(GSList*)getObjects;
178
184 -(NSString*)getTranslationDomain;
185
192 -(GType)getTypeFromName:(const char*) typeName;
193
200 -(GCallback)lookupCallbackSymbol:(NSString*) callbackName;
201
207 -(void)setApplication:(GtkApplication*) application;
208
214 -(void)setTranslationDomain:(NSString*) domain;
215
225 -(BOOL)valueFromStringWithPspec:(GParamSpec*) pspec andString:(NSString*) string andValue:(GValue*) value andErr:(GError**) err;
226
236 -(BOOL)valueFromStringTypeWithType:(GType) type andString:(NSString*) string andValue:(GValue*) value andErr:(GError**) err;
237
238 @end
-[CGTKBuilder getTranslationDomain]
NSString * getTranslationDomain()
Definition: CGTKBuilder.m:159
CGTKBase
Definition: CGTKBase.h:43
-[CGTKBuilder init]
id init()
Definition: CGTKBuilder.m:36
-[CGTKBuilder BUILDER]
GtkBuilder * BUILDER()
Definition: CGTKBuilder.m:84
-[CGTKBuilder getObjects]
GSList * getObjects()
Definition: CGTKBuilder.m:154
CGTKWidget
Definition: CGTKWidget.h:34
CGTKBuilder
Definition: CGTKBuilder.h:35
-[CGTKBuilder getApplication]
GtkApplication * getApplication()
Definition: CGTKBuilder.m:144