/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/widgetry/src/ |
H A D | geom.rs | 10 pub struct GeomBatch { struct 15 impl GeomBatch { argument 25 pub fn from(list: Vec<(Color, Polygon)>) -> GeomBatch { in from() 52 pub fn append(&mut self, other: GeomBatch) { in append() 100 pub fn autocrop(mut self) -> GeomBatch { in autocrop() 137 pub fn from_svg_contents(raw: Vec<u8>) -> GeomBatch { in from_svg_contents() 150 pub fn color(mut self, transformation: RewriteColor) -> GeomBatch { in color() 160 pub fn centered_on(self, center: Pt2D) -> GeomBatch { in centered_on() 168 pub fn translate(mut self, dx: f64, dy: f64) -> GeomBatch { in translate() 176 pub fn rotate(mut self, angle: Angle) -> GeomBatch { in rotate() [all …]
|
H A D | assets.rs | 108 pub fn get_cached_text(&self, key: &String) -> Option<GeomBatch> { in get_cached_text() 111 pub fn cache_text(&self, key: String, geom: GeomBatch) { in cache_text() 115 pub fn get_cached_svg(&self, key: &str) -> Option<(GeomBatch, Bounds)> { in get_cached_svg() 119 pub fn cache_svg(&self, key: String, geom: GeomBatch, bounds: Bounds) { in cache_svg()
|
H A D | text.rs | 267 pub fn render(self, assets: &Assets) -> GeomBatch { in render() 271 pub fn render_g(self, g: &GfxCtx) -> GeomBatch { in render_g() 274 pub fn render_ctx(self, ctx: &EventCtx) -> GeomBatch { in render_ctx() 278 pub(crate) fn inner_render(self, assets: &Assets, tolerance: f32) -> GeomBatch { in inner_render() 329 pub fn render_to_batch(self, prerender: &Prerender) -> GeomBatch { in render_to_batch() 415 fn render_line(spans: Vec<TextSpan>, tolerance: f32, assets: &Assets) -> GeomBatch { in render_line() 490 pub fn render_curvey(self, prerender: &Prerender, path: &PolyLine, scale: f64) -> GeomBatch { in render_curvey()
|
H A D | svg.rs | 15 pub fn load_svg(prerender: &Prerender, filename: &str) -> (GeomBatch, Bounds) { in load_svg() 43 batch: &mut GeomBatch, in add_svg_inner()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/render/ |
H A D | building.rs | 21 bldg_batch: &mut GeomBatch, in new() 22 paths_batch: &mut GeomBatch, in new() 23 outlines_batch: &mut GeomBatch, in new()
|
H A D | area.rs | 18 all_areas: &mut GeomBatch, in new()
|
H A D | traffic_signal.rs | 16 batch: &mut GeomBatch, in draw_signal_stage()
|
H A D | intersection.rs | 318 pub fn make_crosswalk(batch: &mut GeomBatch, turn: &Turn, map: &Map, cs: &ColorScheme) { in make_crosswalk() 378 fn make_rainbow_crosswalk(batch: &mut GeomBatch, turn: &Turn, map: &Map) -> bool { in make_rainbow_crosswalk()
|
H A D | parking_lot.rs | 20 unzoomed_batch: &mut GeomBatch, in new()
|
H A D | pedestrian.rs | 54 batch: &mut GeomBatch, in geometry()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/widgetry/src/widgets/ |
H A D | button.rs | 29 normal: GeomBatch, in new() 30 hovered: GeomBatch, in new() 191 pub fn custom(normal: GeomBatch, hovered: GeomBatch, hitbox: Polygon) -> BtnBuilder { in custom()
|
H A D | just_draw.rs | 73 batch: GeomBatch, in new() 75 hover: Box<dyn Fn(&Polygon) -> GeomBatch>, in new()
|
H A D | mod.rs | 375 pub fn to_geom(mut self, ctx: &EventCtx, exact_pct_width: Option<f64>) -> (GeomBatch, Polygon) { in to_geom() 595 fn consume_geometry(mut self, batch: &mut GeomBatch) { in consume_geometry()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/sandbox/dashboards/ |
H A D | trip_table.rs | 431 rows: Vec<(String, Vec<GeomBatch>)>, in make_table() 517 fn preview_route(g: &mut GfxCtx, app: &App, id: TripID) -> GeomBatch { in preview_route()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/common/ |
H A D | heatmap.rs | 92 batch: &mut GeomBatch, in make_heatmap()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/devtools/ |
H A D | kml.rs | 281 fn make_query(app: &App, objects: &Vec<Object>, query: &str) -> (GeomBatch, usize) { in make_query()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/edit/traffic_signals/ |
H A D | mod.rs | 824 ) -> GeomBatch { in draw_multiple_signals() 866 batch: &mut GeomBatch, in draw_selected_movement()
|