MCPcopy Create free account

hub / github.com/OpenTTD/OpenTTD / functions

Functions16,191 in github.com/OpenTTD/OpenTTD

↓ 2,955 callersFunctionNWidget
* 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:1427
↓ 1,627 callersMethodTest
* 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:141
↓ 1,152 callersFunctionEndContainer
* Widget part function for denoting the end of a container * (horizontal, vertical, WWT_FRAME, WWT_INSET, or WWT_PANEL). * @ingroup NestedWidgetPart
src/widget_type.h:1232
↓ 966 callersMethodsize
src/3rdparty/fmt/os.cc:243
↓ 964 callersFunctionSetFill
* 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:1222
↓ 948 callersFunctionGetString
* 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:424
↓ 761 callersFunctionGB
src/core/bitmath_func.hpp:32
↓ 697 callersFunctionInvalid
src/core/pool_type.hpp:60
↓ 695 callersMethodpush_back
src/3rdparty/fmt/base.h:1789
↓ 622 callersFunctionSetStringTip
* Widget part function for setting the string and tooltip. * @param string String of the widget. * @param tip Tooltip of the widget. * @ingroup Ne
src/widget_type.h:1243
↓ 576 callersMethodempty
src/strings_type.h:108
↓ 494 callersFunctionIsTileType
* 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:150
↓ 460 callersFunctionSetResize
* 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:1148
↓ 459 callersFunctionIConsolePrint
* 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
↓ 458 callersFunctionNOT_REACHED
src/error.cpp:14
↓ 443 callersMethodclear
Clears this buffer.
src/3rdparty/fmt/base.h:1772
↓ 441 callersFunctionHasBit
src/core/bitmath_func.hpp:103
↓ 424 callersMethodReadByte
* Read a single byte (8 bits). * @return Value read from buffer. */
src/newgrf/newgrf_bytereader.h:34
↓ 390 callersMethodSet
* Set the title of the file. * @param title Title of the file. */
src/saveload/saveload.cpp:3437
↓ 382 callersFunctionGetCharacterHeight
* 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/fontcache.cpp:87
↓ 347 callersFunctionDrawString
* 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:668
↓ 339 callersFunctionend
src/3rdparty/fmt/base.h:566
↓ 333 callersFunctionGetEncodedString
* Encode a string with no parameters into an encoded string. * @param str The StringID to format. * @returns The encoded string. */
src/strings.cpp:90
↓ 327 callersFunctionSetMinimalSize
* Widget part function for setting the minimal size. * @param x Horizontal minimal size. * @param y Vertical minimal size. * @ingroup NestedWidgetP
src/widget_type.h:1159
↓ 326 callersFunctionsize
Returns the number of elements in the store.
src/3rdparty/fmt/args.h:215
↓ 325 callersFunctionIsSavegameVersionBefore
* 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:1278
↓ 307 callersFunctionTileX
* 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:428
↓ 302 callersMethodbase
src/order_type.h:32
↓ 297 callersFunctionTileY
* 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:438
↓ 290 callersMethodempty
src/core/flatset_type.hpp:69
↓ 290 callersMethodget
src/3rdparty/fmt/format-inl.h:101
↓ 282 callersMethodFailed
* Did this command fail? * @return true if and only if it failed */
src/command_type.h:177
↓ 278 callersMethoddata
src/3rdparty/catch2/catch.hpp:13921
↓ 274 callersFunctionto_underlying
src/core/enum_type.hpp:17
↓ 269 callersMethodAdd
* Append widget \a wid to container. * @param wid Widget to append. */
src/widget.cpp:1320
↓ 269 callersFunctionformat
src/3rdparty/fmt/std.h:146
↓ 261 callersFunctionGetStringBoundingBox
* 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:897
↓ 258 callersMethodSetDirty
* Mark entire window as dirty (in need of re-paint) * @ingroup dirty */
src/window.cpp:968
↓ 249 callersMethodsubstr
src/3rdparty/catch2/catch.hpp:13925
↓ 242 callersFunctionbegin
src/3rdparty/fmt/base.h:565
↓ 234 callersMethodIsType
* 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:66
↓ 233 callersMethodbase
* Retrieve the raw value behind this bit set. * @returns the raw value. */
src/core/base_bitset_type.hpp:219
↓ 233 callersMethodend
* Returns an iterator to the end of the tile area. * @return The OrthogonalTileIterator. */
src/tilearea.cpp:162
↓ 227 callersFunctionIsValidTile
* 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 MP_VOID. */
src/tile_map.h:161
↓ 227 callersFunctionSetSpriteTip
* Widget part function for setting the sprite and tooltip. * @param sprite Sprite of the widget. * @param tip Tooltip of the widget. * @ingroup Ne
src/widget_type.h:1254
↓ 226 callersFunctionSetPIP
* 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:1378
↓ 226 callersFunctionSlObject
* 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:1846
↓ 221 callersMethodfind
src/3rdparty/catch2/catch.hpp:13977
↓ 208 callersMethodend
src/core/utf8.hpp:119
↓ 207 callersFunctionSB
src/core/bitmath_func.hpp:58
↓ 206 callersMethodNext
Skip to next track */
src/music_gui.cpp:267
↓ 201 callersMethodShrink
* 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:124
↓ 191 callersMethodSetWidgetDisabledState
* 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:382
↓ 186 callersMethodAny
* 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:170
↓ 186 callersFunctionInvalidateWindowData
* 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:3297
↓ 182 callersFunctionClamp
src/core/math_func.hpp:79
↓ 182 callersMethodReset
* Resets and frees all memory allocated - used before loading or starting a new game */
src/gamelog.cpp:94
↓ 182 callersFunctioncreate
src/3rdparty/nlohmann/json.hpp:19675
↓ 178 callersFunctionSetToolTip
* Widget part function for setting tooltip and clearing the widget data. * @param tip Tooltip of the widget. * @ingroup NestedWidgetParts */
src/widget_type.h:1321
↓ 175 callersFunctionIsValidCargoType
Test whether cargo type is not INVALID_CARGO */
src/cargo_type.h:104
↓ 172 callersMethodAddCost
* 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:401
↓ 171 callersFunctionmaxdim
* 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
↓ 161 callersMethodresize
src/3rdparty/squirrel/squirrel/squtils.h:53
↓ 160 callersFunctionGfxFillRect
* 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:115
↓ 160 callersMethodVertical
* Get total vertical padding of RectPadding. * @return total vertical padding. */
src/core/geometry_type.hpp:95
↓ 159 callersMethodReadWord
* Read a single Word (16 bits). * @return Value read from buffer. */
src/newgrf/newgrf_bytereader.h:45
↓ 152 callersFunctionScaleGUITrad
* Scale a RectPadding to GUI zoom level. * @param r RectPadding at ZOOM_BASE (traditional "normal" interface size). * @return RectPadding at current
src/widget.cpp:49
↓ 149 callersFunctionSetBit
src/core/bitmath_func.hpp:121
↓ 146 callersFunctionSetWindowDirty
* Mark window as dirty (in need of repainting) * @param cls Window class * @param number Window number in that class */
src/window.cpp:3179
↓ 145 callersMethodbegin
* Returns an iterator to the beginning of the tile area. * @return The OrthogonalTileIterator. */
src/tilearea.cpp:153
↓ 145 callersMethoderase
* Erase the value pointed to by an iterator. The iterator may be invalid afterwards. * @param it Iterator pointing at some value. * @return Iterat
src/core/multimap.hpp:243
↓ 144 callersFunctionMarkTileDirtyByTile
* Mark a tile given by its index dirty for repaint. * @param tile The tile to mark dirty. * @param bridge_level_offset Height of bridge on tile to a
src/viewport.cpp:2128
↓ 142 callersMethodbegin
src/core/utf8.hpp:114
↓ 141 callersFunctionRandom
src/core/random_func.hpp:75
↓ 140 callersFunctionconcat
src/3rdparty/nlohmann/json.hpp:4349
↓ 138 callersMethodSetWidgetDirty
* 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:558
↓ 137 callersMethodGetCost
* Return how much a new engine costs. * @return Cost of the engine. */
src/engine.cpp:317
↓ 134 callersFunctionSetPadding
* 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:1335
↓ 133 callersFunctionCloseWindowById
* Close 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 cl
src/window.cpp:1195
↓ 133 callersMethodsize
src/3rdparty/catch2/catch.hpp:651
↓ 131 callersFunctionSetToolbarMinimalSize
* Widget part function to setting the minimal size for a toolbar button. * @param width Width of button, measured in multiples of the standard toolba
src/widget_type.h:1178
↓ 131 callersMethodwrite_character
src/3rdparty/nlohmann/json.hpp:14970
↓ 130 callersFunctionIsInsideMM
* Checks if a value is in an interval. * * Returns true if a value is in the interval of [min, max). * * @param x The value to check * @param min
src/core/math_func.hpp:267
↓ 126 callersFunctionGetTileOwner
* Returns the owner of a tile * * This function returns the owner of a tile. This cannot used * for tiles which type is one of MP_HOUSE, MP_VOID an
src/tile_map.h:178
↓ 126 callersMethodreserve
src/3rdparty/squirrel/squirrel/squtils.h:52
↓ 125 callersFunctionShowErrorMessage
* Display an error message in a window. * Note: CommandCost errors are always severity level WL_INFO. * @param summary_msg General error message sh
src/error_gui.cpp:296
↓ 121 callersFunctionfind
src/3rdparty/fmt/printf.h:60
↓ 119 callersMethodsize
src/3rdparty/nlohmann/json.hpp:3125
↓ 117 callersMethodPutUtf8
* Append UTF.8 char. */
src/core/string_builder.cpp:113
↓ 115 callersFunctionTileXY
* Returns the TileIndex of a coordinate. * * @param x The x coordinate of the tile * @param y The y coordinate of the tile * @return The TileIndex
src/map_func.h:385
↓ 113 callersMethodHorizontal
* Get total horizontal padding of RectPadding. * @return total horizontal padding. */
src/core/geometry_type.hpp:89
↓ 113 callersFunctionReverseDiagDir
* 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:118
↓ 113 callersFunctionScaleSpriteTrad
* Scale traditional pixel dimensions to GUI zoom level, for drawing sprites. * @param value Pixel amount at #ZOOM_BASE (traditional "normal" interfac
src/zoom_func.h:107
↓ 109 callersFunctionDrawGroundSprite
* Draws a ground sprite for the current tile. * If the current tile is drawn on top of a foundation the sprite is added as child sprite to the "found
src/viewport.cpp:579
↓ 109 callersFunctionGetIndustrySpec
* Accessor for array _industry_specs. * This will ensure at once : proper access and * not allowing modifications of it. * @param thistype of indus
src/industry_cmd.cpp:126
↓ 108 callersMethodInvalidateData
* Mark this window's data as invalid (in need of re-computing) * @param data The data to invalidate with * @param gui_scope Whether the function is
src/window.cpp:3237
↓ 108 callersMethodsize
src/3rdparty/squirrel/squirrel/squtils.h:72
↓ 107 callersMethodinsert
* Insert a key into the set, if it does not already exist. * @param key Key to insert. * @return A pair consisting of an iterator to the inserted
src/core/flatset_type.hpp:31
↓ 105 callersFunctionInvalidateWindowClassesData
* 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:3314
↓ 105 callersFunctionabs
src/core/math_func.hpp:23
next →1–100 of 16,191, ranked by callers