|
CoreGTK
3.22.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
|
#import <CGTKBaseBuilder.h>


Class Methods | |
| (void) | + setDebug: |
| (void) | + connectSignalsToObjectsWithBuilder:andSignalDictionary: |
| (CGTKWidget *) | + getWidgetFromBuilder:withName: |
CGTKBuilder adds additional functionality to GtkBuilder
Definition at line 44 of file CGTKBaseBuilder.h.
| + (void) connectSignalsToObjectsWithBuilder: | (CGTKBuilder *) | builder | |
| andSignalDictionary: | (NSDictionary *) | objectSignalDictionary | |
Similar to the other connect signals functions, this takes a dictionary key'd on CallbackData objects (configured with class/selectors) and their associated signals as values and connects them accordingly.
Example usage: NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: [CallbackData withObject:[CGTK class] andSEL:(endMainLoop)], "mainQuit", [CallbackData withObject:button andSEL:(clicked)], "on_button1_activate", [CallbackData withObject:button andSEL:(clicked)], "on_button2_clicked", nil];
[builder connectSignalsToObjects:dict];
| builder | A CGTKBuilder to use while attaching signals |
| objectSignalDictionary | A dictionary mapping CallbackData objects to NSString signal names |
Definition at line 79 of file CGTKBaseBuilder.m.
| + (CGTKWidget *) getWidgetFromBuilder: | (CGTKBuilder *) | builder | |
| withName: | (NSString *) | name | |
Attempts to get the object witht he name returning it as a CGTKWidget. If the object is not found or not compatible with CGTKWidget this will return nil.
| builder | the builder to get the widget from |
| name | the name of the object to return |
Definition at line 84 of file CGTKBaseBuilder.m.
| + (void) setDebug: | (BOOL) | debugEnabled |
When enabled this builder will print out signal connection debug info
Definition at line 74 of file CGTKBaseBuilder.m.