Grx.TextOptions.new_full
function new_full(font: Grx.Font, fg: Grx.Color, bg: Grx.Color, h_align: Grx.TextHAlign, v_align: Grx.TextVAlign): Grx.TextOptions { // Gjs wrapper for grx_text_options_new_full() }
Allocate a text options structure.
This structure is passed to text drawing functions to provide information on how to draw the text.
- font
the font
- fg
the forground color
- bg
the background color
- h_align
the horizontal alignment
- v_align
the vertical alignment
- Returns
the new Grx.TextOptions structure