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