bool


Object Hierarchy:

bool bool bool

Description:

[ SimpleType ]
[ GIR ( name = "gboolean" ) ]
[ CCode ( cname = "gboolean" , default_value = "FALSE" , get_value_function = "g_value_get_boolean" , marshaller_type_name = "BOOLEAN" , set_value_function = "g_value_set_boolean" , type_id = "G_TYPE_BOOLEAN" , type_signature = "b" ) ]
[ BooleanType ]
public struct bool

Example: General samples:

public static int main (string[] args) {
bool t1 = true;
bool t2 = false;
bool t3 = (10 > 100 || 100 < 10);

// Output: ``true, false, false``
print (@"$t1, $t2, $t3\n");
return 0;
}

valac --pkg glib-2.0 bool.vala


Package: glib-2.0

Content:

Static methods:

Methods: