diff --git a/imgui/src/widget/combo_box.rs b/imgui/src/widget/combo_box.rs index 3d37859..56984ec 100644 --- a/imgui/src/widget/combo_box.rs +++ b/imgui/src/widget/combo_box.rs @@ -169,13 +169,13 @@ create_token!( impl<'ui> Ui<'ui> { /// Creates a combo box which can be appended to with `Selectable::new`. /// - /// If you do not want to provide a preview, use [begin_combo_no_preview]. If you want - /// to pass flags, use [begin_combo_with_flags]. - /// - /// Returns `Some(ComboBoxToken)` if the combo box is open. After content has been - /// rendered, the token must be ended by calling `.end()`. + /// If you do not want to provide a preview, use [`begin_combo_no_preview`]. If you want + /// to pass flags, use [`begin_combo_with_flags`]. /// /// Returns `None` if the combo box is not open and no content should be rendered. + /// + /// [`begin_combo_no_preview`]: Ui::begin_combo_no_preview + /// [`begin_combo_with_flags`]: Ui::begin_combo_with_flags #[must_use] #[doc(alias = "BeginCombo")] pub fn begin_combo( @@ -193,6 +193,8 @@ impl<'ui> Ui<'ui> { /// rendered, the token must be ended by calling `.end()`. /// /// Returns `None` if the combo box is not open and no content should be rendered. + /// + /// [begin_combo_no_preview]: Ui::begin_combo_no_preview #[must_use] #[doc(alias = "BeginCombo")] pub fn begin_combo_with_flags( @@ -213,6 +215,9 @@ impl<'ui> Ui<'ui> { /// rendered, the token must be ended by calling `.end()`. /// /// Returns `None` if the combo box is not open and no content should be rendered. + /// + /// [begin_combo]: Ui::begin_combo + /// [begin_combo_no_preview_with_flags]: Ui::begin_combo_no_preview_with_flags #[must_use] #[doc(alias = "BeginCombo")] pub fn begin_combo_no_preview(&self, label: impl AsRef) -> Option> { @@ -226,6 +231,8 @@ impl<'ui> Ui<'ui> { /// rendered, the token must be ended by calling `.end()`. /// /// Returns `None` if the combo box is not open and no content should be rendered. + /// + /// [begin_combo_no_preview]: Ui::begin_combo_no_preview #[must_use] #[doc(alias = "BeginCombo")] pub fn begin_combo_no_preview_with_flags( diff --git a/imgui/src/widget/tab.rs b/imgui/src/widget/tab.rs index 5719443..95eaddb 100644 --- a/imgui/src/widget/tab.rs +++ b/imgui/src/widget/tab.rs @@ -169,7 +169,7 @@ create_token!( impl Ui<'_> { /// Creates a tab bar and returns a tab bar token, allowing you to append /// Tab items afterwards. This passes no flags. To pass flags explicitly, - /// use [tab_bar_with_flags]. + /// use [tab_bar_with_flags](Self::tab_bar_with_flags). pub fn tab_bar(&self, id: impl AsRef) -> Option> { self.tab_bar_with_flags(id, TabBarFlags::empty()) } @@ -195,7 +195,10 @@ impl Ui<'_> { /// Creates a new tab item and returns a token if its contents are visible. /// /// By default, this doesn't pass an opened bool nor any flags. See [tab_item_with_opened] - /// and `[tab_item_with_flags]` for more. + /// and [tab_item_with_flags] for more. + /// + /// [tab_item_with_opened]: Self::tab_item_with_opened + /// [tab_item_with_flags]: Self::tab_item_with_flags pub fn tab_item(&self, label: impl AsRef) -> Option> { self.tab_item_with_flags(label, None, TabItemFlags::empty()) }