Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GNOME/gjs
/ functions
Functions
3,360 in github.com/GNOME/gjs
⨍
Functions
3,360
◇
Types & classes
749
↓ 272 callers
Function
gjs_throw
COMPAT: Replace with a format string in C++20. Throws an exception, like "throw new Error(message)" * * If an exception is already set in the contex
gjs/jsapi-util-error.cpp:169
↓ 193 callers
Method
get
gjs/auto.h:132
↓ 138 callers
Method
connect
(name: string, handler: (self: object, ...args: any[]) => any)
modules/script/signals.d.ts:5
↓ 129 callers
Method
emit
(name: string, ...args: any[])
modules/script/signals.d.ts:9
↓ 125 callers
Method
get
gi/inline-array.h:42
↓ 118 callers
Method
name
gi/wrapperutils.h:266
↓ 109 callers
Function
gjs_arg_set
gi/arg-inl.h:130
↓ 100 callers
Method
toString
(encoding = 'UTF-8')
modules/script/byteArray.js:78
↓ 96 callers
Method
call
gi/function.cpp:1187
↓ 96 callers
Function
gjs_debug
COMPAT: Replace with a format string in C++20. NOLINTNEXTLINE(modernize-avoid-variadic-functions)
util/log.cpp:185
↓ 96 callers
Function
gjs_parse_call_args
Empty-args version of the template
gjs/jsapi-util-args.h:295
↓ 88 callers
Method
tag
gi/arg-cache.h:77
↓ 83 callers
Function
assert_equal
test/gjs-test-utils.h:79
↓ 69 callers
Method
value
gi/gtype.cpp:107
↓ 67 callers
Method
set
(target, prop, val, receiver)
modules/script/byteArray.js:49
↓ 56 callers
Method
size
gi/info.h:641
↓ 53 callers
Method
init
gi/function.cpp:1289
↓ 52 callers
Method
length
()
modules/script/byteArray.js:62
↓ 48 callers
Method
add
gjs/native.cpp:20
↓ 47 callers
Method
reset
gi/closure.h:100
↓ 47 callers
Function
testPropertyGetSet
(type, value1, value2)
installed-tests/js/testGIMarshalling.js:2470
↓ 46 callers
Method
element_type
gi/info.h:776
↓ 44 callers
Function
Err
gjs/jsapi-util-args.h:60
↓ 44 callers
Method
is_basic
gi/info.h:765
↓ 43 callers
Function
gjs_cairo_check_status
modules/cairo.cpp:29
↓ 40 callers
Method
match
gi/object.h:206
↓ 39 callers
Method
empty
gjs/context-private.h:283
↓ 39 callers
Method
enqueue
gi/toggle.cpp:145
↓ 39 callers
Method
to_instance
gi/wrapperutils.h:219
↓ 38 callers
Method
end
gi/info.h:636
↓ 38 callers
Function
prettyPrint
(value, extra)
modules/script/_bootstrap/default.js:41
↓ 37 callers
Function
logError
(e, ...args)
modules/script/_bootstrap/default.js:20
↓ 36 callers
Method
get
(target, prop, receiver)
modules/script/byteArray.js:43
↓ 36 callers
Function
gjs_log_exception
* gjs_log_exception: * @cx: the #JSContext * * Logs the exception pending on @cx, if any, in response to an exception being * thrown that user cod
gjs/jsapi-util.cpp:573
↓ 35 callers
Method
gtype
The instance GType can be useful only in few cases such as GObjects and GInterfaces, so we don't store it by default, unless needed. See Function's co
gi/arg-cache.cpp:1221
↓ 35 callers
Function
info
()
modules/script/jsUnit.js:256
↓ 34 callers
Method
decode
* The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter. * * [MDN Reference](
types/gjs.d.ts:150
↓ 34 callers
Function
gjs_arg_unset
gi/arg-inl.h:195
↓ 34 callers
Method
out
gjs/auto.h:133
↓ 33 callers
Method
group
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by
types/gjs.d.ts:70
↓ 31 callers
Function
currentRunnable
()
installed-tests/js/jasmine.js:1054
↓ 31 callers
Function
gjs_context_new
gjs/context.cpp:847
↓ 30 callers
Function
createCheckedMethod
(method, checkMethod = '_checkKey')
modules/core/overrides/Gio.js:810
↓ 29 callers
Method
cancel
gi/toggle.cpp:94
↓ 29 callers
Function
gjs_string_from_utf8
gjs/jsapi-util-string.cpp:186
↓ 29 callers
Method
ptr
gi/info.h:368
↓ 29 callers
Method
release
gi/arg-cache.cpp:2233
↓ 29 callers
Function
strcmp
(aStr1, aStr2)
modules/internal/source-map/util.js:373
↓ 28 callers
Function
setTimeout
(fn, delay)
installed-tests/js/jasmine.js:3177
↓ 27 callers
Function
debug
No-op unless GJS_VERBOSE_ENABLE_LIFECYCLE is defined to 1.
gi/toggle.cpp:21
↓ 27 callers
Method
ref
gi/closure.h:51
↓ 26 callers
Method
count
* The **`console.count()`** static method logs the number of times that this particular call to count() has been called. * * [MDN Reference]
types/gjs.d.ts:34
↓ 25 callers
Method
array_type
gi/info.h:712
↓ 25 callers
Function
createButton
(str, func)
examples/calc.js:71
↓ 25 callers
Method
interface
Unlike the libgirepository API, this doesn't return null. Only call it on TypeInfo with GI_TYPE_TAG_INTERFACE tag.
gi/info.h:725
↓ 25 callers
Function
testInParameter
(root, value, {omit, skip, funcName = `${root}_in`} = {})
installed-tests/js/testGIMarshalling.js:31
↓ 24 callers
Method
create
gi/ns.cpp:218
↓ 24 callers
Function
expectLog
* @param {RegExp | string} message _ * @param {*} [logLevel] _ * @param {*} [domain] _ * @param {*} [fields] _
installed-tests/js/testConsole.js:62
↓ 24 callers
Function
log
(...args)
modules/script/_bootstrap/default.js:16
↓ 23 callers
Function
add_test_for_fixture
test/gjs-test-coverage.cpp:1058
↓ 23 callers
Function
execute
(label)
installed-tests/js/testTimers.js:242
↓ 23 callers
Method
is_pointer
gi/arg-cache.h:86
↓ 23 callers
Method
release
gjs/auto.h:139
↓ 22 callers
Method
begin
gi/info.h:635
↓ 22 callers
Function
gjs_object_require_property
Returns whether the object had the property; if the object did not have the * property, always sets an exception. Treats "the property's value is *
gjs/jsapi-util.cpp:80
↓ 22 callers
Method
write
gjs/engine.cpp:152
↓ 21 callers
Method
ns
gi/wrapperutils.h:257
↓ 20 callers
Method
disconnect
(id: number)
modules/script/signals.d.ts:7
↓ 20 callers
Function
eval_script_and_get_coverage_data
test/gjs-test-coverage.cpp:181
↓ 20 callers
Function
gjs_debug_value
gjs/jsapi-util-string.cpp:605
↓ 20 callers
Function
gjs_intern_string_to_id
gjs/jsapi-util-string.cpp:446
↓ 20 callers
Method
parent
gi/info.h:1500
↓ 20 callers
Function
throw_expect_type
gi/value.cpp:493
↓ 19 callers
Method
encode
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Uint8Array containing the string encoded using UTF-8. * * [MD
types/gjs.d.ts:190
↓ 19 callers
Method
handle_all_toggles
gi/toggle.cpp:67
↓ 19 callers
Function
log_exception_brief
Helper function: log and clear the pending exception, without calling into any JS APIs that might cause more exceptions to be thrown.
gjs/jsapi-util.cpp:251
↓ 19 callers
Function
new_test_gobject
test/gjs-test-toggle-queue.cpp:115
↓ 19 callers
Method
resolve
gi/cwrapper.h:369
↓ 18 callers
Method
clear
* The **`console.clear()`** static method clears the console if possible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/con
types/gjs.d.ts:28
↓ 18 callers
Method
data
()
installed-tests/js/testGObjectClass.js:1740
↓ 18 callers
Function
gjs_get_global_slot
gjs/global.h:116
↓ 18 callers
Method
is_method
gi/info.h:920
↓ 18 callers
Method
is_prototype
* GIWrapperBase::is_prototype: * * Returns whether this Base is actually a Prototype (true) or an Instance * (false). */
gi/wrapperutils.h:199
↓ 18 callers
Method
ownership_transfer
gi/info.h:847
↓ 17 callers
Method
call_completed
gi/function.h:154
↓ 17 callers
Method
check_is_instance
* GIWrapperBase::check_is_instance: * @for_what: string used in the exception message if an exception is thrown * * Used in JSNative me
gi/wrapperutils.h:614
↓ 17 callers
Function
fail
(expected, message)
installed-tests/js/jasmine.js:4271
↓ 17 callers
Function
testSimpleMarshalling
(root, value, inoutValue, defaultValue, options = {})
installed-tests/js/testGIMarshalling.js:74
↓ 16 callers
Method
context
gjs/context-private.h:195
↓ 16 callers
Function
gjs_argument_display_name
gi/arg.cpp:967
↓ 16 callers
Function
gjs_context_eval
gjs/context.cpp:1273
↓ 16 callers
Function
gjs_gtype_get_actual_gtype
gi/gtype.cpp:204
↓ 16 callers
Function
gjs_throw_custom
COMPAT: Replace with a format string in C++20. Like gjs_throw, but allows to customize the error class and 'name' property. * Mainly used for throwin
gjs/jsapi-util-error.cpp:182
↓ 15 callers
Method
array_fixed_size
gi/info.h:705
↓ 15 callers
Method
format_name
Intended for error messages
gi/function.cpp:801
↓ 15 callers
Function
gjs_string_to_utf8
* gjs_string_to_utf8: * @cx: JSContext * @value: a JS::Value containing a string * * Converts the JSString in @value to UTF-8 and puts it in @utf8
gjs/jsapi-util-string.cpp:88
↓ 15 callers
Function
line_starting_with
test/gjs-test-coverage.cpp:120
↓ 15 callers
Method
load_arg
gi/info.h:924
↓ 15 callers
Function
replace_file
test/gjs-test-coverage.cpp:40
↓ 14 callers
Method
direction
gi/info.h:828
next →
1–100 of 3,360, ranked by callers