Property definitions

gtk $ GtkEntry :: defaultinit
# A single line text entry field
# See: https://developer.gnome.org/gtk3/3.2/GtkEntry.html
extern class GtkEntry `{GtkEntry *`}
	super GtkWidget

	new `{
		 return (GtkEntry *)gtk_entry_new();
	`}

	fun text: String import CString.to_s `{
		return CString_to_s((char *)gtk_entry_get_text(self));
	`}

	fun text=(value: String) import String.to_cstring `{
		gtk_entry_set_text(self, String_to_cstring(value));
	`}

	# Is the text visible or is it the invisible char (such as '*')?
	fun visiblility: Bool `{
		return gtk_entry_get_visibility(self);
	`}

	# Set the text visiblility
	# If false, will use the invisible char (such as '*')
	fun visibility=(is_visible: Bool) `{
		gtk_entry_set_visibility(self, is_visible);
	`}

	fun max_length: Int `{
		return gtk_entry_get_max_length(self);
	`}

	fun max_length=(max: Int) `{
		gtk_entry_set_max_length(self, max);
	`}
end
lib/gtk/v3_4/gtk_core.nit:469,1--504,3