File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
9
9
### Added
10
10
11
11
- ` ProgressBar ` control for tracking the completion of a task
12
+ - ` Combobox::selected() ` method to retrieve the currently selected index of the combobox
12
13
13
14
### Changed
14
15
Original file line number Diff line number Diff line change @@ -227,6 +227,11 @@ impl Combobox {
227
227
}
228
228
}
229
229
230
+ /// Returns the index of the currently selected option.
231
+ pub fn selected ( & self , _ctx : & UI ) -> i32 {
232
+ unsafe { ui_sys:: uiComboboxSelected ( self . uiCombobox ) }
233
+ }
234
+
230
235
pub fn set_selected ( & mut self , _ctx : & UI , value : i32 ) {
231
236
unsafe { ui_sys:: uiComboboxSetSelected ( self . uiCombobox , value) }
232
237
}
You can’t perform that action at this time.
0 commit comments