CoreGTK  3.22.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKWindow.h
1 /*
2  * CGTKWindow.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2017 - 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, 2017. 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 
167 
173 -(BOOL)getDecorated;
174 
181 -(void)getDefaultSizeWithWidth:(gint*) width andHeight:(gint*) height;
182 
189 
195 -(BOOL)getDeletable;
196 
202 -(BOOL)getDestroyWithParent;
203 
210 
216 -(BOOL)getFocusOnMap;
217 
223 -(BOOL)getFocusVisible;
224 
230 -(GdkGravity)getGravity;
231 
237 -(GtkWindowGroup*)getGroup;
238 
244 -(BOOL)getHasResizeGrip;
245 
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 
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
GdkWindowTypeHint getTypeHint()
Definition: CGTKWindow.m:318
void unfullscreen()
Definition: CGTKWindow.m:628
BOOL getFocusVisible()
Definition: CGTKWindow.m:203
GtkWindowGroup * getGroup()
Definition: CGTKWindow.m:213
BOOL getDestroyWithParent()
Definition: CGTKWindow.m:188
void fullscreen()
Definition: CGTKWindow.m:143
NSString * getRole()
Definition: CGTKWindow.m:278
BOOL isMaximized()
Definition: CGTKWindow.m:353
BOOL isActive()
Definition: CGTKWindow.m:348
GList * getIconList()
Definition: CGTKWindow.m:233
void close()
Definition: CGTKWindow.m:133
void iconify()
Definition: CGTKWindow.m:343
BOOL getDeletable()
Definition: CGTKWindow.m:183
BOOL getModal()
Definition: CGTKWindow.m:253
GtkWindow * getTransientFor()
Definition: CGTKWindow.m:313
GtkWindow * WINDOW()
Definition: CGTKWindow.m:93
GList * getDefaultIconList()
Definition: CGTKWindow.m:36
void stick()
Definition: CGTKWindow.m:623
void deiconify()
Definition: CGTKWindow.m:138
NSString * getIconName()
Definition: CGTKWindow.m:238
GdkGravity getGravity()
Definition: CGTKWindow.m:208
BOOL getFocusOnMap()
Definition: CGTKWindow.m:198
BOOL getHideTitlebarWhenMaximized()
Definition: CGTKWindow.m:223
BOOL getResizable()
Definition: CGTKWindow.m:268
BOOL getUrgencyHint()
Definition: CGTKWindow.m:323
GtkApplication * getApplication()
Definition: CGTKWindow.m:158
BOOL getSkipTaskbarHint()
Definition: CGTKWindow.m:298
CGTKWidget * getFocus()
Definition: CGTKWindow.m:193
BOOL hasGroup()
Definition: CGTKWindow.m:333
GdkPixbuf * getIcon()
Definition: CGTKWindow.m:228
CGTKWidget * getAttachedTo()
Definition: CGTKWindow.m:163
NSString * getTitle()
Definition: CGTKWindow.m:303
GdkScreen * getScreen()
Definition: CGTKWindow.m:283
GdkModifierType getMnemonicModifier()
Definition: CGTKWindow.m:243
void unstick()
Definition: CGTKWindow.m:638
BOOL resizeGripIsVisible()
Definition: CGTKWindow.m:413
BOOL getSkipPagerHint()
Definition: CGTKWindow.m:293
void reshowWithInitialSize()
Definition: CGTKWindow.m:403
void maximize()
Definition: CGTKWindow.m:358
BOOL hasToplevelFocus()
Definition: CGTKWindow.m:338
gdouble getOpacity()
Definition: CGTKWindow.m:258
BOOL getHasResizeGrip()
Definition: CGTKWindow.m:218
BOOL getDecorated()
Definition: CGTKWindow.m:168
void present()
Definition: CGTKWindow.m:378
BOOL getMnemonicsVisible()
Definition: CGTKWindow.m:248
BOOL getAcceptFocus()
Definition: CGTKWindow.m:153
CGTKWidget * getDefaultWidget()
Definition: CGTKWindow.m:178
void unmaximize()
Definition: CGTKWindow.m:633
BOOL activateDefault()
Definition: CGTKWindow.m:98
CGTKWidget * getTitlebar()
Definition: CGTKWindow.m:308
BOOL activateFocus()
Definition: CGTKWindow.m:103
GtkWindowType getWindowType()
Definition: CGTKWindow.m:328