MCPcopy Create free account

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

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

↓ 38 callersMethodfilter
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 callersFunctionget_window_state
(object: &Object)
crates/gpui_macos/src/window.rs:1909
↓ 37 callersMethodinsert
(&mut self, key: K, value: V)
crates/sum_tree/src/tree_map.rs:75
↓ 37 callersMethodpush
(&mut self, item: T, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:764
↓ 37 callersFunctionweb_init
()
crates/gpui_platform/src/gpui_platform.rs:24
↓ 36 callersFunctionlinear_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 callersMethodentry
(&mut self, key: K)
crates/collections/src/vecmap.rs:39
↓ 35 callersMethodtext_style
Returns a mutable reference to the text style that has been configured on this element.
crates/gpui/src/styled.rs:467
↓ 34 callersMethodborrow
(&self)
crates/gpui_util/src/arc_cow.rs:106
↓ 34 callersFunctionident
(s: &str)
crates/gpui/src/keymap/context.rs:818
↓ 34 callersMethodinsert
Insert an entity into a slot obtained by calling `reserve`.
crates/gpui/src/app/entity_map.rs:120
↓ 34 callersMethodon_mouse_down
( &mut self, event: &MouseDownEvent, _window: &mut Window, cx: &mut Context<Se
crates/gpui_examples/examples/input.rs:100
↓ 33 callersMethodactivate
(&self)
crates/gpui_ios/src/window.rs:506
↓ 33 callersMethodclamp
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 callersMethodfinish
(&mut self)
crates/gpui/src/scene.rs:137
↓ 33 callersMethodget_client
(&self)
crates/gpui_linux/src/linux/wayland/client.rs:297
↓ 33 callersMethodnext
(&mut self)
crates/gpui_windows/src/direct_write.rs:1392
↓ 33 callersMethodset
Set a key value pair in this context, if it's not already set.
crates/gpui/src/keymap/context.rs:126
↓ 32 callersMethodas_str
(self)
crates/gpui_windows/src/directx_renderer.rs:1754
↓ 32 callersMethodopacity
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 callersMethodupgrade
Upgrade this weak entity reference to a strong reference.
crates/gpui/src/app/entity_map.rs:593
↓ 31 callersMethodid
(&self)
crates/gpui_linux/src/linux/wayland/display.rs:27
↓ 31 callersMethodlen
The UTF-8 length of the underlying text.
crates/gpui/src/elements/text.rs:610
↓ 31 callersMethodnext
(&mut self)
crates/util/src/util.rs:822
↓ 31 callersMethodon_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 callersMethodstatus
(&mut self)
crates/util/src/command.rs:129
↓ 30 callersMethodis_empty
(&self)
crates/util/src/rel_path.rs:119
↓ 30 callersMethodto_pixels
Converts the size from physical to logical pixels.
crates/gpui/src/geometry.rs:1573
↓ 29 callersMethodon_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 callersMethodon_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 callersMethodupgrade
Convert to a strongly-typed handle if the referenced view has not yet been released.
crates/gpui/src/view.rs:267
↓ 27 callersMethodas_slice
(&self)
crates/gpui/src/bounds_tree.rs:90
↓ 27 callersMethodbuild
(self)
crates/gpui/src/path_builder.rs:244
↓ 27 callersMethodclone
(&self)
crates/util/src/arc_cow.rs:46
↓ 27 callersMethodindex
(&self)
crates/sum_tree/src/cursor.rs:14
↓ 27 callersMethoditer_mut
(&mut self)
crates/gpui/src/platform.rs:1150
↓ 27 callersMethodpath
(&self)
crates/util/src/test.rs:31
↓ 27 callersMethodscale
Scale the content mask's pixel units by the given scaling factor.
crates/gpui/src/window.rs:1742
↓ 27 callersMethodseek
(&mut self, pos: &Target, bias: Bias)
crates/sum_tree/src/cursor.rs:405
↓ 27 callersMethodweak_entity
Returns a weak handle to the entity belonging to this context.
crates/gpui/src/app/context.rs:57
↓ 26 callersMethodas_any
Type-erase Action type.
crates/gpui/src/action.rs:185
↓ 26 callersMethoddrain
(&mut self)
crates/gpui/src/platform.rs:1145
↓ 26 callersMethodscale
(mut self, scale: f32)
crates/gpui_examples/examples/text.rs:121
↓ 25 callersMethodadd_bindings
Add more bindings to the keymap.
crates/gpui/src/keymap.rs:64
↓ 25 callersMethodany
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 callersMethodcmp
(&self, other: &Self)
crates/util/src/util.rs:940
↓ 24 callersFunctionbutton
(text: &str, on_click: impl Fn(&mut Window, &mut App) + 'static)
crates/gpui_examples/examples/window.rs:14
↓ 24 callersFunctioncheck_reply
( failure_context: F, result: Result<VoidCookie<'_, C>, ConnectionError>, )
crates/gpui_linux/src/linux/x11/window.rs:358
↓ 24 callersMethodget_or_insert_with
( &self, key: &crate::AtlasKey, build: &mut dyn FnMut() -> anyhow::Result<
crates/gpui/src/platform/test/window.rs:370
↓ 24 callersFunctiongreen
The color green in [`Hsla`]
crates/gpui/src/color.rs:416
↓ 24 callersMethodsend
( &self, _req: http_client::Request<http_client::AsyncBody>, )
crates/gpui/src/app.rs:2627
↓ 23 callersFunctionassert_word
(word: &str)
crates/gpui/src/text_system/line_wrapper.rs:810
↓ 23 callersMethodbindings_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 callersMethodor_insert
(self, value: V)
crates/collections/src/vecmap.rs:113
↓ 23 callersMethodwhen
Conditionally modify self with the given closure.
crates/gpui/src/util.rs:21
↓ 22 callersMethodabs
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 callersMethoddestroy
(&mut self)
crates/gpui_linux/src/linux/wayland/window.rs:286
↓ 22 callersMethoddraw
Force a redraw of the window.
crates/gpui/src/app/test_app.rs:485
↓ 22 callersMethodextend
(&mut self, iter: I, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:746
↓ 22 callersMethoditem
(&self)
crates/sum_tree/src/cursor.rs:98
↓ 22 callersFunctionlogical_point
(x: f32, y: f32, scale_factor: f32)
crates/gpui_windows/src/util.rs:152
↓ 22 callersMethodretain
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 callersMethodstrip_prefix
(&self, base: &Self)
crates/util/src/paths.rs:280
↓ 22 callersMethodtab_index
Sets the tab index of the element associated with this handle.
crates/gpui/src/window.rs:433
↓ 22 callersMethodunwrap_oob
(self)
crates/sum_tree/src/sum_tree.rs:25
↓ 21 callersMethodalloc
(&mut self, f: impl FnOnce() -> T)
crates/gpui/src/arena.rs:113
↓ 21 callersMethodborrow
(&self)
crates/gpui/src/app.rs:83
↓ 21 callersMethodchildren
Add multiple child elements to this element.
crates/gpui/src/element.rs:170
↓ 21 callersMethoddebug_assert_paint
(&self)
crates/gpui/src/window.rs:216
↓ 21 callersFunctiondispatch_input
( state: &Mutex<IosWindowState>, input: PlatformInput, )
crates/gpui_ios/src/view.rs:182
↓ 21 callersMethodget_window
(&self, win: xproto::Window)
crates/gpui_linux/src/linux/x11/client.rs:760
↓ 21 callersMethodheight
(&self)
crates/sum_tree/src/sum_tree.rs:1317
↓ 21 callersMethodinto_any
(self)
crates/gpui/src/app/entity_map.rs:458
↓ 21 callersMethodmove_to
(&mut self, offset: usize, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:156
↓ 21 callersMethodnext
(&mut self)
crates/sum_tree/src/cursor.rs:289
↓ 21 callersMethodstart
(&mut self)
crates/gpui_macos/src/display_link.rs:59
↓ 21 callersMethodsummary
(&self)
crates/sum_tree/src/sum_tree.rs:732
↓ 21 callersMethodtimer
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 callersMethodtry_into
(self)
crates/gpui/src/window.rs:6369
↓ 20 callersMethodadd
Add an identifier to this context, if it's not already in this context.
crates/gpui/src/keymap/context.rs:117
↓ 20 callersMethodas_bytes
(&'t self)
crates/gpui_windows/src/directx_renderer.rs:1635
↓ 20 callersMethodas_raw
(&self)
crates/gpui_windows/src/wrapper.rs:33
↓ 20 callersMethodbottom_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 callersMethodfile_name
(&self)
crates/util/src/paths.rs:264
↓ 20 callersMethodfirst
(&self)
crates/sum_tree/src/tree_map.rs:184
↓ 20 callersFunctionget_reply
( failure_context: F, result: Result<Cookie<'_, C, O>, ConnectionError>, )
crates/gpui_linux/src/linux/x11/window.rs:373
↓ 20 callersMethodhandle_input
(&self, input: PlatformInput)
crates/gpui_linux/src/linux/x11/window.rs:1107
↓ 20 callersMethodoutput
(&mut self)
crates/util/src/command.rs:125
↓ 20 callersMethodrem_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 callersMethodround
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 callersMethodappend
(&mut self, mut other: Self, cx: <T::Summary as Summary>::Context<'_>)
crates/sum_tree/src/sum_tree.rs:776
↓ 19 callersMethodclone
(&self)
crates/gpui/src/platform/test/dispatcher.rs:95
↓ 19 callersMethodforeground
Create a foreground executor for this scheduler
crates/scheduler/src/test_scheduler.rs:155
↓ 19 callersMethodhalf
(&self)
crates/gpui/src/geometry.rs:3700
↓ 19 callersMethodleft
(&mut self, _: &Left, _: &mut Window, cx: &mut Context<Self>)
crates/gpui_examples/examples/input.rs:49
↓ 19 callersMethodremove
(&self, key: &AtlasKey)
crates/gpui_metal/src/atlas.rs:62
↓ 19 callersMethodreplace_text_in_range
( &mut self, range_utf16: Option<Range<usize>>, text: &str, _window: &mut Wind
crates/gpui_examples/src/ios.rs:1109
↓ 19 callersMethodright
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 callersMethodsuccess
Reports a success and adds it to this run's `Output`.
tooling/perf/src/implementation.rs:169
↓ 19 callersMethodtext_sm
Sets the text size to 'small'. [Docs](https://tailwindcss.com/docs/font-size#setting-the-font-size)
crates/gpui/src/styled.rs:513
← previousnext →101–200 of 5,908, ranked by callers