mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Merge pull request #535 from malikolivier/fix-button-documentation
This commit is contained in:
commit
8fddba0143
@ -5,7 +5,7 @@
|
||||
/// bytes). For clarity: we don't support an equivalent to the
|
||||
/// `IMGUI_USE_BGRA_PACKED_COLOR` define.
|
||||
///
|
||||
/// This used to be named `ImColor32`, but was renamed to avoid confusion with
|
||||
/// This used to be named `ImColor`, but was renamed to avoid confusion with
|
||||
/// the type with that name in the C++ API (which uses 32 bits per channel).
|
||||
///
|
||||
/// While it doesn't provide methods to access the fields, they can be accessed
|
||||
|
||||
@ -26,7 +26,6 @@ impl<'ui> Ui<'ui> {
|
||||
/// This is the equivalent of [button_with_size](Self::button_with_size)
|
||||
/// with `size` set to `[0.0, 0.0]`, which will size the button to the
|
||||
/// label's width in the current style.
|
||||
/// the current style.
|
||||
#[doc(alias = "Button")]
|
||||
pub fn button(&self, label: impl AsRef<str>) -> bool {
|
||||
self.button_with_size(label, [0.0, 0.0])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user