Grx.LineOptions
const Grx = imports.gi.Grx;
let lineOptions = new Grx.LineOptions({
width: value
n_dash_patterns: value
dash_pattern0: value
dash_pattern1: value
dash_pattern2: value
dash_pattern3: value
dash_pattern4: value
dash_pattern5: value
dash_pattern6: value
dash_pattern7: value
});
Custom line options structure.
Zero or one dash pattern length means the line is continuous. The dash pattern always begins with a drawn section.
Example, a white line 3 pixels wide (thick) and pixmap 6 pixels draw, 4 pixels nodraw: |[<!-- language="C" --> GrxLineOptions my_line_options; ... my_line_options.color = GRX_COLOR_WHITE; my_line_options.width = 3; my_line_options.n_dash_patterns = 2; my_line_options.dash_pattern0 = 6; my_line_options.dash_pattern1 = 4; ... ]|