MCPcopy Create free account

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

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

↓ 19 callersMethodto_str
(&self)
crates/gpui_macos/src/lib.rs:69
↓ 19 callersMethodwith_common
(&self, f: impl FnOnce(&mut LinuxCommon) -> R)
crates/gpui_linux/src/linux/x11/client.rs:1517
↓ 19 callersMethodwrite
Updates the entity referenced by this handle with the given function.
crates/gpui/src/app/entity_map.rs:491
↓ 19 callersMethodwrite
(&self, item: ClipboardItem)
crates/gpui_macos/src/pasteboard.rs:165
↓ 18 callersMethodas_bytes
Convert this image into a byte slice.
crates/gpui/src/assets.rs:79
↓ 18 callersMethodbounds
(&self)
crates/gpui_ios/src/window.rs:417
↓ 18 callersMethodcenter
Compute the center point of the size.g
crates/gpui/src/geometry.rs:470
↓ 18 callersFunctionfill
Creates a filled quad with the given bounds and background color.
crates/gpui/src/window.rs:6546
↓ 18 callersMethodhandle_input
(&self, input: PlatformInput)
crates/gpui_linux/src/linux/wayland/window.rs:997
↓ 18 callersMethodis_empty
(&self)
crates/gpui/src/queue.rs:19
↓ 18 callersMethoditer
(&self)
crates/sum_tree/src/tree_map.rs:176
↓ 18 callersFunctionlinear_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 callersMethodnext_id
(&mut self)
crates/gpui_examples/examples/text.rs:246
↓ 18 callersMethodparse
Parses a GNOME-style `button-layout` string (e.g. `"close,minimize:maximize"`).
crates/gpui/src/platform.rs:476
↓ 18 callersMethodrefresh
Schedules all windows to be redrawn on the next effect cycle.
crates/gpui/src/app/test_context.rs:180
↓ 18 callersMethodregister
( &mut self, poll: &mut calloop::Poll, token_factory: &mut calloop::TokenFactory,
crates/gpui_linux/src/linux/dispatcher.rs:320
↓ 18 callersMethodsize
Get the size of this image, in pixels.
crates/gpui/src/assets.rs:86
↓ 18 callersMethodspawn
(&self, future: F)
crates/scheduler/src/executor.rs:40
↓ 18 callersMethodto_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 callersMethodto_str
(&self)
crates/util/src/paths.rs:284
↓ 18 callersMethodtruncate
(&mut self, index: usize)
crates/gpui/src/key_dispatch.rs:314
↓ 18 callersMethodweight
Returns the relative probability weight for this priority level. Used by schedulers to determine task selection probability.
crates/scheduler/src/scheduler.rs:46
↓ 17 callersMethodclear
(&mut self)
crates/gpui/src/arena.rs:102
↓ 17 callersMethodcomponents
(&self)
crates/util/src/rel_path.rs:123
↓ 17 callersMethodcontains
Check if this context contains a given identifier or key.
crates/gpui/src/keymap/context.rs:137
↓ 17 callersMethodfocus
Moves the focus to the element associated with this handle.
crates/gpui/src/window.rs:461
↓ 17 callersMethodis_empty
Returns true if the cache is empty.
crates/gpui/src/elements/image_cache.rs:313
↓ 17 callersFunctionperform_test
( wrapper: &mut LineWrapper, text: &'static str, expected: &'static str,
crates/gpui/src/text_system/line_wrapper.rs:554
↓ 17 callersFunctionrel_path
(path: &str)
crates/util/src/rel_path.rs:377
↓ 17 callersMethodresources
(&self)
crates/gpui_wgpu/src/wgpu_renderer.rs:152
↓ 17 callersFunctionrun_ios_app
( launch: &AppLauncher, build_view: impl FnOnce(&mut Window, &mut Context<V>) -> V + 'static, )
crates/gpui_examples/src/ios.rs:103
↓ 17 callersMethodsafe_area_insets
(&self)
crates/gpui_ios/src/window.rs:433
↓ 17 callersMethodscale_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 callersMethodset_global
Sets the value of the global of the given type.
crates/gpui/src/app.rs:1751
↓ 17 callersMethodwidth
The width of this line, in pixels, whether or not it was wrapped.
crates/gpui/src/text_system/line_layout.rs:240
↓ 16 callersMethodbytes
Get the raw bytes of the clipboard image
crates/gpui/src/platform.rs:2494
↓ 16 callersMethodlen_utf8
(&self)
crates/gpui/src/text_system/line_wrapper.rs:358
↓ 16 callersMethodlogical_scroll_top
Get the current scroll offset, in terms of the list's items.
crates/gpui/src/elements/list.rs:453
↓ 16 callersMethodpush
(&mut self, index: usize)
crates/gpui/src/bounds_tree.rs:80
↓ 16 callersMethodscheduler
(&self)
crates/gpui/src/platform/test/dispatcher.rs:43
↓ 16 callersMethodsplit
(&self, input: &str)
crates/util/src/shell.rs:735
↓ 16 callersMethodsummary
(&self, _: ())
crates/gpui/src/elements/list.rs:1371
↓ 16 callersMethodtext_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 callersMethodupdate
Gives you an `&mut App` for the duration of the closure
crates/gpui/src/app/test_context.rs:203
↓ 15 callersMethodapp
(&self)
crates/gpui/src/app/async_context.rs:29
↓ 15 callersMethodceil
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 callersMethodcolor_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 callersFunctionget_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 callersFunctionhash
Use a quick, non-cryptographically secure hash function to get an identifier from data
crates/gpui/src/asset_cache.rs:80
↓ 15 callersMethodis_empty
(&self)
crates/sum_tree/src/tree_map.rs:52
↓ 15 callersMethodleft
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 callersMethodrefresh
Mark the window as dirty, scheduling it to be redrawn on the next frame.
crates/gpui/src/window.rs:1833
↓ 15 callersFunctionsum
(iter: I, cx: T::Context<'_>)
crates/sum_tree/src/sum_tree.rs:1377
↓ 15 callersMethodto_path_buf
(&self)
crates/util/src/paths.rs:288
↓ 15 callersMethodtrack_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 callersMethodbind_keys
Register key bindings.
crates/gpui/src/app.rs:1931
↓ 14 callersMethodclone
(&self)
crates/gpui/src/subscription.rs:14
↓ 14 callersMethodclone
(&self)
crates/gpui/src/platform/app_menu.rs:281
↓ 14 callersMethodcurrent_view
Get the entity ID for the currently rendering view
crates/gpui/src/window.rs:4513
↓ 14 callersMethoddebug_assert_prepaint
(&self)
crates/gpui/src/window.rs:224
↓ 14 callersMethodflush
(&self)
crates/gpui_web/src/logging.rs:31
↓ 14 callersMethodhover
(&mut self, id: InspectorElementId, window: &mut Window)
crates/gpui/src/inspector.rs:92
↓ 14 callersFunctionimg
(source: impl Into<ImageSource>)
crates/gpui/src/elements/img.rs:200
↓ 14 callersFunctionload
( image_cache: &AnyEntity, resource: &Resource, window: &mut Window, cx: &mut
crates/gpui/src/elements/image_cache.rs:60
↓ 14 callersMethodpaint_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 callersMethodpath
Set the path to the SVG file for this element.
crates/gpui/src/elements/svg.rs:31
↓ 14 callersMethodprev
(&mut self)
crates/sum_tree/src/cursor.rs:214
↓ 14 callersMethodread_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 callersMethodslice
(&mut self, end: &Target, bias: Bias)
crates/sum_tree/src/cursor.rs:428
↓ 14 callersMethodupdate_window
Updates a window.
crates/gpui/src/app/visual_test_context.rs:176
↓ 13 callersMethodadd_summary
(&mut self, summary: &Self)
crates/sum_tree/src/tree_map.rs:284
↓ 13 callersMethodas_str
Get a &str from the underlying string.
crates/gpui/src/shared_string.rs:28
↓ 13 callersMethodcontent_mask
Obtain the current content mask. This method should only be called during element drawing.
crates/gpui/src/window.rs:3651
↓ 13 callersMethoddefer
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 callersMethoddispatch_input
(&self, input: PlatformInput)
crates/gpui_web/src/events.rs:127
↓ 13 callersFunctionget_window
( state: &mut RefMut<WaylandClientState>, surface_id: &ObjectId, )
crates/gpui_linux/src/linux/wayland/client.rs:1104
↓ 13 callersFunctionhsla
Construct an [`Hsla`] object from plain values
crates/gpui/src/color.rs:336
↓ 13 callersMethodid
Returns a stable element ID for rendering this button.
crates/gpui/src/platform.rs:428
↓ 13 callersMethodjustify_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 callersMethodlayout_as_root
( &mut self, available_space: Size<AvailableSpace>, window: &mut Window, cx: &
crates/gpui/src/element.rs:504
↓ 13 callersFunctionlist
Construct a new list element
crates/gpui/src/elements/list.rs:24
↓ 13 callersMethodload
Load a keybinding from the given raw data.
crates/gpui/src/keymap/binding.rs:48
↓ 13 callersMethodmetadata
(&self)
crates/gpui_macos/src/screen_capture.rs:53
↓ 13 callersMethodnew
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 callersMethodtab_group
(mut self, tab_index: isize, children: impl FnOnce(Self) -> Self)
crates/gpui/src/tab_stop.rs:467
↓ 13 callersMethodtext_style
Get the text style in this element style.
crates/gpui/src/style.rs:585
↓ 12 callersMethodadd_empty_window
Adds a new window with no content.
crates/gpui/src/app/test_context.rs:263
↓ 12 callersFunctionadd_task_timing
(timing: TaskTiming)
crates/gpui/src/profiler.rs:349
↓ 12 callersMethodas_ref
(&self)
crates/util/src/rel_path.rs:343
↓ 12 callersMethodas_test
(&self)
crates/gpui/src/platform_scheduler.rs:135
↓ 12 callersFunctionbuild
()
crates/gpui/build.rs:28
↓ 12 callersMethodclear
(&mut self, cx: &mut Context<Self>)
crates/gpui_examples/examples/painting.rs:303
↓ 12 callersFunctioncurrent_modifiers
()
crates/gpui_windows/src/events.rs:1552
↓ 12 callersFunctioncvt_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 callersMethoddebug_assert_paint_or_prepaint
(&self)
crates/gpui/src/window.rs:232
↓ 12 callersFunctionensure_success
(status: ExitStatus, context: &str)
tooling/cargo-gpui/src/ios.rs:487
↓ 12 callersMethodentry_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 callersMethodfind
A more efficient version of `Cursor::new()` + `Cursor::seek()` + `Cursor::item()`
crates/sum_tree/src/sum_tree.rs:423
↓ 12 callersMethodflex_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 callersMethodgrid_location_mut
The grid location of this element
crates/gpui/src/style.rs:328
← previousnext →201–300 of 5,908, ranked by callers