Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JGRennison/OpenTTD-patches
/ functions
Functions
21,952 in github.com/JGRennison/OpenTTD-patches
⨍
Functions
21,952
◇
Types & classes
5,085
↓ 3,879 callers
Function
NWidget
* Widget part function for starting a new 'real' widget. * @param tp Type of the new nested widget. * @param col Colour of the new widget. * @para
src/widget_type.h:1661
↓ 2,489 callers
Method
Test
* Test if the value-th bit is set. * @param value Bit to check. * @returns true iff the requested bit is set. */
src/core/base_bitset_type.hpp:170
↓ 1,964 callers
Method
size
src/core/format.hpp:520
↓ 1,502 callers
Function
EndContainer
* Widget part function for denoting the end of a container * (horizontal, vertical, WWT_FRAME, WWT_INSET, or WWT_PANEL). * @return The created widge
src/widget_type.h:1449
↓ 1,305 callers
Function
SetFill
* Widget part function for setting filling. * @param fill_x Horizontal filling step from minimal size. * @param fill_y Vertical filling step from mi
src/widget_type.h:1438
↓ 1,180 callers
Function
GetString
* Resolve the given StringID into a std::string with formatting but no parameters. * @param string The unique identifier of the translatable string.
src/strings.cpp:516
↓ 1,090 callers
Method
push_back
src/3rdparty/fmt/base.h:1801
↓ 974 callers
Function
GB
src/core/bitmath_func.hpp:39
↓ 902 callers
Function
NSL
src/sl/saveload_types.h:196
↓ 858 callers
Function
to_underlying
src/core/enum_type.hpp:22
↓ 853 callers
Function
Invalid
src/core/pool_id_type.hpp:79
↓ 839 callers
Method
empty
src/station_base.h:201
↓ 835 callers
Function
SetStringTip
* Widget part function for setting the string and tooltip. * @param string String of the widget. * @param tip Tooltip of the widget. * @return The
src/widget_type.h:1461
↓ 833 callers
Function
HasBit
src/core/bitmath_func.hpp:111
↓ 766 callers
Method
base
src/order_type.h:49
↓ 710 callers
Function
SetResize
* Widget part function for setting the resize step. * @param dx Horizontal resize step. 0 means no horizontal resizing. * @param dy Vertical resize
src/widget_type.h:1357
↓ 700 callers
Function
IsTileType
* Checks if a tile is a given tiletype. * * This function checks if a tile has the given tiletype. * * @param tile The tile to check * @param typ
src/tile_map.h:156
↓ 668 callers
Function
IConsolePrint
* Handle the printing of text entered into the console or redirected there * by any other means. Text can be redirected to other clients in a network
src/console.cpp:90
↓ 667 callers
Method
Set
* Set the title of the file. * @param title Title of the file. */
src/sl/saveload.cpp:4622
↓ 528 callers
Function
SetMinimalSize
* Widget part function for setting the minimal size. * @param x Horizontal minimal size. * @param y Vertical minimal size. * @return The created wi
src/widget_type.h:1369
↓ 523 callers
Method
end
* Returns an iterator to the end of the tile area. * @return The OrthogonalTileIterator. */
src/tilearea.cpp:163
↓ 521 callers
Function
GetCharacterHeight
* Get height of a character for a given font size. * @param size Font size to get height of * @return Height of characters in the given font (pi
src/gfx_func.h:294
↓ 516 callers
Method
data
src/core/format.hpp:511
↓ 513 callers
Method
Add
* Append widget \a wid to container. * @param wid Widget to append. */
src/widget.cpp:1230
↓ 502 callers
Method
clear
src/station_base.h:136
↓ 499 callers
Method
IsType
* Check whether this order is of the given type. * @param type the type to check against. * @return true if the order matches. */
src/order_base.h:254
↓ 495 callers
Method
ReadByte
* Read a single byte (8 bits). * @return Value read from buffer. */
src/newgrf/newgrf_bytereader.h:37
↓ 479 callers
Function
DrawString
* Draw string, possibly truncated to make it fit in its allocated space * * @param left The left most position to draw on. * @param right The ri
src/gfx.cpp:708
↓ 462 callers
Method
format
src/3rdparty/fmt/compile.h:109
↓ 461 callers
Function
GetEncodedString
* Encode a string with no parameters into an encoded string. * @param str The StringID to format. * @returns The encoded string. */
src/strings.cpp:116
↓ 450 callers
Method
Failed
* Did this command fail? * @return true if and only if it failed */
src/command_type.h:357
↓ 430 callers
Method
get
src/3rdparty/fmt/format-inl.h:101
↓ 395 callers
Function
TileX
* Get the X component of a tile * @param tile the tile to get the X component of * @return the X component */
src/map_func.h:262
↓ 378 callers
Function
TileY
* Get the Y component of a tile * @param tile the tile to get the Y component of * @return the Y component */
src/map_func.h:272
↓ 376 callers
Function
GetStringBoundingBox
* Return the string dimension in pixels. The height and width are returned * in a single Dimension value. TINYFONT, BIGFONT modifiers are only * sup
src/gfx.cpp:945
↓ 372 callers
Method
emplace_back
src/3rdparty/svector/svector.h:700
↓ 372 callers
Method
empty
src/core/flatset_type.hpp:105
↓ 350 callers
Method
Any
* Test if any of the given values are set. * @param other BitSet of values to test. * @returns true iff any of the given values are set. */
src/core/base_bitset_type.hpp:199
↓ 347 callers
Method
base
* Retrieve the raw value behind this bit set. * @returns the raw value. */
src/core/base_bitset_type.hpp:264
↓ 345 callers
Method
SetDirty
* Mark the widget as 'dirty' (in need of repaint). * @param w Window owning the widget. */
src/widget.cpp:954
↓ 333 callers
Function
size
Returns the number of elements in the store.
src/3rdparty/fmt/args.h:215
↓ 318 callers
Method
Next
Skip to next track */
src/music_gui.cpp:272
↓ 309 callers
Method
begin
* Returns an iterator to the beginning of the tile area. * @return The OrthogonalTileIterator. */
src/tilearea.cpp:154
↓ 300 callers
Function
end
src/3rdparty/fmt/base.h:566
↓ 299 callers
Function
IsSavegameVersionBefore
* Checks whether the savegame is below \a major.\a minor. * @param major Major number of the version to check against. * @param minor Minor number o
src/saveload/saveload.h:906
↓ 296 callers
Method
Reset
Reset the text effect */
src/texteff.cpp:37
↓ 296 callers
Function
format
src/3rdparty/fmt/std.h:146
↓ 278 callers
Method
find
src/3rdparty/catch2/catch.hpp:13977
↓ 277 callers
Function
SetToolTip
* Widget part function for setting tooltip and clearing the widget data. * @param tip Tooltip of the widget. * @return The created widget part. *
src/widget_type.h:1546
↓ 276 callers
Function
SB
src/core/bitmath_func.hpp:65
↓ 274 callers
Function
SetSpriteTip
* Widget part function for setting the sprite and tooltip. * @param sprite Sprite of the widget. * @param tip Tooltip of the widget. * @return The
src/widget_type.h:1473
↓ 273 callers
Function
IsValidTile
* Checks if a tile is valid * * @param tile The tile to check * @return True if the tile is on the map and not one of TileType::Void. */
src/tile_map.h:167
↓ 268 callers
Method
SetWidgetDisabledState
* Sets the enabled/disabled status of a widget. * By default, widgets are enabled. * On certain conditions, they have to be disabled. * @param w
src/window_gui.h:441
↓ 261 callers
Function
SetPIP
* Widget part function for setting a pre/inter/post spaces. * @param pre The amount of space before the first widget. * @param inter The amount of s
src/widget_type.h:1608
↓ 258 callers
Method
append
src/3rdparty/fmt/base.h:1813
↓ 258 callers
Method
back
src/3rdparty/svector/svector.h:819
↓ 255 callers
Method
SetDisplayedPlane
* Select which plane to show (for #NWID_SELECTION only). * @param plane Plane number to display. * @return true iff the shown plane changed. */
src/widget.cpp:1396
↓ 248 callers
Method
substr
src/3rdparty/catch2/catch.hpp:13925
↓ 239 callers
Function
SetBit
src/core/bitmath_func.hpp:129
↓ 235 callers
Method
SetWidgetDirty
* Invalidate a widget, i.e. mark it as being changed and in need of redraw. * @param widget_index the widget to redraw. */
src/window.cpp:607
↓ 230 callers
Method
end
src/core/utf8.hpp:117
↓ 226 callers
Method
Shrink
* Copy and shrink Rect by s pixels. * @param s number of pixels to remove from each side of Rect. * @return the new smaller Rect. */
src/core/geometry_type.hpp:140
↓ 225 callers
Method
c_str
src/3rdparty/catch2/catch.hpp:13917
↓ 224 callers
Method
GetDestination
* Gets the destination of this order. * @pre IsType(OT_GOTO_WAYPOINT) || IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION) || IsSlotCounterOrder() ||
src/order_base.h:310
↓ 223 callers
Function
InvalidateWindowClassesData
* Mark window data of all windows of a given class as invalid (in need of re-computing) * Note that by default the invalidation is not considered to
src/window.cpp:3660
↓ 223 callers
Function
InvalidateWindowData
* Mark window data of the window of a given class and specific window number as invalid (in need of re-computing) * * Note that by default the inval
src/window.cpp:3641
↓ 222 callers
Function
maxdim
* Compute bounding box of both dimensions. * @param d1 First dimension. * @param d2 Second dimension. * @return The bounding box of both dimensions
src/core/geometry_func.cpp:22
↓ 215 callers
Function
begin
src/3rdparty/fmt/base.h:565
↓ 213 callers
Method
AddCost
* Adds the cost of the given command return value to this cost. * Also takes a possible error message when it is set. * @param ret The command to ad
src/command.cpp:782
↓ 211 callers
Method
Print
static */
src/script/api/script_controller.cpp:69
↓ 209 callers
Method
First
* Get the first vehicle of this vehicle chain. * @return the first vehicle of the chain. */
src/vehicle_base.h:758
↓ 208 callers
Function
GetTileOwner
* Returns the owner of a tile * * This function returns the owner of a tile. This cannot used * for tiles which type is one of TileType::House, Til
src/tile_map.h:184
↓ 205 callers
Function
SlObject
* Main SaveLoad function. * @param object The object that is being saved or loaded. * @param slt The SaveLoad table with objects to save/load. */
src/saveload/saveload.cpp:1771
↓ 204 callers
Function
AppendStringInPlace
src/strings_func.h:205
↓ 204 callers
Method
ReadWord
* Read a single Word (16 bits). * @return Value read from buffer. */
src/newgrf/newgrf_bytereader.h:47
↓ 203 callers
Function
Clamp
src/core/math_func.hpp:82
↓ 201 callers
Function
ScaleGUITrad
* Scale a RectPadding to GUI zoom level. * @param r RectPadding at ZOOM_BASE (traditional "normal" interface size). * @return RectPadding at current
src/widget.cpp:52
↓ 200 callers
Function
MakeDropDownListStringItem
* Creates new #DropDownListStringItem. * @param str The string to show on this item in the drop down menu. * @param value The value to use when the
src/dropdown.cpp:49
↓ 199 callers
Method
resize
src/3rdparty/svector/svector.h:644
↓ 193 callers
Method
Vertical
* Get total vertical padding of RectPadding. * @return total vertical padding. */
src/core/geometry_type.hpp:111
↓ 185 callers
Function
GfxFillRect
* Applies a certain FillRectMode-operation to a rectangle [left, right] x [top, bottom] on the screen. * * @pre dpi->zoom == ZoomLevel::Min, right >
src/gfx.cpp:130
↓ 182 callers
Function
create
src/3rdparty/nlohmann/json.hpp:19675
↓ 175 callers
Method
clear
src/3rdparty/cpp-btree/btree.h:2310
↓ 169 callers
Function
CloseWindowById
* Delete a window by its class and window number (if it is open). * @param cls Window class * @param number Number of the window within the window c
src/window.cpp:1267
↓ 169 callers
Method
GetCost
* Return how much a new engine costs. * @return Cost of the engine. */
src/engine.cpp:385
↓ 167 callers
Method
GetValue
* Get the value of the given user-changeable parameter. * @param info The grf parameter info to get the value for. * @return The value of this param
src/newgrf_config.cpp:172
↓ 165 callers
Method
GetNumOrders
* Get number of orders in the order list. * @return number of orders in the chain. */
src/order_base.h:1339
↓ 165 callers
Function
MarkTileDirtyByTile
* Mark a tile given by its index dirty for repaint. * @param tile The tile to mark dirty. * @param flags To tell if an update is relevant or not (fo
src/viewport.cpp:4895
↓ 162 callers
Function
ReverseDiagDir
* Returns the reverse direction of the given DiagDirection * * @param d The DiagDirection to get the reverse from * @return The reverse direction
src/direction_func.h:128
↓ 162 callers
Method
SetWidgetLoweredState
* Sets the lowered/raised status of a widget. * @param widget_index index of this widget in the window * @param lowered_stat status to use ie: low
src/window_gui.h:515
↓ 162 callers
Function
SetWindowDirty
* Mark window as dirty (in need of repainting) * @param cls Window class * @param number Window number in that class */
src/window.cpp:3493
↓ 161 callers
Function
SetPadding
* Widget part function for setting additional space around a widget. * Parameters start above the widget, and are specified in clock-wise direction.
src/widget_type.h:1561
↓ 161 callers
Function
ShowErrorMessage
* Display an error message in a window. * Note: CommandCost errors are always severity level WarningLevel::Info. * @param summary_msg General error
src/error_gui.cpp:290
↓ 160 callers
Method
begin
src/core/utf8.hpp:112
↓ 157 callers
Method
GetType
* Return the type of the setting. * @return type of setting */
src/settings.cpp:953
↓ 156 callers
Method
Succeeded
* Did this command succeed? * @return true if and only if it succeeded */
src/command_type.h:348
↓ 156 callers
Method
insert
src/station_base.h:483
↓ 154 callers
Function
GetTunnelBridgeDirection
* Get the direction pointing to the other end. * * Tunnel: Get the direction facing into the tunnel * Bridge: Get the direction pointing onto the b
src/tunnelbridge_map.h:32
↓ 154 callers
Function
Random
src/core/random_func.hpp:86
↓ 153 callers
Method
erase
src/station_base.h:470
next →
1–100 of 21,952, ranked by callers