Class GTKWindow
NSObject
|
+---GTK
|
+---GTKObject
|
+---GTKWidget
|
+---GTKContainer
|
+---GTKBin
|
+---GTKWindow
Class GTKWindow inherits from GTKBin
Subclasses: GTKColorSelectionDialog GTKDialog GTKFileSelection GTKFontSelectionDialog GTKInputDialog GTKPlug
Last modified: 3.1.2001 (GToolKit/GTKWindow.h)
Instance Variables
- protected id delegate
- delegate of this window object
- private guint handler_id
- delete_event signal handler id
- + (GtkType) getType
-
- + (id) windowWithType:(GtkWindowType) type
-
- - (gint) activateDefault
-
- - (gint) activateFocus
-
- - (void) addAccelGroup:(GTKAccelGroup *) accel_group
-
- - (GTKWidget *) defaultWidget
-
- - (id) delegate
-
- - (GTKWidget *) focusWidget
-
- - (id) initWithType:(GtkWindowType) type
-
- - (void) performClose:(id) sender
-
- - (void) removeAccelGroup:(GTKAccelGroup *) accel_group
-
- - (void) setDefaultSize:(gint) width height:(gint) height
-
- - (void) setDelegate:(id) object
-
- - (void) setGeometryHints:(GTKWidget *) geometry_widget geometry:(GdkGeometry *) geometry geomMask:(GdkWindowHints) geom_mask
-
- - (void) setModal:(gboolean) modal
-
- - (void) setPolicy:(gint) allow_shrink allowGrow:(gint) allow_grow autoShrink:(gint) auto_shrink
-
- - (void) setPosition:(GtkWindowPosition) position
-
- - (void) setTitle:(NSString *) title
-
- - (void) setTransientFor:(GTKWindow *) parent
-
- - (void) setWmclass:(NSString *) wmclass_name wmclassClass:(NSString *) wmclass_class
-
- - (NSString *) title
-
Methods
+ (GtkType) getType
Overrides: + (GtkType) getType in GTKBin
+ (id) windowWithType:(GtkWindowType) type
- (id) initWithType:(GtkWindowType) type
- (void) setTitle:(NSString *) title
- (void) setWmclass:(NSString *) wmclass_name wmclassClass:(NSString *) wmclass_class
- (void) setPolicy:(gint) allow_shrink allowGrow:(gint) allow_grow autoShrink:(gint) auto_shrink
- (void) addAccelGroup:(GTKAccelGroup *) accel_group
- (void) removeAccelGroup:(GTKAccelGroup *) accel_group
- (void) setPosition:(GtkWindowPosition) position
- (gint) activateFocus
- (gint) activateDefault
- (void) setTransientFor:(GTKWindow *) parent
- (void) setGeometryHints:(GTKWidget *) geometry_widget geometry:(GdkGeometry *) geometry geomMask:(GdkWindowHints) geom_mask
- (void) setDefaultSize:(gint) width height:(gint) height
- (void) setModal:(gboolean) modal
- (void) setDelegate:(id) object
-
Set the delegate object of this window or unset it (if delegate
is nil). If the delegate implements some of the methods described
in the protocol GTKWindowDelegate, it will be notified by
the window on the corresponding events.
- (id) delegate
-
Return this window's delegate object.
- (void) performClose:(id) sender
-
Send a delete_event signal to this window, i.e. act as if the user
had closed the receiver via the window manager. The sender parameter
is ignored.
If the delegate implements the method:
- (BOOL) windowShouldClose:(GTKWindow *) sender
this message is sent to the delegate to determine whether the window
should actually be closed. If it returns YES, this method will post
the GTKWindowWillCloseNotification to the default notification center
and close the window.
See also: -destroy
- (NSString *) title
- (GTKWidget *) focusWidget
- (GTKWidget *) defaultWidget
generated Thu Jan 4 20:20:17 2001
by Objcdoc