History

Document free functions

Nate Butler committed 2 years ago

Commit c19551d1 parent cb240623 files · +4 −6Browse files

Unified · Split

3 files
  1. crates/ui/src/components/popover_menu.rs +1 −0
  2. crates/ui/src/components/right_click_menu.rs +1 −0
  3. crates/ui/src/components/stack.rs +2 −6
crates/ui/src/components/popover_menu.rs+1−0
@@ -108,6 +108,7 @@ impl<M: ManagedView> PopoverMenu<M> { · 107 unmodified lines
108108 }
109109 }
110110
111+/// Creates a [PopoverMenu]
111112 pub fn popover_menu<M: ManagedView>(id: impl Into<ElementId>) -> PopoverMenu<M> {
112113 PopoverMenu {
113114 id: id.into(),
crates/ui/src/components/right_click_menu.rs+1−0
@@ -39,6 +39,7 @@ impl<M: ManagedView> RightClickMenu<M> { · 38 unmodified lines
3939 }
4040 }
4141
42+/// Creates a [RightClickMenu]
4243 pub fn right_click_menu<M: ManagedView>(id: impl Into<ElementId>) -> RightClickMenu<M> {
4344 RightClickMenu {
4445 id: id.into(),
crates/ui/src/components/stack.rs+2−6
@@ -2,17 +2,13 @@ use gpui::{div, Div}; · 1 unmodified line
22
33 use crate::StyledExt;
44
5−/// Horizontally stacks elements.
6−///
7−/// Sets `flex()`, `flex_row()`, `items_center()`
5+/// Horizontally stacks elements. Sets `flex()`, `flex_row()`, `items_center()`
86 #[track_caller]
97 pub fn h_stack() -> Div {
108 div().h_flex()
119 }
1210
13−/// Vertically stacks elements.
14−///
15−/// Sets `flex()`, `flex_col()`
11+/// Vertically stacks elements. Sets `flex()`, `flex_col()`
1612 #[track_caller]
1713 pub fn v_stack() -> Div {
1814 div().v_flex()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t