CoreGTK  2.24.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKDialog.h
1 /*
2  * CGTKDialog.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2014 - 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, 2014. 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 "CGTKWindow.h"
33 
34 @interface CGTKDialog : CGTKWindow
35 {
36 
37 }
38 
39 /*
40  * Creates and returns a new instance of CGTKDialog holding the GtkDialog.
41  */
42 -(id)init;
43 
44 /*
45  * Gets the internal GtkDialog widget
46  */
47 -(GtkDialog *)DIALOG;
48 
49 /*
50  * Forwards message to:
51  * void gtk_dialog_add_action_widget (GtkDialog* dialog, GtkWidget* child, gint response_id)
52  */
53 -(void)addActionWidgetWithChild:(CGTKWidget *)child andResponseId:(NSNumber *)responseId;
54 
55 /*
56  * Forwards message to:
57  * GtkWidget* gtk_dialog_add_button (GtkDialog* dialog, const gchar* button_text, gint response_id)
58  */
59 -(CGTKWidget *)addButtonWithButtonText:(NSString *)buttonText andResponseId:(NSNumber *)responseId;
60 
61 /*
62  * Forwards message to:
63  * void gtk_dialog_set_response_sensitive (GtkDialog* dialog, gint response_id, gboolean setting)
64  */
65 -(void)setResponseSensitiveWithResponseId:(NSNumber *)responseId andSetting:(BOOL)setting;
66 
67 /*
68  * Forwards message to:
69  * void gtk_dialog_set_default_response (GtkDialog* dialog, gint response_id)
70  */
71 -(void)setDefaultResponse:(NSNumber *)responseId;
72 
73 /*
74  * Forwards message to:
75  * GtkWidget* gtk_dialog_get_widget_for_response (GtkDialog* dialog, gint response_id)
76  */
77 -(CGTKWidget *)getWidgetForResponse:(NSNumber *)responseId;
78 
79 /*
80  * Forwards message to:
81  * gint gtk_dialog_get_response_for_widget (GtkDialog* dialog, GtkWidget* widget)
82  */
83 -(NSNumber *)getResponseForWidget:(CGTKWidget *)widget;
84 
85 /*
86  * Forwards message to:
87  * void gtk_dialog_set_alternative_button_order_from_array (GtkDialog* dialog, gint n_params, gint* new_order)
88  */
89 -(void)setAlternativeButtonOrderFromArrayWithNParams:(NSNumber *)nParams andNewOrder:(NSArray *)newOrder;
90 
91 /*
92  * Forwards message to:
93  * void gtk_dialog_response (GtkDialog* dialog, gint response_id)
94  */
95 -(void)response:(NSNumber *)responseId;
96 
97 /*
98  * Forwards message to:
99  * gint gtk_dialog_run (GtkDialog* dialog)
100  */
101 -(NSNumber *)run;
102 
103 /*
104  * Forwards message to:
105  * GtkWidget* gtk_dialog_get_action_area (GtkDialog* dialog)
106  */
107 -(CGTKWidget *)getActionArea;
108 
109 /*
110  * Forwards message to:
111  * GtkWidget* gtk_dialog_get_content_area (GtkDialog* dialog)
112  */
113 -(CGTKWidget *)getContentArea;
114 
115 /*
116  * Forwards message to:
117  * gboolean gtk_alternative_dialog_button_order (GdkScreen *screen);
118  */
119 +(BOOL)alternativeDialogButtonOrder:(GdkScreen *)screen;
120 
121 @end
Definition: CGTKDialog.h:34
Definition: CGTKWindow.h:34
Definition: CGTKWidget.h:50