pub struct ColorScheme {Show 80 fields
scheme: ColorSchemeChoice,
pub road_outlines: bool,
pub road_class_colors: bool,
pub show_buildings_in_minimap: bool,
pub panel_bg: Color,
pub inner_panel_bg: Color,
pub day_time_slider: Color,
pub night_time_slider: Color,
pub selected: Color,
pub current_object: Color,
pub perma_selected_object: Color,
pub fade_map_dark: Color,
gui_style: Style,
pub minimap_cursor_border: Color,
pub minimap_cursor_bg: Option<Color>,
driving_lane: Color,
bus_lane: Color,
parking_lane: Color,
bike_lane: Color,
sidewalk: Color,
pub sidewalk_lines: Color,
pub general_road_marking: Color,
road_center_line: Color,
pub light_rail_track: Color,
pub private_road: Option<Color>,
pub unzoomed_highway: Color,
pub unzoomed_arterial: Color,
pub unzoomed_residential: Color,
pub unzoomed_cycleway: Color,
pub unzoomed_footway: Color,
footway: Color,
shared_use: Color,
pub normal_intersection: Color,
pub stop_sign: Color,
pub stop_sign_pole: Color,
pub signal_protected_turn: Color,
pub signal_permitted_turn: Color,
pub signal_banned_turn: Color,
pub signal_box: Color,
pub signal_spinner: Color,
pub signal_turn_block_bg: Color,
pub slowest_intersection: Color,
pub slower_intersection: Color,
pub slow_intersection: Color,
pub void_background: Color,
pub map_background: Fill,
pub unzoomed_interesting_intersection: Color,
pub residential_building: Color,
pub commercial_building: Color,
pub building_outline: Color,
pub parking_lot: Color,
pub grass: Fill,
pub water: Fill,
pub study_area: Fill,
pub unzoomed_car: Color,
pub unzoomed_bike: Color,
pub unzoomed_bus: Color,
pub unzoomed_pedestrian: Color,
agent_colors: Vec<Color>,
pub route: Color,
pub turn_arrow: Color,
pub brake_light: Color,
pub bus_body: Color,
pub bus_label: Color,
pub train_body: Color,
pub ped_head: Color,
pub ped_foot: Color,
pub ped_preparing_bike_body: Color,
pub ped_crowd: Color,
pub bike_frame: Color,
pub parked_car: Color,
pub good_to_bad_red: ColorScale,
pub good_to_bad_green: ColorScale,
pub bus_layer: Color,
pub edits_layer: Color,
pub parking_trip: Color,
pub bike_trip: Color,
pub bus_trip: Color,
pub before_changes: Color,
pub after_changes: Color,
}Fields§
§scheme: ColorSchemeChoice§road_outlines: bool§road_class_colors: bool§show_buildings_in_minimap: bool§panel_bg: Color§inner_panel_bg: Color§day_time_slider: Color§night_time_slider: Color§selected: Color§current_object: Color§perma_selected_object: Color§fade_map_dark: Color§gui_style: Style§minimap_cursor_border: Color§minimap_cursor_bg: Option<Color>§driving_lane: Color§bus_lane: Color§parking_lane: Color§bike_lane: Color§sidewalk: Color§sidewalk_lines: Color§general_road_marking: Color§road_center_line: Color§light_rail_track: Color§private_road: Option<Color>§unzoomed_highway: Color§unzoomed_arterial: Color§unzoomed_residential: Color§unzoomed_cycleway: Color§unzoomed_footway: Color§footway: Color§normal_intersection: Color§stop_sign: Color§stop_sign_pole: Color§signal_protected_turn: Color§signal_permitted_turn: Color§signal_banned_turn: Color§signal_box: Color§signal_spinner: Color§signal_turn_block_bg: Color§slowest_intersection: Color§slower_intersection: Color§slow_intersection: Color§void_background: Color§map_background: Fill§unzoomed_interesting_intersection: Color§residential_building: Color§commercial_building: Color§building_outline: Color§parking_lot: Color§grass: Fill§water: Fill§study_area: Fill§unzoomed_car: Color§unzoomed_bike: Color§unzoomed_bus: Color§unzoomed_pedestrian: Color§agent_colors: Vec<Color>§route: Color§turn_arrow: Color§brake_light: Color§bus_body: Color§bus_label: Color§train_body: Color§ped_head: Color§ped_foot: Color§ped_preparing_bike_body: Color§ped_crowd: Color§bike_frame: Color§parked_car: Color§good_to_bad_red: ColorScale§good_to_bad_green: ColorScale§bus_layer: Color§edits_layer: Color§parking_trip: Color§bike_trip: Color§bus_trip: Color§before_changes: Color§after_changes: ColorImplementations§
Source§impl ColorScheme
impl ColorScheme
pub fn new(ctx: &mut EventCtx<'_>, scheme: ColorSchemeChoice) -> ColorScheme
fn classic() -> ColorScheme
fn light_background(gui_style: Style) -> ColorScheme
fn night_mode() -> ColorScheme
fn textured() -> ColorScheme
fn day_mode() -> ColorScheme
fn ltn() -> ColorScheme
Source§impl ColorScheme
impl ColorScheme
pub fn rotating_color_plot(&self, idx: usize) -> Color
pub fn rotating_color_agents(&self, idx: usize) -> Color
pub fn unzoomed_road_surface(&self, rank: RoadRank) -> Color
pub fn zoomed_road_surface(&self, lane: LaneType, rank: RoadRank) -> Color
pub fn zoomed_intersection_surface(&self, rank: RoadRank) -> Color
pub fn curb(&self, rank: RoadRank) -> Color
pub fn road_center_line(&self, map: &Map) -> Color
pub fn export(&self, path: &str) -> Result<()>
pub fn import(&mut self, path: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for ColorScheme
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnwindSafe for ColorScheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.