MCPcopy Create free account

hub / github.com/Ved-s/cuprous / functions

Functions916 in github.com/Ved-s/cuprous

↓ 3 callersMethodset_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 callersMethodupdate_everything
(self: &Arc<Self>)
src/state.rs:1188
↓ 3 callersMethodwrite_circuit_state
(&self, writer: impl FnOnce(&mut CircuitState) -> R)
src/circuits/mod.rs:587
↓ 2 callersMethodactivate
Run board simulation after loading. Not required on newly created or empty boards
src/board.rs:362
↓ 2 callersMethodadd_evironment_string
(&mut self, mut str: &str)
src/string.rs:155
↓ 2 callersFunctionalign_rect_scaled
(pos: Pos2, size: Vec2, rect_size: Vec2)
src/ui/drawing.rs:158
↓ 2 callersFunctionassume_init_slice_mut
(s: &mut [MaybeUninit<T>])
src/containers.rs:1171
↓ 2 callersMethodbackground_update
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:260
↓ 2 callersMethodcheck_string
(&self, s: &str)
src/main.rs:1081
↓ 2 callersMethodconnect_circuit_to_wires
(&mut self, circuit: usize)
src/board.rs:1281
↓ 2 callersMethodconnected_wire_color
( &self, state_ctx: &CircuitStateContext, style: &Style, )
src/circuits/mod.rs:218
↓ 2 callersMethodcontrol_count
(&self, _: &Arc<Circuit>)
src/circuits/led.rs:127
↓ 2 callersMethodcontrol_info
(&self, circuit: &Arc<Circuit>, id: usize)
src/circuits/led.rs:131
↓ 2 callersMethodcreate_pins
(&mut self, circ: &Arc<Circuit>)
src/circuits/pin.rs:306
↓ 2 callersFunctioncreate_thread
(force_recreation: bool)
src/debug.rs:96
↓ 2 callersMethodcreate_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 callersFunctioncustom_rect_editor
( rect: &mut Rect, sides: Sides, ui: &Ui, id: Id, constrain: impl FnOnce(Sides, &mut Rect)
src/ui/mod.rs:825
↓ 2 callersMethoddequeue
(&mut self)
src/containers.rs:892
↓ 2 callersMethoddestroy
(&self)
src/board.rs:372
↓ 2 callersMethoddir
(&self, dir: Direction4)
src/wires.rs:381
↓ 2 callersMethoddisplay_name
(&self)
src/circuits/pin.rs:674
↓ 2 callersFunctiondraw_cross
(screen: &Screen, style: &Style, bounds: Rect, paint: &egui::Painter)
src/ui/drawing.rs:128
↓ 2 callersFunctiondraw_grid
( style: &Style, pos: Vec2f, cell_size: Vec2f, highlight_lines: Vec2u, rect: emath::Rect,
src/ui/drawing.rs:35
↓ 2 callersMethoddraw_object_selection
( &mut self, pass: &CircuitDesign, object: &SelectedDesignObject, ctx: &crate:
src/ui/designer.rs:138
↓ 2 callersMethoddraw_pin
( &self, dir: InternalPinDirection, display_dir: Option<Direction4>, pos: Vec2
src/ui/designer.rs:759
↓ 2 callersMethodequals
(&self, other: &dyn CircuitPropertyImpl)
src/circuits/pin.rs:736
↓ 2 callersMethodget_chunk_row_range
(&self, row: isize)
src/containers.rs:569
↓ 2 callersMethodget_pin
(&self, id: &DynStaticStr)
src/board.rs:1977
↓ 2 callersMethodget_relative
(&self, rel: impl Into<Vec2isize>)
src/containers.rs:423
↓ 2 callersMethodhas_custom_config
(&self)
src/ui/designer.rs:93
↓ 2 callersMethodid
(&self)
src/circuits/props.rs:227
↓ 2 callersMethodinit_circuit_state
(&self, circuit: &Arc<Circuit>, first_init: bool)
src/state.rs:463
↓ 2 callersFunctioninside_pin
Returns center position
src/graphics.rs:78
↓ 2 callersMethodintersect
(&self, other: &Self)
src/main.rs:350
↓ 2 callersMethodis_controlled
(self)
src/circuits/pin.rs:44
↓ 2 callersMethodis_empty
(&self)
src/containers.rs:252
↓ 2 callersMethodis_empty
(&self)
src/error.rs:108
↓ 2 callersMethoditer_area
( &self, pos: Vec2isize, size: Vec2usize, )
src/containers.rs:598
↓ 2 callersMethodlength
(self)
src/vector.rs:50
↓ 2 callersMethodload_internal
( &self, _ctx: &CircuitStateContext, data: &serde_intermediate::Intermediate,
src/circuits/pin.rs:533
↓ 2 callersMethodmerge
(&mut self, state: &WireState)
src/state.rs:156
↓ 2 callersMethodmutate_wire_state
( &self, ctx: &CircuitStateContext, state: &mut WireState, visited_items: &mut
src/circuits/mod.rs:310
↓ 2 callersMethodname
(self)
src/main.rs:635
↓ 2 callersMethodname
(&self)
src/debug.rs:46
↓ 2 callersMethodname
(&self)
src/circuits/props.rs:231
↓ 2 callersMethodnext_chunk
(&mut self)
src/containers.rs:719
↓ 2 callersMethodnow
()
src/time.rs:21
↓ 2 callersFunctionoutside_pin
size: 1.15x1
src/graphics.rs:169
↓ 2 callersMethodplace_circuit
TODO: cleanup
src/board.rs:1239
↓ 2 callersMethodplace_wire_part
Returns placed wire id
src/board.rs:474
↓ 2 callersMethodpre_update_selection
(&mut self, pass: &I::Pass, ctx: &PaintContext, selected: bool)
src/ui/selection.rs:86
↓ 2 callersMethodprocess_string
(&mut self, string: &mut String)
src/string.rs:165
↓ 2 callersMethodpush_back
(&mut self, value: T)
src/containers.rs:981
↓ 2 callersMethodread_circuit_state
(&self, reader: impl FnOnce(&CircuitState) -> R)
src/circuits/mod.rs:583
↓ 2 callersMethodread_dyn
(&self, id: &str, f: F)
src/circuits/props.rs:49
↓ 2 callersFunctionrect_properties_editor
( rect: &mut Rect, ui: &mut Ui, id: impl Into<Id>, text: impl Into<WidgetText>, constrain:
src/ui/mod.rs:1100
↓ 2 callersFunctionrelay
( coil: Color32, closed: bool, mode: RelayGraphicsMode, flip: bool, angle: f32, coil_p
src/graphics.rs:237
↓ 2 callersMethodremove_circuit_state
(self: &Arc<Self>, circuit: &Arc<Circuit>)
src/state.rs:784
↓ 2 callersMethodreset_circuit_update_interval
(&self, id: usize)
src/state.rs:619
↓ 2 callersMethodreset_wire
(&self, wire: usize)
src/state.rs:430
↓ 2 callersMethodrotate_counterclockwise
(self)
src/main.rs:607
↓ 2 callersMethodrotate_counterclockwise_by
Up - no rotation, Left - one, Down - two, etc
src/main.rs:673
↓ 2 callersFunctionrotated_rect_shape
(rect: Rect, angle: f32, origin: Pos2)
src/ui/editor.rs:199
↓ 2 callersMethodsave
(self: &Arc<Self>)
src/circuits/mod.rs:443
↓ 2 callersMethodsave_state
(&mut self)
src/app.rs:710
↓ 2 callersMethodscaled_by
(self, scale: f32)
src/ui/mod.rs:785
↓ 2 callersMethodsearch_wire_point
(&self, pos: Vec2i, dir: Direction4)
src/wires.rs:174
↓ 2 callersMethodset_circuit_internal_state
(&self, value: Option<T>)
src/circuits/mod.rs:614
↓ 2 callersMethodset_circuit_update_interval
(self: &Arc<Self>, id: usize, dur: Duration)
src/state.rs:594
↓ 2 callersMethodset_direction
(&self, state_ctx: &CircuitStateContext, dir: PinDirection)
src/circuits/mod.rs:270
↓ 2 callersMethodset_node_wires
(&mut self, positions: impl Iterator<Item = &'a Vec2i>, wire: usize)
src/board.rs:1062
↓ 2 callersMethodsize
(&self, circ: &Arc<Circuit>)
src/circuits/freq_meter.rs:137
↓ 2 callersMethodsize_range
(self, size_range: Rangef)
src/ui/side_panel.rs:95
↓ 2 callersMethodsplit_wires
(&mut self, id: usize, update_states: bool)
src/board.rs:990
↓ 2 callersMethodstrip_inner
(&mut self)
src/containers.rs:179
↓ 2 callersMethodtest_free_correct
(&self)
src/containers.rs:256
↓ 2 callersMethodto_screen
(self, screen_rect: Rect)
src/main.rs:297
↓ 2 callersFunctiontransistor
TODO: cleanup
src/graphics.rs:17
↓ 2 callersMethodtrue_color
(&self)
src/wires.rs:66
↓ 2 callersMethodui
Returns changes
src/wires.rs:80
↓ 2 callersMethodui_update
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:563
↓ 2 callersMethodupdate
(&self, ctx: &CircuitStateContext, interval: &mut Option<Duration>)
src/circuits/clock.rs:275
↓ 2 callersMethodupdate_circuit_signals_now
(self: &Arc<Self>, circuit: &Arc<Circuit>, pin: Option<usize>)
src/state.rs:1039
↓ 2 callersMethodupdate_control
( &self, id: usize, _: &Arc<Circuit>, state: Option<&CircuitStateContext>,
src/circuits/led.rs:156
↓ 2 callersMethodupdate_first_free_set
(&mut self, into: usize)
src/containers.rs:217
↓ 2 callersMethodupdate_once
(self: &Arc<State>, queue_limit: usize)
src/state.rs:823
↓ 2 callersMethodupdate_pin_input_now
( self: &Arc<Self>, circuit: &Arc<Circuit>, id: usize, visited_items: Option<&
src/state.rs:1046
↓ 2 callersMethodupdate_selection
(&mut self, pass: &I::Pass, ctx: &PaintContext)
src/ui/selection.rs:187
↓ 2 callersMethodwires_at
(&self, pos: Vec2i)
src/board.rs:1075
↓ 1 callersMethodangle_to_x
0 -> 2PI countercloclwise from +X axis
src/vector.rs:134
↓ 1 callersMethodapply_props
Called after all circuit parameters were successfully updated
src/circuits/mod.rs:749
↓ 1 callersMethodapply_props
(&mut self, circ: &Arc<Circuit>, _: Option<&str>)
src/circuits/pin.rs:496
↓ 1 callersMethodapply_wire_state
( self: &Arc<Self>, wire: usize, state: &WireState, skip_state_ckeck: bool,
src/state.rs:980
↓ 1 callersMethodas_single_mut
(&mut self)
src/state.rs:105
↓ 1 callersFunctionassume_init_array
MaybeUninit::array_assume_init
src/ext.rs:163
↓ 1 callersMethodbottom_panel
(&mut self, ui: &mut Ui)
src/app.rs:490
↓ 1 callersMethodbundle_color
(&self)
src/wires.rs:75
↓ 1 callersMethodbundle_len
(&self)
src/state.rs:88
↓ 1 callersMethodcache
(&self, str: &str)
src/cache.rs:14
↓ 1 callersMethodcalc_draw_bounds
(&self, screen: &Screen)
src/ui/editor.rs:1240
← previousnext →201–300 of 916, ranked by callers