MCPcopy Create free account

hub / github.com/ChevyRay/crunch-rs / functions

Functions28 in github.com/ChevyRay/crunch-rs

↓ 6 callersMethodbottom
(&self)
src/rect.rs:63
↓ 6 callersMethodright
(&self)
src/rect.rs:57
↓ 3 callersMethodpush
(&mut self, item: Item<T>)
src/packer.rs:119
↓ 2 callersMethodbetter_than
(&self, other: &Score)
src/packer.rs:351
↓ 2 callersMethodclear
(&mut self)
src/packer.rs:113
↓ 2 callersMethodfind_best_node
(&self, w: usize, h: usize, node_index: usize)
src/packer.rs:132
↓ 2 callersMethodpack
Attempt to pack all the items into `into_rect`. The returned `Vec<(Rect, T)>` will contain positions for all packed items on success, or just the item
src/packer.rs:218
↓ 2 callersMethodsort_priority
(&self)
src/item.rs:44
↓ 1 callersMethodarea
(&self)
src/rect.rs:27
↓ 1 callersMethodcontains
(&self, other: &Rect)
src/rect.rs:33
↓ 1 callersMethodextend
(&mut self, items: I)
src/packer.rs:125
↓ 1 callersMethodleaf_contains_rect
(&self, rect: &Rect, node_index: usize)
src/packer.rs:161
↓ 1 callersMethodoverlaps
(&self, other: &Rect)
src/rect.rs:42
↓ 1 callersFunctionpack_into_po2
Attempts to pack the supplied items into the smallest power of 2 container it possibly can, while not exceeding the provided `max_size`. On success,
src/packer.rs:60
↓ 1 callersMethodpack_into_po2
Attempts to pack the supplied items into the smallest power of 2 container it possibly can while not exceeding the provided `max_size`. On success, r
src/packer.rs:291
↓ 1 callersMethodsplit
(&self, rect: &Rect)
src/rect.rs:68
↓ 1 callersMethodsplit_tree
(&mut self, rect: &Rect, node_index: usize)
src/packer.rs:177
↓ 1 callersMethodtop_left
(&self)
src/rect.rs:51
Methoddefault
Default packer, equivalent to `Packer::new()`.
src/packer.rs:107
Functionmain
()
examples/pack_images/src/main.rs:5
Methodnew
(x: usize, y: usize, w: usize, h: usize)
src/rect.rs:13
Methodnew
Create a new, empty packer.
src/packer.rs:78
Methodnew
(data: T, w: usize, h: usize, rot: Rotation)
src/item.rs:39
Methodof_size
(w: usize, h: usize)
src/rect.rs:21
Functionpack
Attempts to tightly pack the supplied `items` into `into_rect`. Returns a collection of `Vec<(Rect, T)>` on success, or all items that were packed be
src/packer.rs:47
Methodwith_capacity
Create a packer with an initial `capacity` to prevent collection resizing.
src/packer.rs:87
Methodwith_items
Create a packer initialized with the collection of `items`.
src/packer.rs:96
Methodworst
()
src/packer.rs:342