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
↓ 38 callers
Method
filter
Note: If the summary type requires a non `()` context, then the filter cursor that is returned cannot be used with Rust's iterators.
crates/sum_tree/src/sum_tree.rs:605
↓ 37 callers
Function
get_window_state
(object: &Object)
crates/gpui_macos/src/window.rs:1909
↓ 37 callers
Method
insert
(&mut self, key: K, value: V)
crates/sum_tree/src/tree_map.rs:75
↓ 37 callers
Method
push
(&mut self, item: T, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:764
↓ 37 callers
Function
web_init
()
crates/gpui_platform/src/gpui_platform.rs:24
↓ 36 callers
Function
linear_color_stop
Creates a new linear color stop. The percentage of the gradient, in the range 0.0 to 1.0.
crates/gpui/src/color.rs:805
↓ 35 callers
Method
entry
(&mut self, key: K)
crates/collections/src/vecmap.rs:39
↓ 35 callers
Method
text_style
Returns a mutable reference to the text style that has been configured on this element.
crates/gpui/src/styled.rs:467
↓ 34 callers
Method
borrow
(&self)
crates/gpui_util/src/arc_cow.rs:106
↓ 34 callers
Function
ident
(s: &str)
crates/gpui/src/keymap/context.rs:818
↓ 34 callers
Method
insert
Insert an entity into a slot obtained by calling `reserve`.
crates/gpui/src/app/entity_map.rs:120
↓ 34 callers
Method
on_mouse_down
( &mut self, event: &MouseDownEvent, _window: &mut Window, cx: &mut Context<Se
crates/gpui_examples/examples/input.rs:100
↓ 33 callers
Method
activate
(&self)
crates/gpui_ios/src/window.rs:506
↓ 33 callers
Method
clamp
Clamps the point to a specified range. Given a minimum point and a maximum point, this method constrains the current point such that its coordinates
crates/gpui/src/geometry.rs:367
↓ 33 callers
Method
finish
(&mut self)
crates/gpui/src/scene.rs:137
↓ 33 callers
Method
get_client
(&self)
crates/gpui_linux/src/linux/wayland/client.rs:297
↓ 33 callers
Method
next
(&mut self)
crates/gpui_windows/src/direct_write.rs:1392
↓ 33 callers
Method
set
Set a key value pair in this context, if it's not already set.
crates/gpui/src/keymap/context.rs:126
↓ 32 callers
Method
as_str
(self)
crates/gpui_windows/src/directx_renderer.rs:1754
↓ 32 callers
Method
opacity
Multiplies the alpha value of the color by a given factor and returns a new HSLA color. Useful for transforming colors with dynamic opacity, like a c
crates/gpui/src/color.rs:549
↓ 32 callers
Method
upgrade
Upgrade this weak entity reference to a strong reference.
crates/gpui/src/app/entity_map.rs:593
↓ 31 callers
Method
id
(&self)
crates/gpui_linux/src/linux/wayland/display.rs:27
↓ 31 callers
Method
len
The UTF-8 length of the underlying text.
crates/gpui/src/elements/text.rs:610
↓ 31 callers
Method
next
(&mut self)
crates/util/src/util.rs:822
↓ 31 callers
Method
on_mouse_event
Register a mouse event listener on the window for the next frame. The type of event is determined by the first parameter of the given listener. When t
crates/gpui/src/window.rs:4581
↓ 31 callers
Method
status
(&mut self)
crates/util/src/command.rs:129
↓ 30 callers
Method
is_empty
(&self)
crates/util/src/rel_path.rs:119
↓ 30 callers
Method
to_pixels
Converts the size from physical to logical pixels.
crates/gpui/src/geometry.rs:1573
↓ 29 callers
Method
on_click
Bind the given callback to click events of this element. The imperative API equivalent to [`StatefulInteractiveElement::on_click`]. See [`Context::li
crates/gpui/src/elements/div.rs:539
↓ 28 callers
Method
on_action
Register a global handler for actions invoked via the keyboard. These handlers are run at the end of the bubble phase for actions, and so will only be
crates/gpui/src/app.rs:1950
↓ 28 callers
Method
upgrade
Convert to a strongly-typed handle if the referenced view has not yet been released.
crates/gpui/src/view.rs:267
↓ 27 callers
Method
as_slice
(&self)
crates/gpui/src/bounds_tree.rs:90
↓ 27 callers
Method
build
(self)
crates/gpui/src/path_builder.rs:244
↓ 27 callers
Method
clone
(&self)
crates/util/src/arc_cow.rs:46
↓ 27 callers
Method
index
(&self)
crates/sum_tree/src/cursor.rs:14
↓ 27 callers
Method
iter_mut
(&mut self)
crates/gpui/src/platform.rs:1150
↓ 27 callers
Method
path
(&self)
crates/util/src/test.rs:31
↓ 27 callers
Method
scale
Scale the content mask's pixel units by the given scaling factor.
crates/gpui/src/window.rs:1742
↓ 27 callers
Method
seek
(&mut self, pos: &Target, bias: Bias)
crates/sum_tree/src/cursor.rs:405
↓ 27 callers
Method
weak_entity
Returns a weak handle to the entity belonging to this context.
crates/gpui/src/app/context.rs:57
↓ 26 callers
Method
as_any
Type-erase Action type.
crates/gpui/src/action.rs:185
↓ 26 callers
Method
drain
(&mut self)
crates/gpui/src/platform.rs:1145
↓ 26 callers
Method
scale
(mut self, scale: f32)
crates/gpui_examples/examples/text.rs:121
↓ 25 callers
Method
add_bindings
Add more bindings to the keymap.
crates/gpui/src/keymap.rs:64
↓ 25 callers
Method
any
Checks if any of the edges satisfy a given predicate. This method applies a predicate function to each field of the `Edges` and returns `true` if any
crates/gpui/src/geometry.rs:1820
↓ 25 callers
Method
cmp
(&self, other: &Self)
crates/util/src/util.rs:940
↓ 24 callers
Function
button
(text: &str, on_click: impl Fn(&mut Window, &mut App) + 'static)
crates/gpui_examples/examples/window.rs:14
↓ 24 callers
Function
check_reply
( failure_context: F, result: Result<VoidCookie<'_, C>, ConnectionError>, )
crates/gpui_linux/src/linux/x11/window.rs:358
↓ 24 callers
Method
get_or_insert_with
( &self, key: &crate::AtlasKey, build: &mut dyn FnMut() -> anyhow::Result<
crates/gpui/src/platform/test/window.rs:370
↓ 24 callers
Function
green
The color green in [`Hsla`]
crates/gpui/src/color.rs:416
↓ 24 callers
Method
send
( &self, _req: http_client::Request<http_client::AsyncBody>, )
crates/gpui/src/app.rs:2627
↓ 23 callers
Function
assert_word
(word: &str)
crates/gpui/src/text_system/line_wrapper.rs:810
↓ 23 callers
Method
bindings_for_input
Returns a list of bindings that match the given input, and a boolean indicating whether or not more bindings might match if the input was longer. Bind
crates/gpui/src/keymap.rs:165
↓ 23 callers
Method
or_insert
(self, value: V)
crates/collections/src/vecmap.rs:113
↓ 23 callers
Method
when
Conditionally modify self with the given closure.
crates/gpui/src/util.rs:21
↓ 22 callers
Method
abs
Returns the absolute value of the `Pixels`. # Returns A new `Pixels` instance with the absolute value of the original `Pixels`.
crates/gpui/src/geometry.rs:2727
↓ 22 callers
Method
destroy
(&mut self)
crates/gpui_linux/src/linux/wayland/window.rs:286
↓ 22 callers
Method
draw
Force a redraw of the window.
crates/gpui/src/app/test_app.rs:485
↓ 22 callers
Method
extend
(&mut self, iter: I, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:746
↓ 22 callers
Method
item
(&self)
crates/sum_tree/src/cursor.rs:98
↓ 22 callers
Function
logical_point
(x: f32, y: f32, scale_factor: f32)
crates/gpui_windows/src/util.rs:152
↓ 22 callers
Method
retain
Call the given callback for each subscriber to the given emitter. If the callback returns false, the subscriber is removed.
crates/gpui/src/subscription.rs:110
↓ 22 callers
Method
strip_prefix
(&self, base: &Self)
crates/util/src/paths.rs:280
↓ 22 callers
Method
tab_index
Sets the tab index of the element associated with this handle.
crates/gpui/src/window.rs:433
↓ 22 callers
Method
unwrap_oob
(self)
crates/sum_tree/src/sum_tree.rs:25
↓ 21 callers
Method
alloc
(&mut self, f: impl FnOnce() -> T)
crates/gpui/src/arena.rs:113
↓ 21 callers
Method
borrow
(&self)
crates/gpui/src/app.rs:83
↓ 21 callers
Method
children
Add multiple child elements to this element.
crates/gpui/src/element.rs:170
↓ 21 callers
Method
debug_assert_paint
(&self)
crates/gpui/src/window.rs:216
↓ 21 callers
Function
dispatch_input
( state: &Mutex<IosWindowState>, input: PlatformInput, )
crates/gpui_ios/src/view.rs:182
↓ 21 callers
Method
get_window
(&self, win: xproto::Window)
crates/gpui_linux/src/linux/x11/client.rs:760
↓ 21 callers
Method
height
(&self)
crates/sum_tree/src/sum_tree.rs:1317
↓ 21 callers
Method
into_any
(self)
crates/gpui/src/app/entity_map.rs:458
↓ 21 callers
Method
move_to
(&mut self, offset: usize, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:156
↓ 21 callers
Method
next
(&mut self)
crates/sum_tree/src/cursor.rs:289
↓ 21 callers
Method
start
(&mut self)
crates/gpui_macos/src/display_link.rs:59
↓ 21 callers
Method
summary
(&self)
crates/sum_tree/src/sum_tree.rs:732
↓ 21 callers
Method
timer
Returns a task that will complete after the given duration. Depending on other concurrent tasks the elapsed duration may be longer than requested.
crates/gpui/src/executor.rs:260
↓ 21 callers
Method
try_into
(self)
crates/gpui/src/window.rs:6369
↓ 20 callers
Method
add
Add an identifier to this context, if it's not already in this context.
crates/gpui/src/keymap/context.rs:117
↓ 20 callers
Method
as_bytes
(&'t self)
crates/gpui_windows/src/directx_renderer.rs:1635
↓ 20 callers
Method
as_raw
(&self)
crates/gpui_windows/src/wrapper.rs:33
↓ 20 callers
Method
bottom_right
Returns the bottom right corner point of the bounds. # Returns A `Point<T>` representing the bottom right corner of the bounds. # Examples ``` # u
crates/gpui/src/geometry.rs:1307
↓ 20 callers
Method
file_name
(&self)
crates/util/src/paths.rs:264
↓ 20 callers
Method
first
(&self)
crates/sum_tree/src/tree_map.rs:184
↓ 20 callers
Function
get_reply
( failure_context: F, result: Result<Cookie<'_, C, O>, ConnectionError>, )
crates/gpui_linux/src/linux/x11/window.rs:373
↓ 20 callers
Method
handle_input
(&self, input: PlatformInput)
crates/gpui_linux/src/linux/x11/window.rs:1107
↓ 20 callers
Method
output
(&mut self)
crates/util/src/command.rs:125
↓ 20 callers
Method
rem_size
The size of an em for the base font of the application. Adjusting this value allows the UI to scale, just like zooming a web page.
crates/gpui/src/window.rs:2555
↓ 20 callers
Method
round
Rounds the `Pixels` value to the nearest whole number. # Returns Returns a new `Pixels` instance with the rounded value.
crates/gpui/src/geometry.rs:2683
↓ 19 callers
Method
append
(&mut self, mut other: Self, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:776
↓ 19 callers
Method
clone
(&self)
crates/gpui/src/platform/test/dispatcher.rs:95
↓ 19 callers
Method
foreground
Create a foreground executor for this scheduler
crates/scheduler/src/test_scheduler.rs:155
↓ 19 callers
Method
half
(&self)
crates/gpui/src/geometry.rs:3700
↓ 19 callers
Method
left
(&mut self, _: &Left, _: &mut Window, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:49
↓ 19 callers
Method
remove
(&self, key: &AtlasKey)
crates/gpui_metal/src/atlas.rs:62
↓ 19 callers
Method
replace_text_in_range
( &mut self, range_utf16: Option<Range<usize>>, text: &str, _window: &mut Wind
crates/gpui_examples/src/ios.rs:1109
↓ 19 callers
Method
right
Returns the right edge of the bounds. # Returns A value of type `T` representing the x-coordinate of the right edge of the bounds.
crates/gpui/src/geometry.rs:1262
↓ 19 callers
Method
success
Reports a success and adds it to this run's `Output`.
tooling/perf/src/implementation.rs:169
↓ 19 callers
Method
text_sm
Sets the text size to 'small'. [Docs](https://tailwindcss.com/docs/font-size#setting-the-font-size)
crates/gpui/src/styled.rs:513
← previous
next →
101–200 of 5,908, ranked by callers