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

- Main Page
- Classes
- Files

- File List

CGTKWindow.h
1 /*
2 * CGTKWindow.h
3 * This file is part of CoreGTK
4 *
5 * Copyright (C) 2016 - 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, 2016. 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/CGTKBin.h"
33
34 @interface CGTKWindow : CGTKBin
35 {
36
37 }
38
42 +(GList*)getDefaultIconList;
43 +(NSString*)getDefaultIconName;
44 +(GList*)listToplevels;
45 +(void)setAutoStartupNotification:(BOOL) setting;
46 +(void)setDefaultIcon:(GdkPixbuf*) icon;
47 +(BOOL)setDefaultIconFromFileWithFilename:(NSString*) filename andErr:(GError**) err;
48 +(void)setDefaultIconList:(GList*) list;
49 +(void)setDefaultIconName:(NSString*) name;
50 +(void)setInteractiveDebugging:(BOOL) enable;
51
55 -(id)init:(GtkWindowType) type;
56
61 -(GtkWindow*)WINDOW;
62
68 -(BOOL)activateDefault;
69
75 -(BOOL)activateFocus;
76
83 -(BOOL)activateKey:(GdkEventKey*) event;
84
90 -(void)addAccelGroup:(GtkAccelGroup*) accelGroup;
91
98 -(void)addMnemonicWithKeyval:(guint) keyval andTarget:(CGTKWidget*) target;
99
108 -(void)beginMoveDragWithButton:(gint) button andRootX:(gint) rootX andRootY:(gint) rootY andTimestamp:(guint32) timestamp;
109
119 -(void)beginResizeDragWithEdge:(GdkWindowEdge) edge andButton:(gint) button andRootX:(gint) rootX andRootY:(gint) rootY andTimestamp:(guint32) timestamp;
120
125 -(void)close;
126
131 -(void)deiconify;
132
137 -(void)fullscreen;
138
145 -(void)fullscreenOnMonitorWithScreen:(GdkScreen*) screen andMonitor:(gint) monitor;
146
152 -(BOOL)getAcceptFocus;
153
159 -(GtkApplication*)getApplication;
160
166 -(CGTKWidget*)getAttachedTo;
167
173 -(BOOL)getDecorated;
174
181 -(void)getDefaultSizeWithWidth:(gint*) width andHeight:(gint*) height;
182
188 -(CGTKWidget*)getDefaultWidget;
189
195 -(BOOL)getDeletable;
196
202 -(BOOL)getDestroyWithParent;
203
209 -(CGTKWidget*)getFocus;
210
216 -(BOOL)getFocusOnMap;
217
223 -(BOOL)getFocusVisible;
224
230 -(GdkGravity)getGravity;
231
237 -(GtkWindowGroup*)getGroup;
238
244 -(BOOL)getHasResizeGrip;
245
251 -(BOOL)getHideTitlebarWhenMaximized;
252
258 -(GdkPixbuf*)getIcon;
259
265 -(GList*)getIconList;
266
272 -(NSString*)getIconName;
273
279 -(GdkModifierType)getMnemonicModifier;
280
286 -(BOOL)getMnemonicsVisible;
287
293 -(BOOL)getModal;
294
300 -(gdouble)getOpacity;
301
308 -(void)getPositionWithRootX:(gint*) rootX andRootY:(gint*) rootY;
309
315 -(BOOL)getResizable;
316
323 -(BOOL)getResizeGripArea:(GdkRectangle*) rect;
324
330 -(NSString*)getRole;
331
337 -(GdkScreen*)getScreen;
338
345 -(void)getSizeWithWidth:(gint*) width andHeight:(gint*) height;
346
352 -(BOOL)getSkipPagerHint;
353
359 -(BOOL)getSkipTaskbarHint;
360
366 -(NSString*)getTitle;
367
373 -(CGTKWidget*)getTitlebar;
374
380 -(GtkWindow*)getTransientFor;
381
387 -(GdkWindowTypeHint)getTypeHint;
388
394 -(BOOL)getUrgencyHint;
395
401 -(GtkWindowType)getWindowType;
402
408 -(BOOL)hasGroup;
409
415 -(BOOL)hasToplevelFocus;
416
421 -(void)iconify;
422
428 -(BOOL)isActive;
429
435 -(BOOL)isMaximized;
436
441 -(void)maximize;
442
450 -(BOOL)mnemonicActivateWithKeyval:(guint) keyval andModifier:(GdkModifierType) modifier;
451
458 -(void)moveWithX:(gint) x andY:(gint) y;
459
466 -(BOOL)parseGeometry:(NSString*) geometry;
467
472 -(void)present;
473
479 -(void)presentWithTime:(guint32) timestamp;
480
487 -(BOOL)propagateKeyEvent:(GdkEventKey*) event;
488
494 -(void)removeAccelGroup:(GtkAccelGroup*) accelGroup;
495
502 -(void)removeMnemonicWithKeyval:(guint) keyval andTarget:(CGTKWidget*) target;
503
508 -(void)reshowWithInitialSize;
509
516 -(void)resizeWithWidth:(gint) width andHeight:(gint) height;
517
523 -(BOOL)resizeGripIsVisible;
524
531 -(void)resizeToGeometryWithWidth:(gint) width andHeight:(gint) height;
532
538 -(void)setAcceptFocus:(BOOL) setting;
539
545 -(void)setApplication:(GtkApplication*) application;
546
552 -(void)setAttachedTo:(CGTKWidget*) attachWidget;
553
559 -(void)setDecorated:(BOOL) setting;
560
566 -(void)setDefault:(CGTKWidget*) defaultWidget;
567
574 -(void)setDefaultGeometryWithWidth:(gint) width andHeight:(gint) height;
575
582 -(void)setDefaultSizeWithWidth:(gint) width andHeight:(gint) height;
583
589 -(void)setDeletable:(BOOL) setting;
590
596 -(void)setDestroyWithParent:(BOOL) setting;
597
603 -(void)setFocus:(CGTKWidget*) focus;
604
610 -(void)setFocusOnMap:(BOOL) setting;
611
617 -(void)setFocusVisible:(BOOL) setting;
618
626 -(void)setGeometryHintsWithGeometryWidget:(CGTKWidget*) geometryWidget andGeometry:(GdkGeometry*) geometry andGeomMask:(GdkWindowHints) geomMask;
627
633 -(void)setGravity:(GdkGravity) gravity;
634
640 -(void)setHasResizeGrip:(BOOL) value;
641
647 -(void)setHasUserRefCount:(BOOL) setting;
648
654 -(void)setHideTitlebarWhenMaximized:(BOOL) setting;
655
661 -(void)setIcon:(GdkPixbuf*) icon;
662
670 -(BOOL)setIconFromFileWithFilename:(NSString*) filename andErr:(GError**) err;
671
677 -(void)setIconList:(GList*) list;
678
684 -(void)setIconName:(NSString*) name;
685
691 -(void)setKeepAbove:(BOOL) setting;
692
698 -(void)setKeepBelow:(BOOL) setting;
699
705 -(void)setMnemonicModifier:(GdkModifierType) modifier;
706
712 -(void)setMnemonicsVisible:(BOOL) setting;
713
719 -(void)setModal:(BOOL) modal;
720
726 -(void)setOpacity:(gdouble) opacity;
727
733 -(void)setPosition:(GtkWindowPosition) position;
734
740 -(void)setResizable:(BOOL) resizable;
741
747 -(void)setRole:(NSString*) role;
748
754 -(void)setScreen:(GdkScreen*) screen;
755
761 -(void)setSkipPagerHint:(BOOL) setting;
762
768 -(void)setSkipTaskbarHint:(BOOL) setting;
769
775 -(void)setStartupId:(NSString*) startupId;
776
782 -(void)setTitle:(NSString*) title;
783
789 -(void)setTitlebar:(CGTKWidget*) titlebar;
790
796 -(void)setTransientFor:(GtkWindow*) parent;
797
803 -(void)setTypeHint:(GdkWindowTypeHint) hint;
804
810 -(void)setUrgencyHint:(BOOL) setting;
811
818 -(void)setWmclassWithWmclassName:(NSString*) wmclassName andWmclassClass:(NSString*) wmclassClass;
819
824 -(void)stick;
825
830 -(void)unfullscreen;
831
836 -(void)unmaximize;
837
842 -(void)unstick;
843
844 @end
-[CGTKWindow getTypeHint]
GdkWindowTypeHint getTypeHint()
Definition: CGTKWindow.m:318
-[CGTKWindow unfullscreen]
void unfullscreen()
Definition: CGTKWindow.m:628
-[CGTKWindow getFocusVisible]
BOOL getFocusVisible()
Definition: CGTKWindow.m:203
-[CGTKWindow getGroup]
GtkWindowGroup * getGroup()
Definition: CGTKWindow.m:213
-[CGTKWindow getDestroyWithParent]
BOOL getDestroyWithParent()
Definition: CGTKWindow.m:188
-[CGTKWindow fullscreen]
void fullscreen()
Definition: CGTKWindow.m:143
-[CGTKWindow getRole]
NSString * getRole()
Definition: CGTKWindow.m:278
-[CGTKWindow isMaximized]
BOOL isMaximized()
Definition: CGTKWindow.m:353
-[CGTKWindow isActive]
BOOL isActive()
Definition: CGTKWindow.m:348
-[CGTKWindow getIconList]
GList * getIconList()
Definition: CGTKWindow.m:233
-[CGTKWindow close]
void close()
Definition: CGTKWindow.m:133
-[CGTKWindow iconify]
void iconify()
Definition: CGTKWindow.m:343
-[CGTKWindow getDeletable]
BOOL getDeletable()
Definition: CGTKWindow.m:183
-[CGTKWindow getModal]
BOOL getModal()
Definition: CGTKWindow.m:253
CGTKWindow
Definition: CGTKWindow.h:34
-[CGTKWindow getTransientFor]
GtkWindow * getTransientFor()
Definition: CGTKWindow.m:313
-[CGTKWindow WINDOW]
GtkWindow * WINDOW()
Definition: CGTKWindow.m:93
+[CGTKWindow getDefaultIconList]
GList * getDefaultIconList()
Definition: CGTKWindow.m:36
-[CGTKWindow stick]
void stick()
Definition: CGTKWindow.m:623
-[CGTKWindow deiconify]
void deiconify()
Definition: CGTKWindow.m:138
-[CGTKWindow getIconName]
NSString * getIconName()
Definition: CGTKWindow.m:238
-[CGTKWindow getGravity]
GdkGravity getGravity()
Definition: CGTKWindow.m:208
-[CGTKWindow getFocusOnMap]
BOOL getFocusOnMap()
Definition: CGTKWindow.m:198
-[CGTKWindow getHideTitlebarWhenMaximized]
BOOL getHideTitlebarWhenMaximized()
Definition: CGTKWindow.m:223
-[CGTKWindow getResizable]
BOOL getResizable()
Definition: CGTKWindow.m:268
-[CGTKWindow getUrgencyHint]
BOOL getUrgencyHint()
Definition: CGTKWindow.m:323
-[CGTKWindow getApplication]
GtkApplication * getApplication()
Definition: CGTKWindow.m:158
-[CGTKWindow getSkipTaskbarHint]
BOOL getSkipTaskbarHint()
Definition: CGTKWindow.m:298
-[CGTKWindow getFocus]
CGTKWidget * getFocus()
Definition: CGTKWindow.m:193
-[CGTKWindow hasGroup]
BOOL hasGroup()
Definition: CGTKWindow.m:333
-[CGTKWindow getIcon]
GdkPixbuf * getIcon()
Definition: CGTKWindow.m:228
-[CGTKWindow getAttachedTo]
CGTKWidget * getAttachedTo()
Definition: CGTKWindow.m:163
-[CGTKWindow getTitle]
NSString * getTitle()
Definition: CGTKWindow.m:303
-[CGTKWindow getScreen]
GdkScreen * getScreen()
Definition: CGTKWindow.m:283
-[CGTKWindow getMnemonicModifier]
GdkModifierType getMnemonicModifier()
Definition: CGTKWindow.m:243
CGTKBin
Definition: CGTKBin.h:34
-[CGTKWindow unstick]
void unstick()
Definition: CGTKWindow.m:638
-[CGTKWindow resizeGripIsVisible]
BOOL resizeGripIsVisible()
Definition: CGTKWindow.m:413
-[CGTKWindow getSkipPagerHint]
BOOL getSkipPagerHint()
Definition: CGTKWindow.m:293
-[CGTKWindow reshowWithInitialSize]
void reshowWithInitialSize()
Definition: CGTKWindow.m:403
-[CGTKWindow maximize]
void maximize()
Definition: CGTKWindow.m:358
-[CGTKWindow hasToplevelFocus]
BOOL hasToplevelFocus()
Definition: CGTKWindow.m:338
CGTKWidget
Definition: CGTKWidget.h:34
-[CGTKWindow getOpacity]
gdouble getOpacity()
Definition: CGTKWindow.m:258
-[CGTKWindow getHasResizeGrip]
BOOL getHasResizeGrip()
Definition: CGTKWindow.m:218
-[CGTKWindow getDecorated]
BOOL getDecorated()
Definition: CGTKWindow.m:168
-[CGTKWindow present]
void present()
Definition: CGTKWindow.m:378
-[CGTKWindow getMnemonicsVisible]
BOOL getMnemonicsVisible()
Definition: CGTKWindow.m:248
-[CGTKWindow getAcceptFocus]
BOOL getAcceptFocus()
Definition: CGTKWindow.m:153
-[CGTKWindow getDefaultWidget]
CGTKWidget * getDefaultWidget()
Definition: CGTKWindow.m:178
-[CGTKWindow unmaximize]
void unmaximize()
Definition: CGTKWindow.m:633
-[CGTKWindow activateDefault]
BOOL activateDefault()
Definition: CGTKWindow.m:98
-[CGTKWindow getTitlebar]
CGTKWidget * getTitlebar()
Definition: CGTKWindow.m:308
-[CGTKWindow activateFocus]
BOOL activateFocus()
Definition: CGTKWindow.m:103
-[CGTKWindow getWindowType]
GtkWindowType getWindowType()
Definition: CGTKWindow.m:328