Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/The-Powder-Toy/The-Powder-Toy
/ functions
Functions
3,772 in github.com/The-Powder-Toy/The-Powder-Toy
⨍
Functions
3,772
◇
Types & classes
850
↓ 991 callers
Function
ID
src/simulation/ElementDefs.h:66
↓ 533 callers
Function
TYP
src/simulation/ElementDefs.h:70
↓ 486 callers
Method
size
src/lua/LuaWindow.cpp:180
↓ 261 callers
Method
WithAlpha
src/graphics/Pixel.h:156
↓ 237 callers
Function
GetLSI
src/lua/LuaScriptInterface.h:313
↓ 225 callers
Method
chance
src/common/tpt-rand.cpp:41
↓ 222 callers
Method
between
src/common/tpt-rand.cpp:35
↓ 203 callers
Method
part_change_type
Changes the type of particle number i, to t. This also changes pmap at the same time Returns true if the particle was killed
src/simulation/Simulation.cpp:1798
↓ 180 callers
Method
create_part
the function for creating a particle, use p=-1 for creating a new particle, -2 is from a brush, or a particle number to replace a particle. tv = Type
src/simulation/Simulation.cpp:1843
↓ 167 callers
Method
data
src/common/Plane.h:153
↓ 160 callers
Function
RectSized
src/common/Vec2.h:431
↓ 137 callers
Method
AssertInterfaceEvent
src/lua/LuaScriptInterface.h:164
↓ 136 callers
Method
SetActionCallback
src/gui/interface/Slider.h:32
↓ 131 callers
Function
move
src/lua/LuaFileSystem.cpp:87
↓ 128 callers
Method
end
src/common/Vec2.h:424
↓ 127 callers
Method
begin
Use when the order isn't important
src/common/Vec2.h:419
↓ 124 callers
Method
get
src/lua/LuaLuna.h:93
↓ 113 callers
Method
kill_part
src/simulation/Simulation.cpp:1755
↓ 99 callers
Method
FromUtf8
src/common/String.cpp:87
↓ 96 callers
Method
SetText
src/gui/interface/Label.cpp:42
↓ 94 callers
Method
OriginRect
src/common/Vec2.h:125
↓ 91 callers
Function
restrict_flt
src/Misc.h:64
↓ 76 callers
Method
clear
src/simulation/CoordStack.h:66
↓ 75 callers
Method
end
src/gui/game/Brush.h:80
↓ 74 callers
Method
Get
src/common/Bson.h:67
↓ 74 callers
Function
HandleCURLcode
src/client/http/requestmanager/Libcurl.cpp:27
↓ 73 callers
Method
GetSimulation
src/gui/game/GameModel.cpp:932
↓ 71 callers
Method
Set
src/prefs/Prefs.h:78
↓ 70 callers
Method
begin
src/gui/game/Brush.h:74
↓ 64 callers
Method
GetText
src/gui/interface/Label.cpp:76
↓ 63 callers
Method
Size
src/graphics/Graphics.h:17
↓ 55 callers
Method
ToUtf8
src/common/String.cpp:203
↓ 53 callers
Method
Contains
src/common/Vec2.h:379
↓ 47 callers
Method
AddChild
src/gui/interface/Panel.cpp:25
↓ 44 callers
Function
tpt_lua_pcall
src/lua/LuaScriptInterface.cpp:877
↓ 43 callers
Method
Build
src/common/String.h:633
↓ 43 callers
Method
DrawFilledRect
src/graphics/RasterDrawMethodsImpl.h:132
↓ 41 callers
Method
Log
src/lua/CommandInterface.cpp:25
↓ 38 callers
Function
Exit
src/common/platform/ExitCommon.cpp:14
↓ 38 callers
Function
tpt_lua_pushByteString
src/lua/LuaScriptInterface.cpp:809
↓ 37 callers
Method
BlendText
src/graphics/RasterDrawMethodsImpl.h:253
↓ 37 callers
Method
DrawRect
src/gui/game/tool/Tool.cpp:11
↓ 36 callers
Method
GetSave
src/gui/game/GameModel.cpp:817
↓ 36 callers
Method
SetTextColour
src/gui/interface/Label.h:58
↓ 36 callers
Method
Start
src/tasks/Task.cpp:12
↓ 35 callers
Method
what
src/client/GameSave.h:26
↓ 32 callers
Function
copy
src/lua/LuaFileSystem.cpp:97
↓ 31 callers
Function
tpt_lua_checkByteString
src/lua/LuaScriptInterface.cpp:834
↓ 30 callers
Method
Finish
src/client/http/Request.cpp:123
↓ 29 callers
Method
GetChecked
src/gui/interface/Checkbox.h:34
↓ 29 callers
Function
byteStringEqualsLiteral
TODO: use std::literals::string_literals::operator""s if we get rid of ByteString
src/Misc.h:85
↓ 28 callers
Method
SetChecked
src/gui/interface/Checkbox.h:35
↓ 28 callers
Method
Value
src/lua/TPTSTypes.cpp:88
↓ 27 callers
Method
BlendFilledRect
src/graphics/RasterDrawMethodsImpl.h:143
↓ 27 callers
Function
LuaGetError
src/lua/LuaScriptInterface.cpp:119
↓ 27 callers
Function
Mix
src/simulation/Air.cpp:235
↓ 27 callers
Method
PointTranslate
src/gui/game/GameController.cpp:344
↓ 27 callers
Method
Substr
src/common/String.h:412
↓ 27 callers
Function
WinWiden
src/common/platform/Windows.cpp:184
↓ 26 callers
Method
Size
src/common/Plane.h:132
↓ 26 callers
Function
getLocaleImpl
src/common/String.cpp:376
↓ 25 callers
Method
GetGameSave
src/client/SaveInfo.cpp:138
↓ 25 callers
Method
GetRendererSettings
src/gui/render/RenderModel.cpp:84
↓ 25 callers
Function
PMAP
src/simulation/ElementDefs.h:74
↓ 25 callers
Method
Pack
src/graphics/Pixel.h:71
↓ 24 callers
Method
AssertToolEvent
src/lua/LuaScriptInterface.h:172
↓ 24 callers
Method
GetRadius
src/gui/game/Brush.h:69
↓ 24 callers
Function
get
src/lua/LuaHttp.cpp:416
↓ 23 callers
Method
CheckDone
src/client/http/Request.cpp:84
↓ 23 callers
Method
SetTarget
src/gui/interface/Fade.cpp:6
↓ 23 callers
Method
SetToggleState
src/gui/interface/Button.cpp:68
↓ 23 callers
Method
eval_move
RETURN-value explanation 1 = Swap 0 = No move/Bounce 2 = Both particles occupy the same space. */
src/simulation/Simulation.cpp:1108
↓ 23 callers
Method
push
src/simulation/CoordStack.h:48
↓ 22 callers
Method
CloseActiveWindow
src/gui/interface/Window.cpp:145
↓ 22 callers
Method
GetID
src/client/SaveInfo.cpp:94
↓ 22 callers
Method
XorLine
src/graphics/RasterDrawMethodsImpl.h:100
↓ 22 callers
Function
tpt_lua_toByteString
src/lua/LuaScriptInterface.cpp:819
↓ 21 callers
Method
Assign
src/lua/LuaSmartRef.cpp:19
↓ 21 callers
Method
BeginsWith
src/common/String.h:419
↓ 21 callers
Method
what
src/gui/game/GameModelException.h:10
↓ 20 callers
Method
Before
src/common/String.h:196
↓ 20 callers
Method
GetOption
src/gui/interface/DropDown.cpp:118
↓ 20 callers
Method
GetView
src/gui/game/GameController.cpp:224
↓ 19 callers
Method
DrawLine
src/gui/game/tool/Tool.cpp:10
↓ 19 callers
Method
FromAscii
src/common/String.h:573
↓ 19 callers
Method
GetActiveTool
src/gui/game/GameModel.cpp:791
↓ 19 callers
Method
gen
src/common/tpt-rand.cpp:25
↓ 18 callers
Method
After
src/common/String.h:202
↓ 18 callers
Method
CheckAndAssignArg1
src/lua/LuaComponent.cpp:7
↓ 18 callers
Method
Clear
src/lua/LuaSmartRef.cpp:4
↓ 18 callers
Method
DrawPixel
src/graphics/RasterDrawMethodsImpl.h:35
↓ 18 callers
Method
Pack
src/prefs/Prefs.cpp:103
↓ 18 callers
Method
SetOption
src/gui/interface/DropDown.cpp:127
↓ 17 callers
Method
Data
src/graphics/Graphics.h:22
↓ 17 callers
Function
FileExists
src/common/platform/Posix.cpp:45
↓ 17 callers
Method
GetType
src/lua/TPTSTypes.cpp:9
↓ 17 callers
Method
SetIcon
src/gui/interface/Button.cpp:40
↓ 17 callers
Method
SetValue
src/gui/interface/Fade.cpp:22
↓ 17 callers
Function
WriteFile
src/common/platform/Common.cpp:70
↓ 17 callers
Function
clamp_flt
src/Misc.h:55
next →
1–100 of 3,772, ranked by callers