MCPcopy Create free account

hub / github.com/Glass-HQ/gpui / functions

Functions5,908 in github.com/Glass-HQ/gpui

↓ 1,261 callersFunctionpx
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 callersMethodchild
Add a single child element to this element.
crates/gpui/src/element.rs:161
↓ 707 callersFunctiondefault
()
crates/util/src/util.rs:1025
↓ 569 callersFunctiondiv
()
crates/gpui/src/elements/div.rs:1365
↓ 530 callersMethodunwrap
(self)
crates/gpui_util/src/lib.rs:218
↓ 456 callersMethodmap
(mut self, f: impl FnOnce(&mut T) -> &mut U)
crates/gpui/src/arena.rs:172
↓ 438 callersMethodclone
(&self)
crates/gpui_util/src/arc_cow.rs:46
↓ 430 callersMethodlock
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 callersFunctionrgb
Convert an RGB hex color code number to a color type
crates/gpui/src/color.rs:14
↓ 333 callersMethodto_string
(&self, path_to_string: impl Fn(&PathBuf) -> String)
crates/util/src/paths.rs:789
↓ 311 callersMethodinto
(self)
crates/gpui_examples/examples/set_menus.rs:70
↓ 307 callersMethodpush
(name: SharedString, hitbox_id: HitboxId, cx: &mut App)
crates/gpui/src/elements/div.rs:3202
↓ 301 callersMethodborrow_mut
(&self)
crates/gpui_linux/src/linux/wayland/window.rs:492
↓ 300 callersMethodok
Create an Ok button
crates/gpui/src/platform.rs:2055
↓ 297 callersMethoditer
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 callersMethodinto
(self)
crates/gpui/src/inspector.rs:13
↓ 284 callersFunctionpoint
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 callersMethodbg
Sets the background color of the element.
crates/gpui/src/styled.rs:451
↓ 253 callersMethodas_ref
(&self)
crates/gpui_util/src/arc_cow.rs:126
↓ 243 callersMethodlen
(&self)
crates/gpui/src/scene.rs:57
↓ 238 callersMethodflex
Sets the display type of the element to `flex`. [Docs](https://tailwindcss.com/docs/display)
crates/gpui/src/styled.rs:45
↓ 236 callersMethodclone
(&self)
crates/gpui/src/app/test_app.rs:496
↓ 209 callersMethodlog_err
(self)
crates/gpui_util/src/lib.rs:98
↓ 181 callersMethodtext_color
Sets the text color of this element. This value cascades to its child elements.
crates/gpui/src/styled.rs:475
↓ 179 callersMethodunwrap
(self)
crates/util/src/util.rs:720
↓ 164 callersMethodto_owned
(&self)
crates/util/src/rel_path.rs:260
↓ 163 callersMethodinsert
(&mut self, focus_handle: &FocusHandle)
crates/gpui/src/tab_stop.rs:78
↓ 157 callersMethodas_ref
(&self)
crates/gpui/src/shared_string.rs:54
↓ 154 callersFunctionsize
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 callersMethodclone
(&self)
crates/gpui/src/app.rs:143
↓ 140 callersMethodborrow_mut
(&mut self)
crates/gpui/src/app/context.rs:874
↓ 129 callersMethodis_empty
(&self)
crates/gpui/src/geometry.rs:1554
↓ 127 callersMethodclone
(&self)
crates/gpui/src/geometry.rs:373
↓ 127 callersMethodset
(&mut self, item: ClipboardItem)
crates/gpui_linux/src/linux/wayland/clipboard.rs:158
↓ 120 callersMethodget
(name: &SharedString, cx: &mut App)
crates/gpui/src/elements/div.rs:3194
↓ 112 callersMethoditems_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 callersMethodtext_size
Sets the text size of this element. This value cascades to its child elements.
crates/gpui/src/styled.rs:499
↓ 104 callersMethodflex_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 callersMethodget
(hwnd: HWND)
crates/gpui_windows/src/events.rs:1266
↓ 98 callersMethodborrow
(&self)
crates/gpui_linux/src/linux/wayland/window.rs:488
↓ 95 callersMethodlistener
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 callersMethodclone
(&self)
crates/gpui/src/window.rs:500
↓ 88 callersMethodnotify
Tell GPUI that an entity has changed and observers of it should be notified.
crates/gpui/src/app.rs:2322
↓ 86 callersMethodclone
(&self)
crates/scheduler/src/test_scheduler.rs:739
↓ 85 callersMethodborrow
(&self)
crates/gpui/src/app/context.rs:868
↓ 84 callersMethodas_mut
(&self, cx: &'a mut C)
crates/gpui/src/app/entity_map.rs:486
↓ 84 callersMethodspawn
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 callersMethoddetach
Detaching a task runs it to completion in the background.
crates/gpui/src/executor.rs:53
↓ 82 callersMethodcontains
Obtains whether this handle contains the given handle in the most recently rendered frame.
crates/gpui/src/window.rs:378
↓ 82 callersMethodmax
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 callersMethodstyle
(&mut self)
crates/gpui/src/style.rs:321
↓ 80 callersMethodpush
(&mut self, path: &RelPath)
crates/util/src/rel_path.rs:312
↓ 79 callersMethodid
(&self)
crates/gpui_examples/examples/input.rs:428
↓ 79 callersMethodjustify_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 callersMethodextend
(&self, amount: Edges<T>)
crates/gpui/src/geometry.rs:1016
↓ 73 callersMethodborder_color
Sets the border color of the quad.
crates/gpui/src/window.rs:6510
↓ 73 callersMethodupdate
(&mut self, update: impl FnOnce(&mut Self) -> R)
crates/gpui/src/app.rs:916
↓ 69 callersMethodarg
(&mut self, arg: impl AsRef<OsStr>)
crates/util/src/command.rs:57
↓ 67 callersMethodas_ref
(&self)
crates/util/src/paths.rs:320
↓ 64 callersMethodjoin
(&self, path: P)
crates/util/src/paths.rs:272
↓ 63 callersMethodinteractivity
(&mut self)
crates/gpui/src/elements/div.rs:1449
↓ 59 callersMethodget
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 callersMethodopen_window
( &self, handle: AnyWindowHandle, options: WindowParams, )
crates/gpui_ios/src/platform.rs:181
↓ 58 callersMethodtab_stop
(mut self, index: isize, expected: usize)
crates/gpui/src/tab_stop.rs:456
↓ 58 callersMethodupdate
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 callersFunctionwhite
Pure white in [`Hsla`]
crates/gpui/src/color.rs:386
↓ 52 callersMethodborrow_mut
(&self)
crates/gpui/src/app.rs:93
↓ 50 callersMethodflex_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 callersMethodinto
(self)
crates/util/src/rel_path.rs:337
↓ 50 callersMethodremove
( &self, emitter: &EmitterKey, )
crates/gpui/src/subscription.rs:89
↓ 48 callersMethodlen
(&self)
crates/util/src/rel_path.rs:178
↓ 47 callersMethodjoin
Joins two subscriptions into a single subscription. Detach will detach both interior subscriptions.
crates/gpui/src/subscription.rs:172
↓ 46 callersMethodtop
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 callersMethodas_f32
Returns the raw `f32` value of this `Pixels`.
crates/gpui/src/geometry.rs:2665
↓ 45 callersFunctionblack
Pure black in [`Hsla`]
crates/gpui/src/color.rs:346
↓ 45 callersMethodlast
(&self)
crates/sum_tree/src/tree_map.rs:188
↓ 45 callersMethodread
(&self)
crates/gpui_macos/src/pasteboard.rs:50
↓ 44 callersMethodinto_any_element
(self)
crates/gpui/src/element.rs:727
↓ 44 callersMethodmap
(self, update: F)
crates/util/src/test/assertions.rs:7
↓ 44 callersMethodpop
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 callersMethodsend
(&self, _mime_type: String, fd: OwnedFd)
crates/gpui_linux/src/linux/wayland/clipboard.rs:180
↓ 44 callersMethodupdate
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 callersMethodfind
()
crates/gpui_macos/src/pasteboard.rs:33
↓ 43 callersMethoditer
(&self)
crates/sum_tree/src/sum_tree.rs:391
↓ 43 callersFunctionns_string
(string: &str)
crates/gpui_macos/src/lib.rs:133
↓ 42 callersMethodmin
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 callersMethodnew
(id: usize)
crates/gpui_examples/examples/text.rs:103
↓ 42 callersMethodupdate
update self and return the needed click count
crates/gpui_windows/src/window.rs:1128
↓ 41 callersMethodflex_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 callersMethodline_to
Draw a straight line from the current point to the given point.
crates/gpui/src/scene.rs:794
↓ 41 callersFunctionred
The color red in [`Hsla`]
crates/gpui/src/color.rs:396
↓ 41 callersMethodstarts_with
(&self, prefix: &Self)
crates/util/src/paths.rs:256
↓ 40 callersMethodnext
(&self, focused_id: Option<&FocusId>)
crates/gpui/src/tab_stop.rs:111
↓ 39 callersFunctionapplication
()
crates/gpui_platform/src/gpui_platform.rs:13
↓ 39 callersMethodargs
(&mut self, args: I)
crates/util/src/command.rs:62
↓ 39 callersMethodbottom
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 callersMethodis_hovered
(&self)
crates/gpui/src/platform/test/window.rs:239
↓ 39 callersMethodrandom_range
Generate a random value in the given range.
crates/scheduler/src/test_scheduler.rs:827
↓ 39 callersMethodrun
(&self, on_finish_launching: Box<dyn FnOnce()>)
crates/gpui_ios/src/platform.rs:149
↓ 38 callersFunctionblue
The color blue in [`Hsla`]
crates/gpui/src/color.rs:406
next →1–100 of 5,908, ranked by callers