CoreGTK 3.22.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) 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/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
100 -(CGTKWidget*)getActive;
101
107 -(CGTKWidget*)getAttachWidget;
108
114 -(gint)getMonitor;
115
121 -(BOOL)getReserveToggleSize;
122
128 -(BOOL)getTearoffState;
129
135 -(NSString*)getTitle;
136
142 -(void)placeOnMonitor:(GdkMonitor*) monitor;
143
148 -(void)popdown;
149
160 -(void)popupWithParentMenuShell:(CGTKWidget*) parentMenuShell andParentMenuItem:(CGTKWidget*) parentMenuItem andFunc:(GtkMenuPositionFunc) func andData:(gpointer) data andButton:(guint) button andActivateTime:(guint32) activateTime;
161
167 -(void)popupAtPointer:(const GdkEvent*) triggerEvent;
168
178 -(void)popupAtRectWithRectWindow:(GdkWindow*) rectWindow andRect:(const GdkRectangle*) rect andRectAnchor:(GdkGravity) rectAnchor andMenuAnchor:(GdkGravity) menuAnchor andTriggerEvent:(const GdkEvent*) triggerEvent;
179
188 -(void)popupAtWidgetWithWidget:(CGTKWidget*) widget andWidgetAnchor:(GdkGravity) widgetAnchor andMenuAnchor:(GdkGravity) menuAnchor andTriggerEvent:(const GdkEvent*) triggerEvent;
189
202 -(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;
203
210 -(void)reorderChildWithChild:(CGTKWidget*) child andPosition:(gint) position;
211
216 -(void)reposition;
217
223 -(void)setAccelGroup:(GtkAccelGroup*) accelGroup;
224
230 -(void)setAccelPath:(NSString*) accelPath;
231
237 -(void)setActive:(guint) index;
238
244 -(void)setMonitor:(gint) monitorNum;
245
251 -(void)setReserveToggleSize:(BOOL) reserveToggleSize;
252
258 -(void)setScreen:(GdkScreen*) screen;
259
265 -(void)setTearoffState:(BOOL) tornOff;
266
272 -(void)setTitle:(NSString*) title;
273
274 @end
-[CGTKWidget destroy]
void destroy()
Definition: CGTKWidget.m:131
CGTKWidget
Definition: CGTKWidget.h:34