Home
last modified time | relevance | path

Searched defs:GeomBatch (Results 1 – 17 of 17) sorted by relevance

/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/widgetry/src/
H A Dgeom.rs10 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 Dassets.rs108 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 Dtext.rs267 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 Dsvg.rs15 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 Dbuilding.rs21 bldg_batch: &mut GeomBatch, in new()
22 paths_batch: &mut GeomBatch, in new()
23 outlines_batch: &mut GeomBatch, in new()
H A Darea.rs18 all_areas: &mut GeomBatch, in new()
H A Dtraffic_signal.rs16 batch: &mut GeomBatch, in draw_signal_stage()
H A Dintersection.rs318 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 Dparking_lot.rs20 unzoomed_batch: &mut GeomBatch, in new()
H A Dpedestrian.rs54 batch: &mut GeomBatch, in geometry()
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/widgetry/src/widgets/
H A Dbutton.rs29 normal: GeomBatch, in new()
30 hovered: GeomBatch, in new()
191 pub fn custom(normal: GeomBatch, hovered: GeomBatch, hitbox: Polygon) -> BtnBuilder { in custom()
H A Djust_draw.rs73 batch: GeomBatch, in new()
75 hover: Box<dyn Fn(&Polygon) -> GeomBatch>, in new()
H A Dmod.rs375 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 Dtrip_table.rs431 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 Dheatmap.rs92 batch: &mut GeomBatch, in make_heatmap()
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/game/src/devtools/
H A Dkml.rs281 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 Dmod.rs824 ) -> GeomBatch { in draw_multiple_signals()
866 batch: &mut GeomBatch, in draw_selected_movement()