32 #import "CoreGTK/CGTKStack.h"
50 return GTK_STACK([
self GOBJECT]);
53 -(void)addNamedWithChild:(
CGTKWidget*) child andName:(NSString*) name
55 gtk_stack_add_named(GTK_STACK([
self GOBJECT]), [child
WIDGET], [name UTF8String]);
58 -(void)addTitledWithChild:(
CGTKWidget*) child andName:(NSString*) name andTitle:(NSString*) title
60 gtk_stack_add_titled(GTK_STACK([
self GOBJECT]), [child
WIDGET], [name UTF8String], [title UTF8String]);
65 return (gtk_stack_get_homogeneous(GTK_STACK([
self GOBJECT])) ? YES : NO);
70 return gtk_stack_get_transition_duration(GTK_STACK([
self GOBJECT]));
75 return gtk_stack_get_transition_type(GTK_STACK([
self GOBJECT]));
80 return [[
CGTKWidget alloc] initWithGObject:(GObject *)gtk_stack_get_visible_child(GTK_STACK([
self GOBJECT]))];
85 return [NSString stringWithUTF8String:gtk_stack_get_visible_child_name(GTK_STACK([
self GOBJECT]))];
88 -(void)setHomogeneous:(BOOL) homogeneous
90 gtk_stack_set_homogeneous(GTK_STACK([
self GOBJECT]), (homogeneous ? TRUE : FALSE));
93 -(void)setTransitionDuration:(guint) duration
95 gtk_stack_set_transition_duration(GTK_STACK([
self GOBJECT]), duration);
98 -(void)setTransitionType:(GtkStackTransitionType) transition
100 gtk_stack_set_transition_type(GTK_STACK([
self GOBJECT]), transition);
105 gtk_stack_set_visible_child(GTK_STACK([
self GOBJECT]), [child
WIDGET]);
108 -(void)setVisibleChildFullWithName:(NSString*) name andTransition:(GtkStackTransitionType) transition
110 gtk_stack_set_visible_child_full(GTK_STACK([
self GOBJECT]), [name UTF8String], transition);
113 -(void)setVisibleChildName:(NSString*) name
115 gtk_stack_set_visible_child_name(GTK_STACK([
self GOBJECT]), [name UTF8String]);
guint getTransitionDuration()
id initWithGObject:(GObject *obj)
GtkStackTransitionType getTransitionType()
CGTKWidget * getVisibleChild()
NSString * getVisibleChildName()