DEFINITION MODULE FOR "C" AdwAlertDialog ; (* m2-GTK4 - AdwAlertDialog: a simple alert dialog with responses. Mapped onto . Choose a response asynchronously with choose(); the callback has the GAsyncReadyCallback shape void callback(AdwAlertDialog *source, GAsyncResult *result, gpointer user_data) and obtains the chosen response id with choose_finish(). Note: the variadic format_*() and add_responses() helpers are left out. *) FROM SYSTEM IMPORT ADDRESS; FROM AdwEnums IMPORT AdwResponseAppearance; EXPORT UNQUALIFIED AdwAlertDialog, adw_alert_dialog_new, adw_alert_dialog_add_response, adw_alert_dialog_remove_response, adw_alert_dialog_has_response, adw_alert_dialog_get_heading, adw_alert_dialog_set_heading, adw_alert_dialog_get_body, adw_alert_dialog_set_body, adw_alert_dialog_get_heading_use_markup, adw_alert_dialog_set_heading_use_markup, adw_alert_dialog_get_body_use_markup, adw_alert_dialog_set_body_use_markup, adw_alert_dialog_get_close_response, adw_alert_dialog_set_close_response, adw_alert_dialog_get_default_response, adw_alert_dialog_set_default_response, adw_alert_dialog_get_extra_child, adw_alert_dialog_set_extra_child, adw_alert_dialog_get_prefer_wide_layout, adw_alert_dialog_set_prefer_wide_layout, adw_alert_dialog_get_response_appearance, adw_alert_dialog_set_response_appearance, adw_alert_dialog_get_response_enabled, adw_alert_dialog_set_response_enabled, adw_alert_dialog_get_response_label, adw_alert_dialog_set_response_label, adw_alert_dialog_choose, adw_alert_dialog_choose_finish; TYPE AdwAlertDialog = ADDRESS; (* AdwDialog *adw_alert_dialog_new(const char *heading, const char *body) *) PROCEDURE adw_alert_dialog_new (heading, body: ARRAY OF CHAR) : AdwAlertDialog; (* void adw_alert_dialog_add_response(AdwAlertDialog *self, const char *id, const char *label) *) PROCEDURE adw_alert_dialog_add_response (self: AdwAlertDialog; id, label: ARRAY OF CHAR); (* void adw_alert_dialog_remove_response(AdwAlertDialog *self, const char *id) *) PROCEDURE adw_alert_dialog_remove_response (self: AdwAlertDialog; id: ARRAY OF CHAR); (* gboolean adw_alert_dialog_has_response(AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_has_response (self: AdwAlertDialog; response: ARRAY OF CHAR) : INTEGER; (* const char *adw_alert_dialog_get_heading(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_heading (self: AdwAlertDialog) : ADDRESS; (* void adw_alert_dialog_set_heading(AdwAlertDialog *self, const char *heading) *) PROCEDURE adw_alert_dialog_set_heading (self: AdwAlertDialog; heading: ARRAY OF CHAR); (* const char *adw_alert_dialog_get_body(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_body (self: AdwAlertDialog) : ADDRESS; (* void adw_alert_dialog_set_body(AdwAlertDialog *self, const char *body) *) PROCEDURE adw_alert_dialog_set_body (self: AdwAlertDialog; body: ARRAY OF CHAR); (* gboolean adw_alert_dialog_get_heading_use_markup(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_heading_use_markup (self: AdwAlertDialog) : INTEGER; (* void adw_alert_dialog_set_heading_use_markup(AdwAlertDialog *self, gboolean use_markup) *) PROCEDURE adw_alert_dialog_set_heading_use_markup (self: AdwAlertDialog; use_markup: INTEGER); (* gboolean adw_alert_dialog_get_body_use_markup(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_body_use_markup (self: AdwAlertDialog) : INTEGER; (* void adw_alert_dialog_set_body_use_markup(AdwAlertDialog *self, gboolean use_markup) *) PROCEDURE adw_alert_dialog_set_body_use_markup (self: AdwAlertDialog; use_markup: INTEGER); (* const char *adw_alert_dialog_get_close_response(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_close_response (self: AdwAlertDialog) : ADDRESS; (* void adw_alert_dialog_set_close_response(AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_set_close_response (self: AdwAlertDialog; response: ARRAY OF CHAR); (* const char *adw_alert_dialog_get_default_response(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_default_response (self: AdwAlertDialog) : ADDRESS; (* void adw_alert_dialog_set_default_response(AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_set_default_response (self: AdwAlertDialog; response: ARRAY OF CHAR); (* GtkWidget *adw_alert_dialog_get_extra_child(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_extra_child (self: AdwAlertDialog) : ADDRESS; (* void adw_alert_dialog_set_extra_child(AdwAlertDialog *self, GtkWidget *child) *) PROCEDURE adw_alert_dialog_set_extra_child (self: AdwAlertDialog; child: ADDRESS); (* gboolean adw_alert_dialog_get_prefer_wide_layout(AdwAlertDialog *self) *) PROCEDURE adw_alert_dialog_get_prefer_wide_layout (self: AdwAlertDialog) : INTEGER; (* void adw_alert_dialog_set_prefer_wide_layout(AdwAlertDialog *self, gboolean prefer_wide_layout) *) PROCEDURE adw_alert_dialog_set_prefer_wide_layout (self: AdwAlertDialog; prefer_wide_layout: INTEGER); (* AdwResponseAppearance adw_alert_dialog_get_response_appearance( AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_get_response_appearance (self: AdwAlertDialog; response: ARRAY OF CHAR) : AdwResponseAppearance; (* void adw_alert_dialog_set_response_appearance( AdwAlertDialog *self, const char *response, AdwResponseAppearance appearance) *) PROCEDURE adw_alert_dialog_set_response_appearance (self: AdwAlertDialog; response: ARRAY OF CHAR; appearance: AdwResponseAppearance); (* gboolean adw_alert_dialog_get_response_enabled(AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_get_response_enabled (self: AdwAlertDialog; response: ARRAY OF CHAR) : INTEGER; (* void adw_alert_dialog_set_response_enabled(AdwAlertDialog *self, const char *response, gboolean enabled) *) PROCEDURE adw_alert_dialog_set_response_enabled (self: AdwAlertDialog; response: ARRAY OF CHAR; enabled: INTEGER); (* const char *adw_alert_dialog_get_response_label(AdwAlertDialog *self, const char *response) *) PROCEDURE adw_alert_dialog_get_response_label (self: AdwAlertDialog; response: ARRAY OF CHAR) : ADDRESS; (* void adw_alert_dialog_set_response_label(AdwAlertDialog *self, const char *response, const char *label) *) PROCEDURE adw_alert_dialog_set_response_label (self: AdwAlertDialog; response: ARRAY OF CHAR; label: ARRAY OF CHAR); (* void adw_alert_dialog_choose(AdwAlertDialog *self, GtkWidget *parent, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) *) PROCEDURE adw_alert_dialog_choose (self: AdwAlertDialog; parent: ADDRESS; cancellable: ADDRESS; callback: ADDRESS; user_data: ADDRESS); (* const char *adw_alert_dialog_choose_finish(AdwAlertDialog *self, GAsyncResult *result) *) PROCEDURE adw_alert_dialog_choose_finish (self: AdwAlertDialog; result: ADDRESS) : ADDRESS; END AdwAlertDialog.