Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yatekii/sailor
/ functions
Functions
199 in github.com/Yatekii/sailor
⨍
Functions
199
◇
Types & classes
50
Method
add_rule
(&mut self, rule: Rule)
src/lib/css.rs:95
Method
add_triangle
(&mut self, a: VertexId, b: VertexId, c: VertexId)
src/lib/drawing/mesh.rs:74
Function
any
Parse any CSS selector k/v pair. E.g. `[name=water]`
src/lib/css.rs:416
Function
area
(path: &Path)
src/lib/vector_tile/mod.rs:29
Method
begin_geometry
(&mut self)
src/lib/drawing/mesh.rs:51
Function
body
Parses the body of a CSS rule. E.g. `{}`.
src/lib/css.rs:427
Function
class
Parse a single class name. E.g. `.class`.
src/lib/css.rs:402
Method
classify
Create a selector and a list of tags form MBVT information.
src/lib/vector_tile/tile.rs:326
Method
collider
(&self)
src/lib/vector_tile/visible_tile.rs:54
Method
copy_uniform_buffers
( encoder: &mut CommandEncoder, source: &[(Buffer, usize)], destination: &Buffer,
src/bin/drawing/painter.rs:416
Method
create_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
Method
create_blend_bind_group
( device: &Device, bind_group_layout: &BindGroupLayout, uniform_buffer: &Buffer,
src/bin/drawing/painter.rs:432
Method
create_layer_render_pipeline
( device: &Device, bind_group_layout: &BindGroupLayout, vs_module: &ShaderModule,
src/bin/drawing/painter.rs:243
Method
create_multisampled_framebuffer
( device: &Device, swap_chain_descriptor: &SwapChainDescriptor, sample_count: u32,
src/bin/drawing/painter.rs:579
Method
create_stencil
(device: &Device, swap_chain_descriptor: &SwapChainDescriptor)
src/bin/drawing/painter.rs:605
Method
create_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
Method
create_uniform_buffer
(device: &Device)
src/bin/drawing/painter.rs:367
Method
create_uniform_buffers
Creates a new bind group containing all the relevant uniform buffers.
src/bin/drawing/painter.rs:336
Function
css_name
Parses a CSS qualified name. Can contain alphanumeric characters and '-'.
src/lib/css.rs:455
Function
css_value
Parses a single CSS qualified value.
src/lib/css.rs:460
Method
default
()
src/lib/css.rs:184
Method
default
()
src/lib/vector_tile/vector_tile.rs:215
Method
end_geometry
(&mut self)
src/lib/drawing/mesh.rs:56
Method
extent
(&self)
src/lib/vector_tile/visible_tile.rs:27
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib/css.rs:195
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/lib/math/tile_id.rs:25
Method
from
(i: i32)
src/lib/vector_tile/vector_tile.rs:221
Method
from
(value: TileCoordinate)
src/lib/math/tile_id.rs:15
Method
from
(value: TileId)
src/lib/math/tile_field.rs:4
Method
from
(value: Color)
src/lib/feature/mod.rs:16
Function
from_hex
Converts a hex string into an `u8`.
src/lib/css.rs:570
Method
from_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
Method
from_reader
(r: &mut BytesReader, bytes: &'a [u8])
src/lib/vector_tile/vector_tile.rs:23
Method
get_average
(&self)
src/bin/stats.rs:30
Method
get_hovered_objects
( visible_tiles: &BTreeMap<TileId, VisibleTile>, screen: &Screen, zoom: f32, p
src/lib/interaction/collider.rs:10
Method
get_hovered_objects
(&self, point: &Point<f32>)
src/lib/interaction/tile_collider.rs:48
Method
get_size
(&self)
src/lib/vector_tile/vector_tile.rs:37
Method
get_stats
(&self)
src/lib/cache.rs:117
Function
get_tile_boundaries_for_8_zoom
()
src/lib/math/tile_field.rs:76
Method
has_alpha
(&self, feature_id: u32)
src/lib/feature/collection.rs:51
Function
hex_color
Parse a single hex color code including the `#`.
src/lib/css.rs:588
Function
hex_primary
Parse an actual hex code.
src/lib/css.rs:580
Function
id
Parse a single id name. E.g. `#id`.
src/lib/css.rs:409
Method
init
Initializes the entire draw machinery.
src/bin/drawing/painter.rs:42
Method
init
(device: &mut wgpu::Device, queue: &mut wgpu::Queue)
src/bin/drawing/weather/temperature.rs:23
Function
is_hex_digit
`true` if `c` is a hexadecimal valid digit.
src/lib/css.rs:575
Function
kv
Parses a single CSS k/v pair. E.g. `background-color: #FF0000;`.
src/lib/css.rs:444
Function
layer_num
(name: &str)
src/lib/vector_tile/tile.rs:64
Method
load
(&mut self, tile: Arc<RwLock<Tile>>)
src/lib/interaction/tile_collider.rs:87
Method
load_shader
Loads a shader module from a GLSL vertex and fragment shader each.
src/bin/drawing/painter.rs:459
Method
load_shader
Loads a shader module from a GLSL vertex and fragment shader each.
src/bin/drawing/weather/temperature.rs:279
Function
main
()
src/bin/main.rs:18
Function
main
()
src/bin/build.rs:1
Function
main
()
examples/tile_mem_test.rs:5
Method
new
Creates a new empty selector.
src/lib/css.rs:219
Method
new
Creates a new object with no tags.
src/lib/object.rs:31
Method
new
Create a new `TileCache`.
src/lib/cache.rs:28
Method
new
(tile: Arc<RwLock<Tile>>)
src/lib/vector_tile/visible_tile.rs:15
Method
new
()
src/lib/vector_tile/tile.rs:22
Method
new
(tile_id: &TileId, extent: f32)
src/lib/drawing/vertex.rs:27
Method
new
( buffers: &'l mut VertexBuffers<Vertex, u32>, vertex_constructor: LayerVertexCtor, )
src/lib/drawing/mesh.rs:19
Method
new
(z: u32, x: u32, y: u32)
src/lib/math/tile_id.rs:9
Method
new
(center: Point, width: u32, height: u32, tile_size: u32, hidpi_factor: f64)
src/lib/math/screen.rs:12
Method
new
(topleft: TileId, bottomright: TileId)
src/lib/math/tile_field.rs:20
Method
new
(n_features_max: u32)
src/lib/feature/collection.rs:10
Method
new
(selector: Selector, layer_id: u32)
src/lib/feature/mod.rs:45
Method
new
()
src/lib/interaction/tile_collider.rs:19
Method
new
()
src/bin/config.rs:40
Method
new
()
src/bin/stats.rs:8
Method
new
( style: impl Into<String>, center: Point, width: u32, height: u32, zo
src/bin/app_state.rs:23
Method
new
( window: &winit::window::Window, device: &mut wgpu::Device, queue: &mut wgpu::Queue,
src/bin/drawing/ui/ui.rs:17
Method
new
()
src/bin/drawing/ui/state.rs:6
Method
new_with_tags
Creates a new object with an initial set of tags.
src/lib/object.rs:41
Method
objects
(&self)
src/lib/vector_tile/visible_tile.rs:31
Method
paint
( &'a self, render_pass: &mut RenderPass<'a>, blend_pipeline: &'a RenderPipeline,
src/lib/vector_tile/visible_tile.rs:62
Method
paint
(&mut self, hud: &mut super::ui::HUD, app_state: &mut AppState)
src/bin/drawing/painter.rs:627
Function
px_value
Parses a single CSS px value.
src/lib/css.rs:503
Function
rgb_color
Parse a single hex color code including the `#`.
src/lib/css.rs:642
Function
rgba_color
Parse a single hex color code including the `#`.
src/lib/css.rs:615
Function
rule
Parse a single rule. E.g. `layer[name=water]{ background-color: #FF0000; }`.
src/lib/css.rs:355
Function
rules
Parses an entire set of rules.
src/lib/css.rs:335
Function
selector
Parse a single selector. E.g. `layer[name=water].class#id`.
src/lib/css.rs:371
Function
selector_size
()
src/lib/css.rs:662
Method
size
Returns the estimated memory size used by the object.
src/lib/object.rs:71
Function
string
Parses a single CSS qualified string. Can contain alphanumeric characters, '-' and spaces.
src/lib/css.rs:494
Method
sub
(self, other: Self)
src/lib/math/tile_id.rs:52
Method
sub_assign
(&mut self, other: Self)
src/lib/math/tile_id.rs:63
Method
tags
Returns the set of tags contained in the object.
src/lib/object.rs:61
Function
test_ensure_cache_structure
()
src/lib/fetch.rs:92
Method
try_get_rule_mut
(&mut self, selector: Selector)
src/lib/css.rs:99
Method
try_load_from_file
Tries to create a new CSS rule cache from a given CSS file path.
src/lib/css.rs:42
Function
u8
(input: &'a str)
src/lib/css.rs:606
Method
uniform_buffer_size
()
src/bin/drawing/painter.rs:428
Function
unitless_value
Parses a single CSS unitless value.
src/lib/css.rs:515
Method
unload_from_gpu
(&self)
src/lib/vector_tile/visible_tile.rs:41
Method
update
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
Method
update_shader
Reloads the shader if the file watcher has detected any change to the shader files.
src/bin/drawing/weather/temperature.rs:296
Function
world_value
(input: &'a str)
src/lib/css.rs:509
Method
write_message
(&self, w: &mut Writer<W>)
src/lib/vector_tile/vector_tile.rs:42
← previous
101–199 of 199, ranked by callers