Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ved-s/cuprous
/ functions
Functions
916 in github.com/Ved-s/cuprous
⨍
Functions
916
◇
Types & classes
245
↓ 3 callers
Method
set_wire_pointers
parameter `ptr_start`: None to remove pointers, Some(0) indicates that node at `pos` is an intersection, other values don't
src/board.rs:634
↓ 3 callers
Method
update_everything
(self: &Arc<Self>)
src/state.rs:1188
↓ 3 callers
Method
write_circuit_state
(&self, writer: impl FnOnce(&mut CircuitState) -> R)
src/circuits/mod.rs:587
↓ 2 callers
Method
activate
Run board simulation after loading. Not required on newly created or empty boards
src/board.rs:362
↓ 2 callers
Method
add_evironment_string
(&mut self, mut str: &str)
src/string.rs:155
↓ 2 callers
Function
align_rect_scaled
(pos: Pos2, size: Vec2, rect_size: Vec2)
src/ui/drawing.rs:158
↓ 2 callers
Function
assume_init_slice_mut
(s: &mut [MaybeUninit<T>])
src/containers.rs:1171
↓ 2 callers
Method
background_update
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:260
↓ 2 callers
Method
check_string
(&self, s: &str)
src/main.rs:1081
↓ 2 callers
Method
connect_circuit_to_wires
(&mut self, circuit: usize)
src/board.rs:1281
↓ 2 callers
Method
connected_wire_color
( &self, state_ctx: &CircuitStateContext, style: &Style, )
src/circuits/mod.rs:218
↓ 2 callers
Method
control_count
(&self, _: &Arc<Circuit>)
src/circuits/led.rs:127
↓ 2 callers
Method
control_info
(&self, circuit: &Arc<Circuit>, id: usize)
src/circuits/led.rs:131
↓ 2 callers
Method
create_pins
(&mut self, circ: &Arc<Circuit>)
src/circuits/pin.rs:306
↓ 2 callers
Function
create_thread
(force_recreation: bool)
src/debug.rs:96
↓ 2 callers
Method
create_wire_intersection_at_node
wire param: if Some(w) will use wire w, if None, will try to figure ot which wire to use (with merging wires)
src/board.rs:776
↓ 2 callers
Function
custom_rect_editor
( rect: &mut Rect, sides: Sides, ui: &Ui, id: Id, constrain: impl FnOnce(Sides, &mut Rect)
src/ui/mod.rs:825
↓ 2 callers
Method
dequeue
(&mut self)
src/containers.rs:892
↓ 2 callers
Method
destroy
(&self)
src/board.rs:372
↓ 2 callers
Method
dir
(&self, dir: Direction4)
src/wires.rs:381
↓ 2 callers
Method
display_name
(&self)
src/circuits/pin.rs:674
↓ 2 callers
Function
draw_cross
(screen: &Screen, style: &Style, bounds: Rect, paint: &egui::Painter)
src/ui/drawing.rs:128
↓ 2 callers
Function
draw_grid
( style: &Style, pos: Vec2f, cell_size: Vec2f, highlight_lines: Vec2u, rect: emath::Rect,
src/ui/drawing.rs:35
↓ 2 callers
Method
draw_object_selection
( &mut self, pass: &CircuitDesign, object: &SelectedDesignObject, ctx: &crate:
src/ui/designer.rs:138
↓ 2 callers
Method
draw_pin
( &self, dir: InternalPinDirection, display_dir: Option<Direction4>, pos: Vec2
src/ui/designer.rs:759
↓ 2 callers
Method
equals
(&self, other: &dyn CircuitPropertyImpl)
src/circuits/pin.rs:736
↓ 2 callers
Method
get_chunk_row_range
(&self, row: isize)
src/containers.rs:569
↓ 2 callers
Method
get_pin
(&self, id: &DynStaticStr)
src/board.rs:1977
↓ 2 callers
Method
get_relative
(&self, rel: impl Into<Vec2isize>)
src/containers.rs:423
↓ 2 callers
Method
has_custom_config
(&self)
src/ui/designer.rs:93
↓ 2 callers
Method
id
(&self)
src/circuits/props.rs:227
↓ 2 callers
Method
init_circuit_state
(&self, circuit: &Arc<Circuit>, first_init: bool)
src/state.rs:463
↓ 2 callers
Function
inside_pin
Returns center position
src/graphics.rs:78
↓ 2 callers
Method
intersect
(&self, other: &Self)
src/main.rs:350
↓ 2 callers
Method
is_controlled
(self)
src/circuits/pin.rs:44
↓ 2 callers
Method
is_empty
(&self)
src/containers.rs:252
↓ 2 callers
Method
is_empty
(&self)
src/error.rs:108
↓ 2 callers
Method
iter_area
( &self, pos: Vec2isize, size: Vec2usize, )
src/containers.rs:598
↓ 2 callers
Method
length
(self)
src/vector.rs:50
↓ 2 callers
Method
load_internal
( &self, _ctx: &CircuitStateContext, data: &serde_intermediate::Intermediate,
src/circuits/pin.rs:533
↓ 2 callers
Method
merge
(&mut self, state: &WireState)
src/state.rs:156
↓ 2 callers
Method
mutate_wire_state
( &self, ctx: &CircuitStateContext, state: &mut WireState, visited_items: &mut
src/circuits/mod.rs:310
↓ 2 callers
Method
name
(self)
src/main.rs:635
↓ 2 callers
Method
name
(&self)
src/debug.rs:46
↓ 2 callers
Method
name
(&self)
src/circuits/props.rs:231
↓ 2 callers
Method
next_chunk
(&mut self)
src/containers.rs:719
↓ 2 callers
Method
now
()
src/time.rs:21
↓ 2 callers
Function
outside_pin
size: 1.15x1
src/graphics.rs:169
↓ 2 callers
Method
place_circuit
TODO: cleanup
src/board.rs:1239
↓ 2 callers
Method
place_wire_part
Returns placed wire id
src/board.rs:474
↓ 2 callers
Method
pre_update_selection
(&mut self, pass: &I::Pass, ctx: &PaintContext, selected: bool)
src/ui/selection.rs:86
↓ 2 callers
Method
process_string
(&mut self, string: &mut String)
src/string.rs:165
↓ 2 callers
Method
push_back
(&mut self, value: T)
src/containers.rs:981
↓ 2 callers
Method
read_circuit_state
(&self, reader: impl FnOnce(&CircuitState) -> R)
src/circuits/mod.rs:583
↓ 2 callers
Method
read_dyn
(&self, id: &str, f: F)
src/circuits/props.rs:49
↓ 2 callers
Function
rect_properties_editor
( rect: &mut Rect, ui: &mut Ui, id: impl Into<Id>, text: impl Into<WidgetText>, constrain:
src/ui/mod.rs:1100
↓ 2 callers
Function
relay
( coil: Color32, closed: bool, mode: RelayGraphicsMode, flip: bool, angle: f32, coil_p
src/graphics.rs:237
↓ 2 callers
Method
remove_circuit_state
(self: &Arc<Self>, circuit: &Arc<Circuit>)
src/state.rs:784
↓ 2 callers
Method
reset_circuit_update_interval
(&self, id: usize)
src/state.rs:619
↓ 2 callers
Method
reset_wire
(&self, wire: usize)
src/state.rs:430
↓ 2 callers
Method
rotate_counterclockwise
(self)
src/main.rs:607
↓ 2 callers
Method
rotate_counterclockwise_by
Up - no rotation, Left - one, Down - two, etc
src/main.rs:673
↓ 2 callers
Function
rotated_rect_shape
(rect: Rect, angle: f32, origin: Pos2)
src/ui/editor.rs:199
↓ 2 callers
Method
save
(self: &Arc<Self>)
src/circuits/mod.rs:443
↓ 2 callers
Method
save_state
(&mut self)
src/app.rs:710
↓ 2 callers
Method
scaled_by
(self, scale: f32)
src/ui/mod.rs:785
↓ 2 callers
Method
search_wire_point
(&self, pos: Vec2i, dir: Direction4)
src/wires.rs:174
↓ 2 callers
Method
set_circuit_internal_state
(&self, value: Option<T>)
src/circuits/mod.rs:614
↓ 2 callers
Method
set_circuit_update_interval
(self: &Arc<Self>, id: usize, dur: Duration)
src/state.rs:594
↓ 2 callers
Method
set_direction
(&self, state_ctx: &CircuitStateContext, dir: PinDirection)
src/circuits/mod.rs:270
↓ 2 callers
Method
set_node_wires
(&mut self, positions: impl Iterator<Item = &'a Vec2i>, wire: usize)
src/board.rs:1062
↓ 2 callers
Method
size
(&self, circ: &Arc<Circuit>)
src/circuits/freq_meter.rs:137
↓ 2 callers
Method
size_range
(self, size_range: Rangef)
src/ui/side_panel.rs:95
↓ 2 callers
Method
split_wires
(&mut self, id: usize, update_states: bool)
src/board.rs:990
↓ 2 callers
Method
strip_inner
(&mut self)
src/containers.rs:179
↓ 2 callers
Method
test_free_correct
(&self)
src/containers.rs:256
↓ 2 callers
Method
to_screen
(self, screen_rect: Rect)
src/main.rs:297
↓ 2 callers
Function
transistor
TODO: cleanup
src/graphics.rs:17
↓ 2 callers
Method
true_color
(&self)
src/wires.rs:66
↓ 2 callers
Method
ui
Returns changes
src/wires.rs:80
↓ 2 callers
Method
ui_update
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:563
↓ 2 callers
Method
update
(&self, ctx: &CircuitStateContext, interval: &mut Option<Duration>)
src/circuits/clock.rs:275
↓ 2 callers
Method
update_circuit_signals_now
(self: &Arc<Self>, circuit: &Arc<Circuit>, pin: Option<usize>)
src/state.rs:1039
↓ 2 callers
Method
update_control
( &self, id: usize, _: &Arc<Circuit>, state: Option<&CircuitStateContext>,
src/circuits/led.rs:156
↓ 2 callers
Method
update_first_free_set
(&mut self, into: usize)
src/containers.rs:217
↓ 2 callers
Method
update_once
(self: &Arc<State>, queue_limit: usize)
src/state.rs:823
↓ 2 callers
Method
update_pin_input_now
( self: &Arc<Self>, circuit: &Arc<Circuit>, id: usize, visited_items: Option<&
src/state.rs:1046
↓ 2 callers
Method
update_selection
(&mut self, pass: &I::Pass, ctx: &PaintContext)
src/ui/selection.rs:187
↓ 2 callers
Method
wires_at
(&self, pos: Vec2i)
src/board.rs:1075
↓ 1 callers
Method
angle_to_x
0 -> 2PI countercloclwise from +X axis
src/vector.rs:134
↓ 1 callers
Method
apply_props
Called after all circuit parameters were successfully updated
src/circuits/mod.rs:749
↓ 1 callers
Method
apply_props
(&mut self, circ: &Arc<Circuit>, _: Option<&str>)
src/circuits/pin.rs:496
↓ 1 callers
Method
apply_wire_state
( self: &Arc<Self>, wire: usize, state: &WireState, skip_state_ckeck: bool,
src/state.rs:980
↓ 1 callers
Method
as_single_mut
(&mut self)
src/state.rs:105
↓ 1 callers
Function
assume_init_array
MaybeUninit::array_assume_init
src/ext.rs:163
↓ 1 callers
Method
bottom_panel
(&mut self, ui: &mut Ui)
src/app.rs:490
↓ 1 callers
Method
bundle_color
(&self)
src/wires.rs:75
↓ 1 callers
Method
bundle_len
(&self)
src/state.rs:88
↓ 1 callers
Method
cache
(&self, str: &str)
src/cache.rs:14
↓ 1 callers
Method
calc_draw_bounds
(&self, screen: &Screen)
src/ui/editor.rs:1240
← previous
next →
201–300 of 916, ranked by callers