MCPcopy Create free account

hub / github.com/Yatekii/sailor / functions

Functions199 in github.com/Yatekii/sailor

Methodadd_rule
(&mut self, rule: Rule)
src/lib/css.rs:95
Methodadd_triangle
(&mut self, a: VertexId, b: VertexId, c: VertexId)
src/lib/drawing/mesh.rs:74
Functionany
Parse any CSS selector k/v pair. E.g. `[name=water]`
src/lib/css.rs:416
Functionarea
(path: &Path)
src/lib/vector_tile/mod.rs:29
Methodbegin_geometry
(&mut self)
src/lib/drawing/mesh.rs:51
Functionbody
Parses the body of a CSS rule. E.g. `{}`.
src/lib/css.rs:427
Functionclass
Parse a single class name. E.g. `.class`.
src/lib/css.rs:402
Methodclassify
Create a selector and a list of tags form MBVT information.
src/lib/vector_tile/tile.rs:326
Methodcollider
(&self)
src/lib/vector_tile/visible_tile.rs:54
Methodcopy_uniform_buffers
( encoder: &mut CommandEncoder, source: &[(Buffer, usize)], destination: &Buffer,
src/bin/drawing/painter.rs:416
Methodcreate_background_feature
Creates a rectangle the size of a tile to be used as the background of a tile. Could also display a texture in the future (speak swisstopo).
src/lib/vector_tile/tile.rs:279
Methodcreate_blend_bind_group
( device: &Device, bind_group_layout: &BindGroupLayout, uniform_buffer: &Buffer,
src/bin/drawing/painter.rs:432
Methodcreate_layer_render_pipeline
( device: &Device, bind_group_layout: &BindGroupLayout, vs_module: &ShaderModule,
src/bin/drawing/painter.rs:243
Methodcreate_multisampled_framebuffer
( device: &Device, swap_chain_descriptor: &SwapChainDescriptor, sample_count: u32,
src/bin/drawing/painter.rs:579
Methodcreate_stencil
(device: &Device, swap_chain_descriptor: &SwapChainDescriptor)
src/bin/drawing/painter.rs:605
Methodcreate_tile_transform_buffer
Creates a new transform buffer from the tile transforms. Ensures that the buffer has the size configured in the config, to match the size configured
src/bin/drawing/painter.rs:380
Methodcreate_uniform_buffer
(device: &Device)
src/bin/drawing/painter.rs:367
Methodcreate_uniform_buffers
Creates a new bind group containing all the relevant uniform buffers.
src/bin/drawing/painter.rs:336
Functioncss_name
Parses a CSS qualified name. Can contain alphanumeric characters and '-'.
src/lib/css.rs:455
Functioncss_value
Parses a single CSS qualified value.
src/lib/css.rs:460
Methoddefault
()
src/lib/css.rs:184
Methoddefault
()
src/lib/vector_tile/vector_tile.rs:215
Methodend_geometry
(&mut self)
src/lib/drawing/mesh.rs:56
Methodextent
(&self)
src/lib/vector_tile/visible_tile.rs:27
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib/css.rs:195
Methodfmt
(&self, f: &mut std::fmt::Formatter)
src/lib/math/tile_id.rs:25
Methodfrom
(i: i32)
src/lib/vector_tile/vector_tile.rs:221
Methodfrom
(value: TileCoordinate)
src/lib/math/tile_id.rs:15
Methodfrom
(value: TileId)
src/lib/math/tile_field.rs:4
Methodfrom
(value: Color)
src/lib/feature/mod.rs:16
Functionfrom_hex
Converts a hex string into an `u8`.
src/lib/css.rs:570
Methodfrom_mbvt
Create a new tile form a MBVT pbf file. Creates all the data necessecary to render the MBVT. This includes vertex and index buffers.
src/lib/vector_tile/tile.rs:91
Methodfrom_reader
(r: &mut BytesReader, bytes: &'a [u8])
src/lib/vector_tile/vector_tile.rs:23
Methodget_average
(&self)
src/bin/stats.rs:30
Methodget_hovered_objects
( visible_tiles: &BTreeMap<TileId, VisibleTile>, screen: &Screen, zoom: f32, p
src/lib/interaction/collider.rs:10
Methodget_hovered_objects
(&self, point: &Point<f32>)
src/lib/interaction/tile_collider.rs:48
Methodget_size
(&self)
src/lib/vector_tile/vector_tile.rs:37
Methodget_stats
(&self)
src/lib/cache.rs:117
Functionget_tile_boundaries_for_8_zoom
()
src/lib/math/tile_field.rs:76
Methodhas_alpha
(&self, feature_id: u32)
src/lib/feature/collection.rs:51
Functionhex_color
Parse a single hex color code including the `#`.
src/lib/css.rs:588
Functionhex_primary
Parse an actual hex code.
src/lib/css.rs:580
Functionid
Parse a single id name. E.g. `#id`.
src/lib/css.rs:409
Methodinit
Initializes the entire draw machinery.
src/bin/drawing/painter.rs:42
Methodinit
(device: &mut wgpu::Device, queue: &mut wgpu::Queue)
src/bin/drawing/weather/temperature.rs:23
Functionis_hex_digit
`true` if `c` is a hexadecimal valid digit.
src/lib/css.rs:575
Functionkv
Parses a single CSS k/v pair. E.g. `background-color: #FF0000;`.
src/lib/css.rs:444
Functionlayer_num
(name: &str)
src/lib/vector_tile/tile.rs:64
Methodload
(&mut self, tile: Arc<RwLock<Tile>>)
src/lib/interaction/tile_collider.rs:87
Methodload_shader
Loads a shader module from a GLSL vertex and fragment shader each.
src/bin/drawing/painter.rs:459
Methodload_shader
Loads a shader module from a GLSL vertex and fragment shader each.
src/bin/drawing/weather/temperature.rs:279
Functionmain
()
src/bin/main.rs:18
Functionmain
()
src/bin/build.rs:1
Functionmain
()
examples/tile_mem_test.rs:5
Methodnew
Creates a new empty selector.
src/lib/css.rs:219
Methodnew
Creates a new object with no tags.
src/lib/object.rs:31
Methodnew
Create a new `TileCache`.
src/lib/cache.rs:28
Methodnew
(tile: Arc<RwLock<Tile>>)
src/lib/vector_tile/visible_tile.rs:15
Methodnew
()
src/lib/vector_tile/tile.rs:22
Methodnew
(tile_id: &TileId, extent: f32)
src/lib/drawing/vertex.rs:27
Methodnew
( buffers: &'l mut VertexBuffers<Vertex, u32>, vertex_constructor: LayerVertexCtor, )
src/lib/drawing/mesh.rs:19
Methodnew
(z: u32, x: u32, y: u32)
src/lib/math/tile_id.rs:9
Methodnew
(center: Point, width: u32, height: u32, tile_size: u32, hidpi_factor: f64)
src/lib/math/screen.rs:12
Methodnew
(topleft: TileId, bottomright: TileId)
src/lib/math/tile_field.rs:20
Methodnew
(n_features_max: u32)
src/lib/feature/collection.rs:10
Methodnew
(selector: Selector, layer_id: u32)
src/lib/feature/mod.rs:45
Methodnew
()
src/lib/interaction/tile_collider.rs:19
Methodnew
()
src/bin/config.rs:40
Methodnew
()
src/bin/stats.rs:8
Methodnew
( style: impl Into<String>, center: Point, width: u32, height: u32, zo
src/bin/app_state.rs:23
Methodnew
( window: &winit::window::Window, device: &mut wgpu::Device, queue: &mut wgpu::Queue,
src/bin/drawing/ui/ui.rs:17
Methodnew
()
src/bin/drawing/ui/state.rs:6
Methodnew_with_tags
Creates a new object with an initial set of tags.
src/lib/object.rs:41
Methodobjects
(&self)
src/lib/vector_tile/visible_tile.rs:31
Methodpaint
( &'a self, render_pass: &mut RenderPass<'a>, blend_pipeline: &'a RenderPipeline,
src/lib/vector_tile/visible_tile.rs:62
Methodpaint
(&mut self, hud: &mut super::ui::HUD, app_state: &mut AppState)
src/bin/drawing/painter.rs:627
Functionpx_value
Parses a single CSS px value.
src/lib/css.rs:503
Functionrgb_color
Parse a single hex color code including the `#`.
src/lib/css.rs:642
Functionrgba_color
Parse a single hex color code including the `#`.
src/lib/css.rs:615
Functionrule
Parse a single rule. E.g. `layer[name=water]{ background-color: #FF0000; }`.
src/lib/css.rs:355
Functionrules
Parses an entire set of rules.
src/lib/css.rs:335
Functionselector
Parse a single selector. E.g. `layer[name=water].class#id`.
src/lib/css.rs:371
Functionselector_size
()
src/lib/css.rs:662
Methodsize
Returns the estimated memory size used by the object.
src/lib/object.rs:71
Functionstring
Parses a single CSS qualified string. Can contain alphanumeric characters, '-' and spaces.
src/lib/css.rs:494
Methodsub
(self, other: Self)
src/lib/math/tile_id.rs:52
Methodsub_assign
(&mut self, other: Self)
src/lib/math/tile_id.rs:63
Methodtags
Returns the set of tags contained in the object.
src/lib/object.rs:61
Functiontest_ensure_cache_structure
()
src/lib/fetch.rs:92
Methodtry_get_rule_mut
(&mut self, selector: Selector)
src/lib/css.rs:99
Methodtry_load_from_file
Tries to create a new CSS rule cache from a given CSS file path.
src/lib/css.rs:42
Functionu8
(input: &'a str)
src/lib/css.rs:606
Methoduniform_buffer_size
()
src/bin/drawing/painter.rs:428
Functionunitless_value
Parses a single CSS unitless value.
src/lib/css.rs:515
Methodunload_from_gpu
(&self)
src/lib/vector_tile/visible_tile.rs:41
Methodupdate
Updates the CSS cache from the watched file if there was any changes. Returns whether a successful update happened. Returns false if there was no cha
src/lib/css.rs:107
Methodupdate_shader
Reloads the shader if the file watcher has detected any change to the shader files.
src/bin/drawing/weather/temperature.rs:296
Functionworld_value
(input: &'a str)
src/lib/css.rs:509
Methodwrite_message
(&self, w: &mut Writer<W>)
src/lib/vector_tile/vector_tile.rs:42
← previous101–199 of 199, ranked by callers