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
↓ 12 callers
Function
init
Initializes the Tokio wrapper using a new Tokio runtime with 2 worker threads. If you need more threads (or access to the runtime outside of GPUI), y
crates/gpui_tokio/src/gpui_tokio.rs:12
↓ 12 callers
Method
insert_primitive
(&mut self, primitive: impl Into<Primitive>)
crates/gpui/src/scene.rs:73
↓ 12 callers
Function
is_refineable_field
(f: &Field)
crates/refineable/derive_refineable/src/derive_refineable.rs:506
↓ 12 callers
Method
log_with_level
(self, level: log::Level)
crates/gpui_util/src/lib.rs:116
↓ 12 callers
Method
output
(&mut self)
crates/util/src/command/darwin.rs:207
↓ 12 callers
Method
overflow_y_scroll
Set the overflow y to scroll.
crates/gpui/src/elements/div.rs:1182
↓ 12 callers
Method
parent
(&self)
crates/util/src/paths.rs:276
↓ 12 callers
Method
position
Returns the position of the click event `Keyboard`: The bottom left corner of the clicked hitbox `Mouse`: The position of the mouse when the button w
crates/gpui/src/interactive.rs:256
↓ 12 callers
Method
read
Read the root view out of this window. This will fail if the window is closed or if the root view's type does not match `V`.
crates/gpui/src/window.rs:6171
↓ 12 callers
Method
signed_hiword
(&self)
crates/gpui_windows/src/util.rs:36
↓ 12 callers
Method
simulate_event
Simulate an input event.
crates/gpui/src/app/test_app.rs:458
↓ 12 callers
Method
union
Computes the union of two `Bounds`. This method calculates the smallest `Bounds` that contains both the current `Bounds` and the `other` `Bounds`. Th
crates/gpui/src/geometry.rs:1124
↓ 12 callers
Method
value
(self)
crates/gpui_examples/src/web.rs:65
↓ 12 callers
Method
window_id
Get the ID of this window.
crates/gpui/src/window.rs:6254
↓ 12 callers
Function
with_input_handler
(window: &Object, f: F)
crates/gpui_macos/src/window.rs:3107
↓ 11 callers
Function
and
( a: Box<KeyBindingContextPredicate>, b: Box<KeyBindingContextPredicate>, )
crates/gpui/src/keymap/context.rs:827
↓ 11 callers
Method
background
Create a background executor for this scheduler
crates/scheduler/src/test_scheduler.rs:161
↓ 11 callers
Method
boxed_clone
(&self)
crates/gpui/tests/action_macros.rs:29
↓ 11 callers
Method
clipped_bounds
(&self)
crates/gpui/src/scene.rs:866
↓ 11 callers
Method
into_arc
(&self)
crates/util/src/rel_path.rs:210
↓ 11 callers
Method
invert
(&self)
crates/gpui_examples/examples/text.rs:85
↓ 11 callers
Method
is_zero
Checks if the absolute length is zero.
crates/gpui/src/geometry.rs:3170
↓ 11 callers
Method
items
(&'a self, cx: <T::Summary as Summary>::Context<'a>)
crates/sum_tree/src/sum_tree.rs:380
↓ 11 callers
Method
mouse_position
(&self)
crates/gpui/src/platform/test/window.rs:189
↓ 11 callers
Method
node
(&self, node_id: DispatchNodeId)
crates/gpui/src/key_dispatch.rs:690
↓ 11 callers
Method
release
(&mut self, buffer: InstanceBuffer)
crates/gpui_metal/src/renderer.rs:115
↓ 11 callers
Function
set_data_to_clipboard
(data: &[T], format: u32)
crates/gpui_windows/src/clipboard.rs:188
↓ 11 callers
Method
set_phase
(&self, phase: DrawPhase)
crates/gpui/src/window.rs:199
↓ 11 callers
Method
size
(&self)
crates/gpui/src/elements/list.rs:225
↓ 11 callers
Function
skip_whitespace
(source: &str)
crates/gpui/src/keymap/context.rs:508
↓ 11 callers
Method
spawn
(&self, f: AsyncFn)
crates/gpui/src/app/context.rs:237
↓ 11 callers
Method
with_content_mask
( &mut self, mask: Option<ContentMask<Pixels>>, f: impl FnOnce(&mut Self) -> R, )
crates/gpui/src/window.rs:3484
↓ 11 callers
Function
with_session
(this: &Object, f: impl FnOnce(&mut SessionState))
crates/gpui_ios/src/text_input/session.rs:145
↓ 11 callers
Function
yellow
The color yellow in [`Hsla`]
crates/gpui/src/color.rs:426
↓ 10 callers
Method
args
(&mut self, args: I)
crates/util/src/command/darwin.rs:97
↓ 10 callers
Function
assert_not_word
(word: &str)
crates/gpui/src/text_system/line_wrapper.rs:822
↓ 10 callers
Method
child_summaries
(&self)
crates/sum_tree/src/sum_tree.rs:1331
↓ 10 callers
Method
close
(&self)
crates/gpui_linux/src/linux/x11/window.rs:1078
↓ 10 callers
Method
copy
(&mut self, _: &Copy, _: &mut Window, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:140
↓ 10 callers
Function
get_mac_platform
(object: &mut Object)
crates/gpui_macos/src/platform.rs:1187
↓ 10 callers
Method
is_empty
Check if this context is empty.
crates/gpui/src/keymap/context.rs:98
↓ 10 callers
Method
listen
( self: &Rc<Self>, event_name: &str, handler: impl FnMut(JsValue) + 'static, )
crates/gpui_web/src/events.rs:81
↓ 10 callers
Method
new
(cx: &mut Context<Self>)
crates/gpui_examples/examples/testing.rs:30
↓ 10 callers
Method
notify
Tell GPUI that this entity has changed and observers of it should be notified.
crates/gpui/src/app/context.rs:229
↓ 10 callers
Method
prevent_default
Call to prevent the default action of an event. Currently only used to prevent parent elements from becoming focused on mouse down.
crates/gpui/src/window.rs:2624
↓ 10 callers
Method
range_from_utf16
(&self, range_utf16: &Range<usize>)
crates/gpui_examples/src/ios.rs:1064
↓ 10 callers
Method
read
Run a closure with read-only access to the App context.
crates/gpui/src/app/test_app.rs:121
↓ 10 callers
Function
read_modifiers
(native_event: id)
crates/gpui_macos/src/events.rs:89
↓ 10 callers
Function
rems
Constructs a `Rems` value representing a length in rems. # Arguments `rems` - The number of rems for the length. # Returns A `Rems` representing t
crates/gpui/src/geometry.rs:3586
↓ 10 callers
Function
rgba
Convert an RGBA hex color code number to [`Rgba`]
crates/gpui/src/color.rs:20
↓ 10 callers
Method
signed_loword
(&self)
crates/gpui_windows/src/util.rs:40
↓ 10 callers
Method
update_window
(&mut self, window: AnyWindowHandle, f: F)
crates/gpui/src/app/async_context.rs:85
↓ 9 callers
Function
assert_is_superset
(a: &str, b: &str, result: bool)
crates/gpui/src/keymap/context.rs:693
↓ 9 callers
Method
block_on
(&self, future: Fut)
crates/scheduler/src/executor.rs:59
↓ 9 callers
Method
bottom_left
Returns the bottom left corner point of the bounds. # Returns A `Point<T>` representing the bottom left corner of the bounds. # Examples ``` # use
crates/gpui/src/geometry.rs:1331
↓ 9 callers
Method
build
Returns the program and arguments to run this task in a shell.
crates/util/src/shell_builder.rs:77
↓ 9 callers
Function
build_window_options
(display_id: DisplayId, bounds: Bounds<Pixels>)
crates/gpui_examples/examples/window_positioning.rs:53
↓ 9 callers
Method
clear
Clear the element arena.
crates/gpui/src/window.rs:341
↓ 9 callers
Function
compute_disambiguation_details
Computes the minimum detail level needed for each item so that no two items share the same description. Items whose descriptions are unique at level 0
crates/util/src/disambiguate.rs:14
↓ 9 callers
Method
detach
Detaching a task runs it to completion in the background
crates/scheduler/src/executor.rs:230
↓ 9 callers
Method
dispatch_path
(&self, target: DispatchNodeId)
crates/gpui/src/key_dispatch.rs:650
↓ 9 callers
Method
element_opacity
(&self)
crates/gpui/src/window.rs:3645
↓ 9 callers
Method
entity_id
Returns the [EntityId] that will be associated with the entity once it is inserted.
crates/gpui/src/gpui.rs:203
↓ 9 callers
Method
executor
Returns an executor (for running tasks in the background)
crates/gpui/src/app/test_context.rs:187
↓ 9 callers
Method
floor
Floors the `Pixels` value to the nearest whole number. # Returns Returns a new `Pixels` instance with the floored value.
crates/gpui/src/geometry.rs:2674
↓ 9 callers
Method
focus_handle
(&self, _: &App)
crates/gpui_examples/examples/input.rs:629
↓ 9 callers
Method
handle_event
(&mut self, event: IosTextInputEvent)
crates/gpui_ios/src/text_input/session.rs:305
↓ 9 callers
Method
handle_ime
(&self, ime: ImeInput)
crates/gpui_linux/src/linux/wayland/window.rs:893
↓ 9 callers
Method
id
(&self)
crates/gpui_web/src/display.rs:63
↓ 9 callers
Method
is_empty
(&self)
tooling/perf/src/implementation.rs:202
↓ 9 callers
Method
is_focused
Obtains whether the element associated with this handle is currently focused.
crates/gpui/src/window.rs:358
↓ 9 callers
Method
justify_between
Sets the element to justify flex items along the container's main axis such that there is an equal amount of space between each item. [Docs](https://t
crates/gpui/src/styled.rs:354
↓ 9 callers
Method
len
(&self)
crates/gpui/src/key_dispatch.rs:162
↓ 9 callers
Method
loaded_font
(&self, font_id: FontId)
crates/gpui_wgpu/src/cosmic_text_system.rs:192
↓ 9 callers
Method
log_err
(self)
crates/util/src/util.rs:600
↓ 9 callers
Function
mouse_position
Compute the mouse position from an NSEvent, either by converting to view-local coordinates (when a flipped NSView is provided) or by the legacy window
crates/gpui_macos/src/events.rs:346
↓ 9 callers
Function
notify_button_layout_changed
(window_state: &Mutex<MacWindowState>)
crates/gpui_macos/src/window.rs:2498
↓ 9 callers
Method
open
( handle: AnyWindowHandle, WindowParams { bounds, titlebar,
crates/gpui_macos/src/window.rs:632
↓ 9 callers
Function
parse_expanded_items
(expanded: TokenStream)
crates/gpui_macros/src/derive_inspector_reflection.rs:293
↓ 9 callers
Method
pop
(&mut self)
crates/util/src/rel_path.rs:300
↓ 9 callers
Method
position
(mut self, pos: Point<Pixels>)
crates/gpui_examples/examples/drag_drop.rs:25
↓ 9 callers
Function
relative
Constructs a `DefiniteLength` representing a relative fraction of a parent size. This function creates a `DefiniteLength` that is a specified fractio
crates/gpui/src/geometry.rs:3568
↓ 9 callers
Method
right
(&mut self, _: &Right, _: &mut Window, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:57
↓ 9 callers
Method
suffix
(&mut self)
crates/sum_tree/src/cursor.rs:443
↓ 9 callers
Method
text
(&self)
crates/gpui_ios/src/text_input/backed_view.rs:187
↓ 9 callers
Method
to_device_pixels
Converts the size from logical to physical pixels.
crates/gpui/src/geometry.rs:1583
↓ 9 callers
Method
toplevel
(&self)
crates/gpui_linux/src/linux/wayland/window.rs:266
↓ 9 callers
Function
xcb_flush
(xcb: &XCBConnection)
crates/gpui_linux/src/linux/x11/window.rs:351
↓ 8 callers
Function
align_offset
Align to multiples of 256 make Metal happy.
crates/gpui_metal/src/renderer.rs:1686
↓ 8 callers
Method
as_path
(&self)
crates/util/src/paths.rs:260
↓ 8 callers
Method
as_ref
(&self)
crates/util/src/arc_cow.rs:126
↓ 8 callers
Method
background_executor
Returns a handle to the [`BackgroundExecutor`] associated with this app, which can be used to spawn futures in the background.
crates/gpui/src/app.rs:248
↓ 8 callers
Method
contains_key
(&self, key: &K)
crates/sum_tree/src/tree_map.rs:56
↓ 8 callers
Method
content_size
(&self)
crates/gpui_macos/src/window.rs:577
↓ 8 callers
Method
drain
(&self, window: &web_sys::Window)
crates/gpui_web/src/dispatcher.rs:63
↓ 8 callers
Method
ends_with
(&self, other: &Self)
crates/util/src/rel_path.rs:153
↓ 8 callers
Method
entity
Returns a handle to the entity belonging to this context.
crates/gpui/src/app/context.rs:50
↓ 8 callers
Method
entity_id
(&self)
crates/gpui/src/app/entity_map.rs:278
↓ 8 callers
Method
flex_wrap
Sets the element to allow flex items to wrap. [Docs](https://tailwindcss.com/docs/flex-wrap#wrap-normally)
crates/gpui/src/styled.rs:227
↓ 8 callers
Method
focus_handle
(&self)
crates/gpui/src/elements/list.rs:240
← previous
next →
301–400 of 5,908, ranked by callers