ui/cocoa/window.h

branch
newapi
changeset 404
384f6d1f5784
parent 157
0b33b9396851
equal deleted inserted replaced
403:b59935b2de79 404:384f6d1f5784
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2012 Olaf Wintermann. All rights reserved. 4 * Copyright 2024 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #import <Cocoa/Cocoa.h> 29 #import "toolkit.h"
30 #import "../ui/window.h"
31 #import <ucx/list.h>
32 #import <ucx/map.h>
33
34 #import "menu.h"
35
36
37
38 @interface UiCocoaWindow : NSWindow {
39 UiObject *uiobj;
40 UcxMap *menus; // key: NSMenu value: UcxList of UiMenuItem
41 UcxMap *items; // key: NSMenuItem value: UiMenuItem
42 }
43
44 - (UiCocoaWindow*) init: (NSRect)frame object: (UiObject*)obj;
45 - (UiObject*) object;
46 - (void) setObject:(UiObject*)obj;
47 - (void) setMenuItems:(UcxList*)menuItems;
48 - (void) setMenuItemLists:(UcxList*)itemLists;
49 - (UiMenuItem*) getMenuItem:(NSMenuItem*)item;
50 - (void) updateMenu:(NSMenu*)menu;
51
52 @end

mercurial