- public string accel_label (string? accel)
Converts a Gtk.accelerator_parse style
accel string to a human-readable string.
- public string accel_string (string[]? accels, string? description = null)
Takes a description and an array of accels and returns
Pango markup for use in a Gtk.Tooltip. This method uses
accel_label.
- public double contrast_ratio (double red, double green, double blue, double red2, double green2, double blue2)
Gives the contrast ratio between two colors.
- public T find_ancestor_of_type<T> (Widget? widget)
An useful method for finding an ancestor of a given widget.
- public double[] fix_fg_contrast (double red, double green, double blue, double red2, double green2, double blue2)
Gives a contrasting foreground color for a given background color.