CoreGTK  3.18.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKMenu.h
1 /*
2  * CGTKMenu.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/CGTKMenuShell.h"
33 
34 @interface CGTKMenu : CGTKMenuShell
35 {
36 
37 }
38 
42 +(GList*)getForAttachWidget:(CGTKWidget*) widget;
43 
47 -(id)init;
48 -(id)initFromModel:(GMenuModel*) model;
49 
54 -(GtkMenu*)MENU;
55 
65 -(void)attachWithChild:(CGTKWidget*) child andLeftAttach:(guint) leftAttach andRightAttach:(guint) rightAttach andTopAttach:(guint) topAttach andBottomAttach:(guint) bottomAttach;
66 
73 -(void)attachToWidgetWithAttachWidget:(CGTKWidget*) attachWidget andDetacher:(GtkMenuDetachFunc) detacher;
74 
79 -(void)detach;
80 
86 -(GtkAccelGroup*)getAccelGroup;
87 
93 -(NSString*)getAccelPath;
94 
101 
108 
114 -(gint)getMonitor;
115 
121 -(BOOL)getReserveToggleSize;
122 
128 -(BOOL)getTearoffState;
129 
135 -(NSString*)getTitle;
136 
141 -(void)popdown;
142 
153 -(void)popupWithParentMenuShell:(CGTKWidget*) parentMenuShell andParentMenuItem:(CGTKWidget*) parentMenuItem andFunc:(GtkMenuPositionFunc) func andData:(gpointer) data andButton:(guint) button andActivateTime:(guint32) activateTime;
154 
167 -(void)popupForDeviceWithDevice:(GdkDevice*) device andParentMenuShell:(CGTKWidget*) parentMenuShell andParentMenuItem:(CGTKWidget*) parentMenuItem andFunc:(GtkMenuPositionFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy andButton:(guint) button andActivateTime:(guint32) activateTime;
168 
175 -(void)reorderChildWithChild:(CGTKWidget*) child andPosition:(gint) position;
176 
181 -(void)reposition;
182 
188 -(void)setAccelGroup:(GtkAccelGroup*) accelGroup;
189 
195 -(void)setAccelPath:(NSString*) accelPath;
196 
202 -(void)setActive:(guint) index;
203 
209 -(void)setMonitor:(gint) monitorNum;
210 
216 -(void)setReserveToggleSize:(BOOL) reserveToggleSize;
217 
223 -(void)setScreen:(GdkScreen*) screen;
224 
230 -(void)setTearoffState:(BOOL) tornOff;
231 
237 -(void)setTitle:(NSString*) title;
238 
239 @end
BOOL getReserveToggleSize()
Definition: CGTKMenu.m:110
id init()
Definition: CGTKMenu.m:41
GtkAccelGroup * getAccelGroup()
Definition: CGTKMenu.m:85
void detach()
Definition: CGTKMenu.m:80
GtkMenu * MENU()
Definition: CGTKMenu.m:65
BOOL getTearoffState()
Definition: CGTKMenu.m:115
NSString * getTitle()
Definition: CGTKMenu.m:120
NSString * getAccelPath()
Definition: CGTKMenu.m:90
void reposition()
Definition: CGTKMenu.m:145
void destroy()
Definition: CGTKWidget.m:131
void popdown()
Definition: CGTKMenu.m:125
CGTKWidget * getActive()
Definition: CGTKMenu.m:95
CGTKWidget * getAttachWidget()
Definition: CGTKMenu.m:100
gint getMonitor()
Definition: CGTKMenu.m:105