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
↓ 19 callers
Method
to_str
(&self)
crates/gpui_macos/src/lib.rs:69
↓ 19 callers
Method
with_common
(&self, f: impl FnOnce(&mut LinuxCommon) -> R)
crates/gpui_linux/src/linux/x11/client.rs:1517
↓ 19 callers
Method
write
Updates the entity referenced by this handle with the given function.
crates/gpui/src/app/entity_map.rs:491
↓ 19 callers
Method
write
(&self, item: ClipboardItem)
crates/gpui_macos/src/pasteboard.rs:165
↓ 18 callers
Method
as_bytes
Convert this image into a byte slice.
crates/gpui/src/assets.rs:79
↓ 18 callers
Method
bounds
(&self)
crates/gpui_ios/src/window.rs:417
↓ 18 callers
Method
center
Compute the center point of the size.g
crates/gpui/src/geometry.rs:470
↓ 18 callers
Function
fill
Creates a filled quad with the given bounds and background color.
crates/gpui/src/window.rs:6546
↓ 18 callers
Method
handle_input
(&self, input: PlatformInput)
crates/gpui_linux/src/linux/wayland/window.rs:997
↓ 18 callers
Method
is_empty
(&self)
crates/gpui/src/queue.rs:19
↓ 18 callers
Method
iter
(&self)
crates/sum_tree/src/tree_map.rs:176
↓ 18 callers
Function
linear_gradient
Creates a LinearGradient background color. The gradient line's angle of direction. A value of `0.` is equivalent to top; increasing values rotate clo
crates/gpui/src/color.rs:777
↓ 18 callers
Method
next_id
(&mut self)
crates/gpui_examples/examples/text.rs:246
↓ 18 callers
Method
parse
Parses a GNOME-style `button-layout` string (e.g. `"close,minimize:maximize"`).
crates/gpui/src/platform.rs:476
↓ 18 callers
Method
refresh
Schedules all windows to be redrawn on the next effect cycle.
crates/gpui/src/app/test_context.rs:180
↓ 18 callers
Method
register
( &mut self, poll: &mut calloop::Poll, token_factory: &mut calloop::TokenFactory,
crates/gpui_linux/src/linux/dispatcher.rs:320
↓ 18 callers
Method
size
Get the size of this image, in pixels.
crates/gpui/src/assets.rs:86
↓ 18 callers
Method
spawn
(&self, future: F)
crates/scheduler/src/executor.rs:40
↓ 18 callers
Method
to_async
Creates an [`AsyncWindowContext`], which has a static lifetime and can be held across await points in async code.
crates/gpui/src/window.rs:2131
↓ 18 callers
Method
to_str
(&self)
crates/util/src/paths.rs:284
↓ 18 callers
Method
truncate
(&mut self, index: usize)
crates/gpui/src/key_dispatch.rs:314
↓ 18 callers
Method
weight
Returns the relative probability weight for this priority level. Used by schedulers to determine task selection probability.
crates/scheduler/src/scheduler.rs:46
↓ 17 callers
Method
clear
(&mut self)
crates/gpui/src/arena.rs:102
↓ 17 callers
Method
components
(&self)
crates/util/src/rel_path.rs:123
↓ 17 callers
Method
contains
Check if this context contains a given identifier or key.
crates/gpui/src/keymap/context.rs:137
↓ 17 callers
Method
focus
Moves the focus to the element associated with this handle.
crates/gpui/src/window.rs:461
↓ 17 callers
Method
is_empty
Returns true if the cache is empty.
crates/gpui/src/elements/image_cache.rs:313
↓ 17 callers
Function
perform_test
( wrapper: &mut LineWrapper, text: &'static str, expected: &'static str,
crates/gpui/src/text_system/line_wrapper.rs:554
↓ 17 callers
Function
rel_path
(path: &str)
crates/util/src/rel_path.rs:377
↓ 17 callers
Method
resources
(&self)
crates/gpui_wgpu/src/wgpu_renderer.rs:152
↓ 17 callers
Function
run_ios_app
( launch: &AppLauncher, build_view: impl FnOnce(&mut Window, &mut Context<V>) -> V + 'static, )
crates/gpui_examples/src/ios.rs:103
↓ 17 callers
Method
safe_area_insets
(&self)
crates/gpui_ios/src/window.rs:433
↓ 17 callers
Method
scale_factor
The scale factor of the display associated with the window. For example, it could return 2.0 for a "retina" display, indicating that each logical pixe
crates/gpui/src/window.rs:2549
↓ 17 callers
Method
set_global
Sets the value of the global of the given type.
crates/gpui/src/app.rs:1751
↓ 17 callers
Method
width
The width of this line, in pixels, whether or not it was wrapped.
crates/gpui/src/text_system/line_layout.rs:240
↓ 16 callers
Method
bytes
Get the raw bytes of the clipboard image
crates/gpui/src/platform.rs:2494
↓ 16 callers
Method
len_utf8
(&self)
crates/gpui/src/text_system/line_wrapper.rs:358
↓ 16 callers
Method
logical_scroll_top
Get the current scroll offset, in terms of the list's items.
crates/gpui/src/elements/list.rs:453
↓ 16 callers
Method
push
(&mut self, index: usize)
crates/gpui/src/bounds_tree.rs:80
↓ 16 callers
Method
scheduler
(&self)
crates/gpui/src/platform/test/dispatcher.rs:43
↓ 16 callers
Method
split
(&self, input: &str)
crates/util/src/shell.rs:735
↓ 16 callers
Method
summary
(&self, _: ())
crates/gpui/src/elements/list.rs:1371
↓ 16 callers
Method
text_xl
Sets the text size to 'extra large'. [Docs](https://tailwindcss.com/docs/font-size#setting-the-font-size)
crates/gpui/src/styled.rs:534
↓ 16 callers
Method
update
Gives you an `&mut App` for the duration of the closure
crates/gpui/src/app/test_context.rs:203
↓ 15 callers
Method
app
(&self)
crates/gpui/src/app/async_context.rs:29
↓ 15 callers
Method
ceil
Returns the ceiling of the `Pixels` value to the nearest whole number. # Returns Returns a new `Pixels` instance with the ceiling value.
crates/gpui/src/geometry.rs:2692
↓ 15 callers
Method
color_space
Use specified color space for color interpolation. <https://developer.mozilla.org/en-US/docs/Web/CSS/color-interpolation-method>
crates/gpui/src/color.rs:826
↓ 15 callers
Function
get_window_state
Recover the `Rc<Mutex<IosWindowState>>` from the view's ivar without consuming the Rc (the ivar still holds its reference).
crates/gpui_ios/src/view.rs:124
↓ 15 callers
Function
hash
Use a quick, non-cryptographically secure hash function to get an identifier from data
crates/gpui/src/asset_cache.rs:80
↓ 15 callers
Method
is_empty
(&self)
crates/sum_tree/src/tree_map.rs:52
↓ 15 callers
Method
left
Returns the left edge of the bounds. # Returns A value of type `T` representing the x-coordinate of the left edge of the bounds.
crates/gpui/src/geometry.rs:1253
↓ 15 callers
Method
refresh
Mark the window as dirty, scheduling it to be redrawn on the next frame.
crates/gpui/src/window.rs:1833
↓ 15 callers
Function
sum
(iter: I, cx: T::Context<'_>)
crates/sum_tree/src/sum_tree.rs:1377
↓ 15 callers
Method
to_path_buf
(&self)
crates/util/src/paths.rs:288
↓ 15 callers
Method
track_focus
Track the focus state of the given focus handle on this element. If the focus handle is focused by the application, this element will apply its focuse
crates/gpui/src/elements/div.rs:685
↓ 14 callers
Method
bind_keys
Register key bindings.
crates/gpui/src/app.rs:1931
↓ 14 callers
Method
clone
(&self)
crates/gpui/src/subscription.rs:14
↓ 14 callers
Method
clone
(&self)
crates/gpui/src/platform/app_menu.rs:281
↓ 14 callers
Method
current_view
Get the entity ID for the currently rendering view
crates/gpui/src/window.rs:4513
↓ 14 callers
Method
debug_assert_prepaint
(&self)
crates/gpui/src/window.rs:224
↓ 14 callers
Method
flush
(&self)
crates/gpui_web/src/logging.rs:31
↓ 14 callers
Method
hover
(&mut self, id: InspectorElementId, window: &mut Window)
crates/gpui/src/inspector.rs:92
↓ 14 callers
Function
img
(source: impl Into<ImageSource>)
crates/gpui/src/elements/img.rs:200
↓ 14 callers
Function
load
( image_cache: &AnyEntity, resource: &Resource, window: &mut Window, cx: &mut
crates/gpui/src/elements/image_cache.rs:60
↓ 14 callers
Method
paint_quad
Paint one or more quads into the scene for the next frame at the current stacking context. Quads are colored rectangular regions with an optional back
crates/gpui/src/window.rs:3957
↓ 14 callers
Method
path
Set the path to the SVG file for this element.
crates/gpui/src/elements/svg.rs:31
↓ 14 callers
Method
prev
(&mut self)
crates/sum_tree/src/cursor.rs:214
↓ 14 callers
Method
read_with
Read the root view out of this window, with a callback This will fail if the window is closed or if the root view's type does not match `V`.
crates/gpui/src/window.rs:6190
↓ 14 callers
Method
slice
(&mut self, end: &Target, bias: Bias)
crates/sum_tree/src/cursor.rs:428
↓ 14 callers
Method
update_window
Updates a window.
crates/gpui/src/app/visual_test_context.rs:176
↓ 13 callers
Method
add_summary
(&mut self, summary: &Self)
crates/sum_tree/src/tree_map.rs:284
↓ 13 callers
Method
as_str
Get a &str from the underlying string.
crates/gpui/src/shared_string.rs:28
↓ 13 callers
Method
content_mask
Obtain the current content mask. This method should only be called during element drawing.
crates/gpui/src/window.rs:3651
↓ 13 callers
Method
defer
Schedules the given function to be run at the end of the current effect cycle, allowing entities that are currently on the stack to be returned to the
crates/gpui/src/app.rs:1688
↓ 13 callers
Method
dispatch_input
(&self, input: PlatformInput)
crates/gpui_web/src/events.rs:127
↓ 13 callers
Function
get_window
( state: &mut RefMut<WaylandClientState>, surface_id: &ObjectId, )
crates/gpui_linux/src/linux/wayland/client.rs:1104
↓ 13 callers
Function
hsla
Construct an [`Hsla`] object from plain values
crates/gpui/src/color.rs:336
↓ 13 callers
Method
id
Returns a stable element ID for rendering this button.
crates/gpui/src/platform.rs:428
↓ 13 callers
Method
justify_around
Sets the element to justify items along the container's main axis such that there is an equal amount of space on each side of each item. [Docs](https:
crates/gpui/src/styled.rs:362
↓ 13 callers
Method
layout_as_root
( &mut self, available_space: Size<AvailableSpace>, window: &mut Window, cx: &
crates/gpui/src/element.rs:504
↓ 13 callers
Function
list
Construct a new list element
crates/gpui/src/elements/list.rs:24
↓ 13 callers
Method
load
Load a keybinding from the given raw data.
crates/gpui/src/keymap/binding.rs:48
↓ 13 callers
Method
metadata
(&self)
crates/gpui_macos/src/screen_capture.rs:53
↓ 13 callers
Method
new
Construct a new list state, for storage on a view. The overdraw parameter controls how much extra space is rendered above and below the visible area.
crates/gpui/src/elements/list.rs:281
↓ 13 callers
Method
tab_group
(mut self, tab_index: isize, children: impl FnOnce(Self) -> Self)
crates/gpui/src/tab_stop.rs:467
↓ 13 callers
Method
text_style
Get the text style in this element style.
crates/gpui/src/style.rs:585
↓ 12 callers
Method
add_empty_window
Adds a new window with no content.
crates/gpui/src/app/test_context.rs:263
↓ 12 callers
Function
add_task_timing
(timing: TaskTiming)
crates/gpui/src/profiler.rs:349
↓ 12 callers
Method
as_ref
(&self)
crates/util/src/rel_path.rs:343
↓ 12 callers
Method
as_test
(&self)
crates/gpui/src/platform_scheduler.rs:135
↓ 12 callers
Function
build
()
crates/gpui/build.rs:28
↓ 12 callers
Method
clear
(&mut self, cx: &mut Context<Self>)
crates/gpui_examples/examples/painting.rs:303
↓ 12 callers
Function
current_modifiers
()
crates/gpui_windows/src/events.rs:1552
↓ 12 callers
Function
cvt_nz
Zero means `Ok()`, all other values are treated as raw OS errors. Does not look at `errno`. Mirrored after Rust's std `cvt_nz` function.
crates/util/src/command/darwin.rs:536
↓ 12 callers
Method
debug_assert_paint_or_prepaint
(&self)
crates/gpui/src/window.rs:232
↓ 12 callers
Function
ensure_success
(status: ExitStatus, context: &str)
tooling/cargo-gpui/src/ios.rs:487
↓ 12 callers
Method
entry_ref
Like [`Self::entry`] but takes its key by reference instead of by value. This can be helpful if you have a key where cloning is expensive, as we can
crates/collections/src/vecmap.rs:53
↓ 12 callers
Method
find
A more efficient version of `Cursor::new()` + `Cursor::seek()` + `Cursor::item()`
crates/sum_tree/src/sum_tree.rs:423
↓ 12 callers
Method
flex_shrink_0
Sets the element to prevent a flex item from shrinking. [Docs](https://tailwindcss.com/docs/flex-shrink#dont-shrink)
crates/gpui/src/styled.rs:220
↓ 12 callers
Method
grid_location_mut
The grid location of this element
crates/gpui/src/style.rs:328
← previous
next →
201–300 of 5,908, ranked by callers