CoreGTK  2.24.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKBuilder.h
1 /*
2  * CGTKBuilder.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 #import <Foundation/NSDictionary.h>
30 #import <Foundation/NSObject.h>
31 #import <Foundation/NSString.h>
32 
33 #import "CGTKWidget.h"
34 #import "CGTKCallbackData.h"
35 #import "CGTKSignalConnector.h"
36 
40 @interface CGTKBuilder : NSObject
41 {
42  GtkBuilder *_builder;
43 }
44 
50 -(GtkBuilder *)BUILDER;
51 
55 +(void)setDebug:(BOOL)debugEnabled;
56 
72 -(NSNumber *)addFromFileWithFilename:(NSString *)filename andError:(GError **)error;
73 
85 -(BOOL)addFromFile:(NSString *)filename;
86 
105 -(NSNumber *)addFromStringWithBuffer:(NSString *)buffer andLength:(gsize)length andError:(GError **)error;
106 
121 -(BOOL)addFromStringWithBuffer:(NSString *)buffer andLength:(gsize) length;
122 
133 -(GObject *)getObject:(NSString *)name;
134 
143 -(GSList *)getObjects;
144 
154 -(CGTKWidget *)getWidgetWithName:(NSString *)name;
155 
177 -(void)connectSignals:(gpointer) userData;
178 
192 -(void)connectSignalsFullWithFunc:(GtkBuilderConnectFunc) func andUserData:(gpointer) userData;
193 
213 -(void)connectSignalsToObjects:(NSDictionary *)objectSignalDictionary;
214 
221 -(void)setTranslationDomain:(NSString *)domain;
222 
229 -(NSString *)getTranslationDomain;
230 
241 -(GType)getTypeFromName:(NSString *)typeName;
242 
270 -(BOOL)valueFromStringWithPspec:(GParamSpec *)pspec andString:(NSString *)string andValue:(GValue *)value andError:(GError **)error;
271 
272 
303 -(BOOL)valueFromStringTypeWithType:(GType)type andString:(NSString *)string andValue:(GValue *)value andError:(GError **)error;
304 
305 @end
Definition: CGTKBuilder.h:40
Definition: CGTKWidget.h:50