From 844533445087e0aa18247701002d08df446fbffb Mon Sep 17 00:00:00 2001 From: t4ccer Date: Tue, 12 Nov 2024 19:44:52 -0700 Subject: [PATCH] Change return type of `column_user_id` to `Id` This matches the type of `TableColumnSetup.user_id` --- imgui/src/tables.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui/src/tables.rs b/imgui/src/tables.rs index 6eb8c3b..756c7bb 100644 --- a/imgui/src/tables.rs +++ b/imgui/src/tables.rs @@ -848,8 +848,8 @@ impl<'a> Specs<'a> { pub struct TableColumnSortSpecs<'a>(&'a sys::ImGuiTableColumnSortSpecs); impl<'a> TableColumnSortSpecs<'a> { /// User id of the column (if specified by a TableSetupColumn() call) - pub fn column_user_id(&self) -> sys::ImGuiID { - self.0.ColumnUserID + pub fn column_user_id(&self) -> Id { + Id(self.0.ColumnUserID) } /// Index of the column