gwenhywfar 5.12.0
cocoa_gui_dialog_l.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : August 09 2010
3 copyright : (C) 2010 by Samuel Strupp
4
5 ***************************************************************************
6 * Please see toplevel file COPYING for license details *
7 ***************************************************************************/
8
9#ifndef COCOA_GUI_DIALOG_L_H
10#define COCOA_GUI_DIALOG_L_H
11
12
13//#include <gwen-gui-gtk2/gtk2_gui.h>
14
15
16#include <gwenhywfar/dialog_be.h>
17#import <Foundation/Foundation.h>
18#import <AppKit/AppKit.h>
19
20#import "CocoaWindow.h"
21
22//#define GTK2_GUI_DIALOG_DEFAULT_BOX_SPACING 3
23
24
25/*typedef struct {
26 GWEN_DIALOG *dialog;
27 GtkWindow *window;
28 int response;
29 GMainLoop *loop;
30 int destroyed;
31} RunInfo;*/
32
33
34
37
38int CocoaGui_Dialog_Setup(GWEN_DIALOG *dlg, NSWindow *parentWindow);
39
40
42
43
44int Cocoa_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout);
45void CocoaGui_Dialog_Leave(GWEN_DIALOG *dlg, int result);
46
47#endif
48
49
void CocoaGui_Dialog_Extend(GWEN_DIALOG *dlg)
int CocoaGui_Dialog_Setup(GWEN_DIALOG *dlg, NSWindow *parentWindow)
void CocoaGui_Dialog_Leave(GWEN_DIALOG *dlg, int result)
void CocoaGui_Dialog_Unextend(GWEN_DIALOG *dlg)
CocoaWindow * CocoaGui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg)
int Cocoa_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout)
struct GWEN_DIALOG GWEN_DIALOG
Definition dialog.h:54