Struct rmenu::Config
[−]
[src]
pub struct Config { pub canvas_color: Color, pub input_color: Color, pub unselected_color: Color, pub selected_color: Color, pub input_border: f64, pub input_border_color: Color, pub input_size: [f64; 2], pub output_size: [f64; 2], pub input_top_padding: f64, pub output_top_padding: f64, pub font: String, }
Configuration for the GUI. Check source for what the defaults are.
Note: ALWAYS add ..Default::default()
when creating a Config
since I may add more configuration options and I will consider it a non breaking change.
Fields
canvas_color: Color
Background color
input_color: Color
Input color
unselected_color: Color
Color of unselected options in the menu
selected_color: Color
Color of selected option in the menu
input_border: f64
Size of border around input
input_border_color: Color
Color of border around input
input_size: [f64; 2]
Size of input box
output_size: [f64; 2]
Size of the output list
input_top_padding: f64
Padding above input
output_top_padding: f64
Padding between input and output
font: String
Path to a .ttf file with the font to use