Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoshuaPostel/texaform
/ functions
Functions
513 in github.com/JoshuaPostel/texaform
⨍
Functions
513
◇
Types & classes
109
↓ 65 callers
Method
push
(&mut self, item: (String, String))
src/agents/mod.rs:201
↓ 53 callers
Method
bg
(&self)
src/entities/mod.rs:167
↓ 51 callers
Method
fg
(&self)
src/entities/mod.rs:158
↓ 46 callers
Function
render_widget_clamped
(frame: &mut Frame, widget: W, area: Rect)
src/ui/mod.rs:20
↓ 39 callers
Method
insert
(&mut self, pos: &Position, gent: Gent)
src/surface/grid.rs:147
↓ 36 callers
Method
send
(self, msg: str)
python/dog.py:40
↓ 33 callers
Method
style
(self, style: Style)
src/widgets/list.rs:61
↓ 28 callers
Method
contains
(self, point: Point)
python/utils.py:73
↓ 28 callers
Method
get
(&self, pos: &Position)
src/surface/grid.rs:122
↓ 24 callers
Method
set_screen
(&mut self, screen: Screen)
src/app.rs:269
↓ 21 callers
Method
character
(&self)
src/entities/mod.rs:115
↓ 14 callers
Method
add_entity
(&mut self, pos: &Position, prop: Entity)
src/surface/mod.rs:362
↓ 14 callers
Method
get_mut
(&mut self, pos: &Position)
src/surface/grid.rs:129
↓ 13 callers
Method
goto
(self, target: Point, skip_x: bool = False)
python/dog.py:148
↓ 13 callers
Function
pos_to_idx
SERIOUS BUG: didnt think through case where Position outside of grid example: GRID_WIDTH = 250, pos = Position::new(251, 7)
src/utils.rs:47
↓ 13 callers
Method
select
TODO will this panic if called on empty list?
src/widgets/list.rs:280
↓ 12 callers
Method
face
(self, direction: Direction)
python/dog.py:99
↓ 11 callers
Method
selected
(&self)
src/widgets/list.rs:320
↓ 10 callers
Method
handle_mouse
( &mut self, area: Rect, pos: Position, event: MouseEvent, )
src/widgets/mod.rs:33
↓ 10 callers
Function
idx_to_pos
(idx: usize, grid_width: usize)
src/utils.rs:38
↓ 10 callers
Method
is_empty
(&self)
src/surface/grid.rs:30
↓ 10 callers
Method
render
(self, area: Rect, buf: &mut Buffer)
src/widgets/depreciated_button.rs:106
↓ 9 callers
Method
footprint
also indicates that something is buildable to DOG
src/entities/mod.rs:175
↓ 9 callers
Method
set_cell
(&mut self, x: u16, y: u16, pub_cell: PubCell)
src/draw/mod.rs:49
↓ 9 callers
Method
translate
(self, x: u16, y: u16)
src/entities/shape.rs:256
↓ 8 callers
Method
add_agent
( &mut self, pos: &Position, agent: Box<dyn Agent + 'static>, )
src/surface/mod.rs:400
↓ 8 callers
Method
entity
(&self)
src/surface/grid.rs:48
↓ 8 callers
Method
forward
(self, direction: Direction, distance: int = 1)
python/utils.py:51
↓ 8 callers
Method
set_content
(&mut self, content: W)
src/widgets/button.rs:68
↓ 7 callers
Method
handle_key_event
(&mut self, key_event: KeyEvent)
src/widgets/list.rs:96
↓ 7 callers
Function
research
( research_name: str, dog: Dog, smelter: Smelter, lc: LazerCutter, fab: Fabricator )
python/make.py:108
↓ 6 callers
Method
add_north
(self)
src/ui/tech_tree.rs:256
↓ 6 callers
Method
add_south
(self)
src/ui/tech_tree.rs:262
↓ 6 callers
Function
checked_pos_to_idx
TODO all should move to checked
src/utils.rs:61
↓ 6 callers
Method
cost
(&self)
src/entities/mod.rs:201
↓ 6 callers
Method
entity
(&self)
src/agents/dog.rs:128
↓ 6 callers
Method
get_direct
(&self, pos: &Position)
src/surface/grid.rs:151
↓ 6 callers
Method
hover
(&mut self, idx: Option<usize>)
src/widgets/list.rs:304
↓ 6 callers
Method
position
(position: Position)
src/agents/mod.rs:131
↓ 6 callers
Method
previous_screen
(&self)
src/app.rs:284
↓ 5 callers
Method
approach
(self, point: Point)
python/dog.py:216
↓ 5 callers
Method
charge_if_needed
(self)
python/dog.py:26
↓ 5 callers
Method
focused_agent_port
(&self)
src/surface/mod.rs:141
↓ 5 callers
Function
get_data_dir
()
src/logging.rs:24
↓ 5 callers
Function
load_save_file
(app: &mut App, path: &PathBuf)
src/input/load_game.rs:25
↓ 5 callers
Function
load_save_file_cached
(app: &mut App, path: &PathBuf)
src/input/load_game.rs:19
↓ 5 callers
Method
place
(&mut self, entity: Entity)
src/agents/dog.rs:185
↓ 5 callers
Method
pop
(&mut self, pos: &Position)
src/surface/grid.rs:139
↓ 5 callers
Method
right
(&self)
src/agents/dog.rs:83
↓ 5 callers
Method
scan
(self)
python/dog.py:80
↓ 5 callers
Method
stat
(self)
python/dog.py:67
↓ 5 callers
Method
take
(&mut self)
src/widgets/text_box.rs:148
↓ 5 callers
Method
transport
(self, char: str, from_loc: Point, to_loc: Point)
python/dog.py:271
↓ 5 callers
Method
update_plate
(&mut self)
src/agents/laser_cutter.rs:215
↓ 4 callers
Method
add_east
(self)
src/ui/tech_tree.rs:268
↓ 4 callers
Method
add_west
(self)
src/ui/tech_tree.rs:271
↓ 4 callers
Method
agent_position
(&self, port: &usize)
src/surface/mod.rs:525
↓ 4 callers
Function
build
( name: str, location: Point, dog: Dog, smelter: Smelter, lc: LazerCutter, fab: Fabric
python/make.py:118
↓ 4 callers
Method
cordinites_forward
TODO returns current cordinates if forward is off the map
src/agents/dog.rs:443
↓ 4 callers
Method
current_research_content
(&self)
src/tech_tree.rs:421
↓ 4 callers
Function
empty
(event_sender: UnboundedSender<Event>)
src/surface/generation.rs:189
↓ 4 callers
Function
highlight
( grid_pos: &Position, footprint: Option<Position>, surface: &Surface, buf: &mut Buffer, )
src/ui/surface.rs:371
↓ 4 callers
Method
hovered
(&mut self, hovered: bool)
src/widgets/button.rs:60
↓ 4 callers
Method
hug_right
(self, desired_direction: Direction)
python/dog.py:126
↓ 4 callers
Function
load
(app: &mut App, path: &PathBuf)
src/input/load_game.rs:78
↓ 4 callers
Function
make
( thing: str, dog: Dog, smelter: Smelter, lc: LazerCutter, fab: Fabricator )
python/make.py:73
↓ 4 callers
Method
normalize
(self)
src/entities/shape.rs:85
↓ 4 callers
Method
pick_known
(self, char: str, point: Point)
python/dog.py:250
↓ 4 callers
Function
render_effect_clamped
( frame: &mut Frame, effect: &mut S, area: Rect, last_tick: std::time::Duration, )
src/ui/mod.rs:33
↓ 4 callers
Method
render_surface_cell
used in ui/load_game.rs just implement there? render pointing at the inital starting position via GRID_SIZE
src/surface/grid.rs:58
↓ 4 callers
Method
research
(self)
python/fabricator.py:32
↓ 4 callers
Method
resize
(&self, width: u16, height: u16)
src/widgets/depreciated_button.rs:138
↓ 4 callers
Method
screen
(&self)
src/app.rs:280
↓ 4 callers
Method
solve
(mut self)
src/agents/laser_cutter.rs:509
↓ 4 callers
Method
taxi_distance
(self, other)
python/utils.py:48
↓ 4 callers
Method
whole_screen
(&self)
src/ui/mod.rs:130
↓ 3 callers
Method
append
(&mut self, digit: u64)
src/surface/state.rs:180
↓ 3 callers
Method
buildable
(&self, rect: Rect)
src/surface/grid.rs:172
↓ 3 callers
Method
document
(&self)
src/ui/documentation.rs:108
↓ 3 callers
Method
drop_off
(self, point: Point)
python/dog.py:256
↓ 3 callers
Method
get_agent
(&self, port: &usize)
src/surface/mod.rs:498
↓ 3 callers
Function
insert_shape
( shape: Shape, entity: Entity, grid: &mut [Gent], idx: usize, unbuildable_idx: &mut HashS
src/surface/generation.rs:35
↓ 3 callers
Method
left
(&self)
src/agents/dog.rs:74
↓ 3 callers
Method
line
PERF lazy_static this
src/entities/mod.rs:97
↓ 3 callers
Method
material_and_shape
(&self)
src/entities/mod.rs:248
↓ 3 callers
Method
place
(&mut self, entity: Entity)
src/surface/grid.rs:99
↓ 3 callers
Function
plate_from_string
(s: String)
src/agents/laser_cutter.rs:530
↓ 3 callers
Method
power_off
(self)
python/lazer_cutter.py:42
↓ 3 callers
Method
power_off
(self)
python/smelter.py:36
↓ 3 callers
Method
prerequisits_unlocked
(&self, node_index: usize)
src/tech_tree.rs:339
↓ 3 callers
Method
progress
(&self)
src/surface/tutorial.rs:20
↓ 3 callers
Function
relative_position
(rect: Rect, pos: Position)
src/utils.rs:12
↓ 3 callers
Method
reset
Resets the terminal interface. This function is also used for the panic hook to revert the terminal properties if unexpected errors occur.
src/tui.rs:63
↓ 3 callers
Method
select_by_display
returns whether or not item was in list
src/widgets/list.rs:291
↓ 3 callers
Method
selected_unchecked
(&self)
src/widgets/list.rs:328
↓ 3 callers
Method
set_research
(&mut self, node_index: usize)
src/tech_tree.rs:296
↓ 3 callers
Method
stat
(self)
python/smelter.py:20
↓ 3 callers
Method
store
(self, dog: Dog, entity: str)
python/gather.py:34
↓ 3 callers
Method
with_titles
(self, titles: [Option<String>; 3])
src/widgets/button.rs:95
↓ 3 callers
Function
xy_to_idx
(x: usize, y: usize, grid_width: usize)
src/utils.rs:34
next →
1–100 of 513, ranked by callers