GtkButton.def 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. DEFINITION MODULE FOR "C" GtkButton ;
  2. (*
  3. m2-GTK4 - GtkButton: a push button. Mapped onto <gtk/gtkbutton.h>.
  4. The interesting signal is "clicked", a C callback of the shape
  5. void handler(GtkButton *button, gpointer user_data).
  6. connect it with GObject.g_signal_connect_data() or the
  7. GtkUtils.Connect() helper.
  8. *)
  9. FROM SYSTEM IMPORT ADDRESS;
  10. EXPORT UNQUALIFIED
  11. GtkButton,
  12. gtk_button_new, gtk_button_new_with_label, gtk_button_new_with_mnemonic,
  13. gtk_button_set_label, gtk_button_get_label, gtk_button_set_child;
  14. TYPE
  15. GtkButton = ADDRESS;
  16. (* GtkWidget *gtk_button_new(void) *)
  17. PROCEDURE gtk_button_new () : GtkButton;
  18. (* GtkWidget *gtk_button_new_with_label(const char *label) *)
  19. PROCEDURE gtk_button_new_with_label (label: ARRAY OF CHAR) : GtkButton;
  20. (* GtkWidget *gtk_button_new_with_mnemonic(const char *label) *)
  21. PROCEDURE gtk_button_new_with_mnemonic (label: ARRAY OF CHAR) : GtkButton;
  22. (* void gtk_button_set_label(GtkButton *button, const char *label) *)
  23. PROCEDURE gtk_button_set_label (button: GtkButton; label: ARRAY OF CHAR);
  24. (* const char *gtk_button_get_label(GtkButton *button) *)
  25. PROCEDURE gtk_button_get_label (button: GtkButton) : ADDRESS;
  26. (* void gtk_button_set_child(GtkButton *button, GtkWidget *child) *)
  27. PROCEDURE gtk_button_set_child (button: GtkButton; child: ADDRESS);
  28. END GtkButton.