Grx.TextOptions.new
function new(font: Grx.Font, fg: Grx.Color): Grx.TextOptions { // Gjs wrapper for grx_text_options_new() }
Allocate a text options structure with background color set to #GRX_COLOR_NONE, horizontal alignment of #GRX_TEXT_HALIGN_LEFT and vertival alignment of #GRX_TEXT_VALIGN_TOP.
This structure is passed to text drawing functions to provide information on how to draw the text.
- font
the font
- fg
the forground color
- Returns
the new Grx.TextOptions structure