Gtk.ToolItem.prototype.get_text_alignment
function get_text_alignment():Number { // Gjs wrapper for gtk_tool_item_get_text_alignment() }
Returns the text alignment used for tool_item. Custom subclasses of Gtk.ToolItem should call this function to find out how text should be aligned.
Since 2.20
- Returns
a #gfloat indicating the horizontal text alignment used for tool_item