Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Glass-HQ/gpui
/ functions
Functions
5,908 in github.com/Glass-HQ/gpui
⨍
Functions
5,908
◇
Types & classes
1,101
↓ 1,261 callers
Function
px
Constructs a `Pixels` value representing a length in pixels. # Arguments `pixels` - The number of pixels for the length. # Returns A `Pixels` repr
crates/gpui/src/geometry.rs:3599
↓ 837 callers
Method
child
Add a single child element to this element.
crates/gpui/src/element.rs:161
↓ 707 callers
Function
default
()
crates/util/src/util.rs:1025
↓ 569 callers
Function
div
()
crates/gpui/src/elements/div.rs:1365
↓ 530 callers
Method
unwrap
(self)
crates/gpui_util/src/lib.rs:218
↓ 456 callers
Method
map
(mut self, f: impl FnOnce(&mut T) -> &mut U)
crates/gpui/src/arena.rs:172
↓ 438 callers
Method
clone
(&self)
crates/gpui_util/src/arc_cow.rs:46
↓ 430 callers
Method
lock
Lock the inner RNG for direct access. Use this when you need multiple random operations without re-locking between each one.
crates/scheduler/src/test_scheduler.rs:822
↓ 372 callers
Function
rgb
Convert an RGB hex color code number to a color type
crates/gpui/src/color.rs:14
↓ 333 callers
Method
to_string
(&self, path_to_string: impl Fn(&PathBuf) -> String)
crates/util/src/paths.rs:789
↓ 311 callers
Method
into
(self)
crates/gpui_examples/examples/set_menus.rs:70
↓ 307 callers
Method
push
(name: SharedString, hitbox_id: HitboxId, cx: &mut App)
crates/gpui/src/elements/div.rs:3202
↓ 301 callers
Method
borrow_mut
(&self)
crates/gpui_linux/src/linux/wayland/window.rs:492
↓ 300 callers
Method
ok
Create an Ok button
crates/gpui/src/platform.rs:2055
↓ 297 callers
Method
iter
Returns an iterator over the elements of the queue this iterator will wait for new elements if the queue is empty.
crates/gpui/src/queue.rs:297
↓ 296 callers
Method
into
(self)
crates/gpui/src/inspector.rs:13
↓ 284 callers
Function
point
Constructs a new `Point<T>` with the given x and y coordinates. # Arguments `x` - The x coordinate of the point. `y` - The y coordinate of the point
crates/gpui/src/geometry.rs:111
↓ 258 callers
Method
bg
Sets the background color of the element.
crates/gpui/src/styled.rs:451
↓ 253 callers
Method
as_ref
(&self)
crates/gpui_util/src/arc_cow.rs:126
↓ 243 callers
Method
len
(&self)
crates/gpui/src/scene.rs:57
↓ 238 callers
Method
flex
Sets the display type of the element to `flex`. [Docs](https://tailwindcss.com/docs/display)
crates/gpui/src/styled.rs:45
↓ 236 callers
Method
clone
(&self)
crates/gpui/src/app/test_app.rs:496
↓ 209 callers
Method
log_err
(self)
crates/gpui_util/src/lib.rs:98
↓ 181 callers
Method
text_color
Sets the text color of this element. This value cascades to its child elements.
crates/gpui/src/styled.rs:475
↓ 179 callers
Method
unwrap
(self)
crates/util/src/util.rs:720
↓ 164 callers
Method
to_owned
(&self)
crates/util/src/rel_path.rs:260
↓ 163 callers
Method
insert
(&mut self, focus_handle: &FocusHandle)
crates/gpui/src/tab_stop.rs:78
↓ 157 callers
Method
as_ref
(&self)
crates/gpui/src/shared_string.rs:54
↓ 154 callers
Function
size
Constructs a new `Size<T>` with the provided width and height. # Arguments `width` - The width component of the `Size`. `height` - The height compon
crates/gpui/src/geometry.rs:425
↓ 148 callers
Method
clone
(&self)
crates/gpui/src/app.rs:143
↓ 140 callers
Method
borrow_mut
(&mut self)
crates/gpui/src/app/context.rs:874
↓ 129 callers
Method
is_empty
(&self)
crates/gpui/src/geometry.rs:1554
↓ 127 callers
Method
clone
(&self)
crates/gpui/src/geometry.rs:373
↓ 127 callers
Method
set
(&mut self, item: ClipboardItem)
crates/gpui_linux/src/linux/wayland/clipboard.rs:158
↓ 120 callers
Method
get
(name: &SharedString, cx: &mut App)
crates/gpui/src/elements/div.rs:3194
↓ 112 callers
Method
items_center
Sets the element to align flex items along the center of the container's cross axis. [Docs](https://tailwindcss.com/docs/align-items#center)
crates/gpui/src/styled.rs:262
↓ 106 callers
Method
text_size
Sets the text size of this element. This value cascades to its child elements.
crates/gpui/src/styled.rs:499
↓ 104 callers
Method
flex_col
Sets the flex direction of the element to `column`. [Docs](https://tailwindcss.com/docs/flex-direction#column)
crates/gpui/src/styled.rs:136
↓ 100 callers
Method
get
(hwnd: HWND)
crates/gpui_windows/src/events.rs:1266
↓ 98 callers
Method
borrow
(&self)
crates/gpui_linux/src/linux/wayland/window.rs:488
↓ 95 callers
Method
listener
Convenience method for accessing view state in an event callback. Many GPUI callbacks take the form of `Fn(&E, &mut Window, &mut App)`, but it's ofte
crates/gpui/src/app/context.rs:252
↓ 94 callers
Method
clone
(&self)
crates/gpui/src/window.rs:500
↓ 88 callers
Method
notify
Tell GPUI that an entity has changed and observers of it should be notified.
crates/gpui/src/app.rs:2322
↓ 86 callers
Method
clone
(&self)
crates/scheduler/src/test_scheduler.rs:739
↓ 85 callers
Method
borrow
(&self)
crates/gpui/src/app/context.rs:868
↓ 84 callers
Method
as_mut
(&self, cx: &'a mut C)
crates/gpui/src/app/entity_map.rs:486
↓ 84 callers
Method
spawn
Spawns the given future on Tokio's thread pool, and returns it via a GPUI task Note that the Tokio task will be cancelled if the GPUI task is dropped
crates/gpui_tokio/src/gpui_tokio.rs:59
↓ 83 callers
Method
detach
Detaching a task runs it to completion in the background.
crates/gpui/src/executor.rs:53
↓ 82 callers
Method
contains
Obtains whether this handle contains the given handle in the most recently rendered frame.
crates/gpui/src/window.rs:378
↓ 82 callers
Method
max
Returns a new point with the maximum values of each dimension from `self` and `other`. # Arguments `other` - A reference to another `Point` to compa
crates/gpui/src/geometry.rs:296
↓ 81 callers
Method
style
(&mut self)
crates/gpui/src/style.rs:321
↓ 80 callers
Method
push
(&mut self, path: &RelPath)
crates/util/src/rel_path.rs:312
↓ 79 callers
Method
id
(&self)
crates/gpui_examples/examples/input.rs:428
↓ 79 callers
Method
justify_center
Sets the element to justify flex items along the center of the container's main axis. [Docs](https://tailwindcss.com/docs/justify-content#center)
crates/gpui/src/styled.rs:346
↓ 77 callers
Method
extend
(&self, amount: Edges<T>)
crates/gpui/src/geometry.rs:1016
↓ 73 callers
Method
border_color
Sets the border color of the quad.
crates/gpui/src/window.rs:6510
↓ 73 callers
Method
update
(&mut self, update: impl FnOnce(&mut Self) -> R)
crates/gpui/src/app.rs:916
↓ 69 callers
Method
arg
(&mut self, arg: impl AsRef<OsStr>)
crates/util/src/command.rs:57
↓ 67 callers
Method
as_ref
(&self)
crates/util/src/paths.rs:320
↓ 64 callers
Method
join
(&self, path: P)
crates/util/src/paths.rs:272
↓ 63 callers
Method
interactivity
(&mut self)
crates/gpui/src/elements/div.rs:1449
↓ 59 callers
Method
get
Returns the latest tracked serial of the provided [`SerialKind`] Will return 0 if not tracked.
crates/gpui_linux/src/linux/wayland/serial.rs:43
↓ 59 callers
Method
open_window
( &self, handle: AnyWindowHandle, options: WindowParams, )
crates/gpui_ios/src/platform.rs:181
↓ 58 callers
Method
tab_stop
(mut self, index: isize, expected: usize)
crates/gpui/src/tab_stop.rs:456
↓ 58 callers
Method
update
Run a closure with mutable access to the App context. Automatically runs until parked after the closure completes.
crates/gpui/src/app/test_app.rs:111
↓ 54 callers
Function
white
Pure white in [`Hsla`]
crates/gpui/src/color.rs:386
↓ 52 callers
Method
borrow_mut
(&self)
crates/gpui/src/app.rs:93
↓ 50 callers
Method
flex_row
Sets the flex direction of the element to `row`. [Docs](https://tailwindcss.com/docs/flex-direction#row)
crates/gpui/src/styled.rs:150
↓ 50 callers
Method
into
(self)
crates/util/src/rel_path.rs:337
↓ 50 callers
Method
remove
( &self, emitter: &EmitterKey, )
crates/gpui/src/subscription.rs:89
↓ 48 callers
Method
len
(&self)
crates/util/src/rel_path.rs:178
↓ 47 callers
Method
join
Joins two subscriptions into a single subscription. Detach will detach both interior subscriptions.
crates/gpui/src/subscription.rs:172
↓ 46 callers
Method
top
Returns the top edge of the bounds. # Returns A value of type `T` representing the y-coordinate of the top edge of the bounds.
crates/gpui/src/geometry.rs:1235
↓ 45 callers
Method
as_f32
Returns the raw `f32` value of this `Pixels`.
crates/gpui/src/geometry.rs:2665
↓ 45 callers
Function
black
Pure black in [`Hsla`]
crates/gpui/src/color.rs:346
↓ 45 callers
Method
last
(&self)
crates/sum_tree/src/tree_map.rs:188
↓ 45 callers
Method
read
(&self)
crates/gpui_macos/src/pasteboard.rs:50
↓ 44 callers
Method
into_any_element
(self)
crates/gpui/src/element.rs:727
↓ 44 callers
Method
map
(self, update: F)
crates/util/src/test/assertions.rs:7
↓ 44 callers
Method
pop
Pops an element from the priority queue blocking if necessary. This method is best suited if you only intend to pop one element, for better performan
crates/gpui/src/queue.rs:282
↓ 44 callers
Method
send
(&self, _mime_type: String, fd: OwnedFd)
crates/gpui_linux/src/linux/wayland/clipboard.rs:180
↓ 44 callers
Method
update
Updates the root view of this window. This will fail if the window has been closed or if the root view's type does not match
crates/gpui/src/window.rs:6151
↓ 43 callers
Method
find
()
crates/gpui_macos/src/pasteboard.rs:33
↓ 43 callers
Method
iter
(&self)
crates/sum_tree/src/sum_tree.rs:391
↓ 43 callers
Function
ns_string
(string: &str)
crates/gpui_macos/src/lib.rs:133
↓ 42 callers
Method
min
Returns a new point with the minimum values of each dimension from `self` and `other`. # Arguments `other` - A reference to another `Point` to compa
crates/gpui/src/geometry.rs:326
↓ 42 callers
Method
new
(id: usize)
crates/gpui_examples/examples/text.rs:103
↓ 42 callers
Method
update
update self and return the needed click count
crates/gpui_windows/src/window.rs:1128
↓ 41 callers
Method
flex_1
Sets the element to allow a flex item to grow and shrink as needed, ignoring its initial size. [Docs](https://tailwindcss.com/docs/flex#flex-1)
crates/gpui/src/styled.rs:164
↓ 41 callers
Method
line_to
Draw a straight line from the current point to the given point.
crates/gpui/src/scene.rs:794
↓ 41 callers
Function
red
The color red in [`Hsla`]
crates/gpui/src/color.rs:396
↓ 41 callers
Method
starts_with
(&self, prefix: &Self)
crates/util/src/paths.rs:256
↓ 40 callers
Method
next
(&self, focused_id: Option<&FocusId>)
crates/gpui/src/tab_stop.rs:111
↓ 39 callers
Function
application
()
crates/gpui_platform/src/gpui_platform.rs:13
↓ 39 callers
Method
args
(&mut self, args: I)
crates/util/src/command.rs:62
↓ 39 callers
Method
bottom
Returns the bottom edge of the bounds. # Returns A value of type `T` representing the y-coordinate of the bottom edge of the bounds.
crates/gpui/src/geometry.rs:1244
↓ 39 callers
Method
is_hovered
(&self)
crates/gpui/src/platform/test/window.rs:239
↓ 39 callers
Method
random_range
Generate a random value in the given range.
crates/scheduler/src/test_scheduler.rs:827
↓ 39 callers
Method
run
(&self, on_finish_launching: Box<dyn FnOnce()>)
crates/gpui_ios/src/platform.rs:149
↓ 38 callers
Function
blue
The color blue in [`Hsla`]
crates/gpui/src/color.rs:406
next →
1–100 of 5,908, ranked by callers