@@ -79,6 +79,7 @@ enum widget_type {
7979 WIDGET_VBOX ,
8080 WIDGET_HBOX ,
8181 WIDGET_TOOLTIP ,
82+ WIDGET_LIST_VBOX ,
8283 WIDGET_SELECT ,
8384 WIDGET_SELECT_OPT ,
8485 WIDGET_SPINBOX ,
@@ -117,8 +118,10 @@ enum widget_property {
117118struct widget_border ;
118119struct widget_button ;
119120struct widget_checkbox ;
121+ struct widget_hscroll ;
120122struct widget_input ;
121123struct widget_label ;
124+ struct widget_list_vbox ;
122125struct widget_meter ;
123126struct widget_pad_box ;
124127struct widget_select ;
@@ -127,7 +130,6 @@ struct widget_svbox;
127130struct widget_textview ;
128131struct widget_tooltip ;
129132struct widget_vscroll ;
130- struct widget_hscroll ;
131133
132134enum widget_flags {
133135 FLAG_NONE = 0 , // Nothing has been set
@@ -216,20 +218,21 @@ struct widget {
216218
217219 /* Widget-specific state */
218220 union {
219- struct widget_border * border ;
220- struct widget_button * button ;
221- struct widget_checkbox * checkbox ;
222- struct widget_input * input ;
223- struct widget_label * label ;
224- struct widget_meter * meter ;
225- struct widget_pad_box * pad_box ;
226- struct widget_select * select ;
227- struct widget_spinbox * spinbox ;
228- struct widget_svbox * svbox ;
229- struct widget_textview * textview ;
230- struct widget_tooltip * tooltip ;
231- struct widget_vscroll * vscroll ;
232- struct widget_hscroll * hscroll ;
221+ struct widget_border * border ;
222+ struct widget_button * button ;
223+ struct widget_checkbox * checkbox ;
224+ struct widget_hscroll * hscroll ;
225+ struct widget_input * input ;
226+ struct widget_label * label ;
227+ struct widget_list_vbox * list_vbox ;
228+ struct widget_meter * meter ;
229+ struct widget_pad_box * pad_box ;
230+ struct widget_select * select ;
231+ struct widget_spinbox * spinbox ;
232+ struct widget_svbox * svbox ;
233+ struct widget_textview * textview ;
234+ struct widget_tooltip * tooltip ;
235+ struct widget_vscroll * vscroll ;
233236 } state ;
234237
235238 /*
@@ -292,10 +295,10 @@ struct widget *make_input_password(const wchar_t *initdata, const wchar_t *place
292295struct widget * make_meter (int total );
293296struct widget * make_tooltip (const wchar_t * line );
294297struct widget * make_spinbox (int min , int max , int step , int initial , int width );
298+ struct widget * make_list_vbox (int view_rows );
295299
296300struct widget * make_select (int max_selected , int view_rows );
297- bool make_select_option (struct widget * select , const wchar_t * item );
298- struct widget * make_select_opt (const wchar_t * text , bool checked , bool is_radio );
301+ struct widget * make_select_option (const wchar_t * text , bool checked , bool is_radio );
299302
300303struct widget * make_border (void );
301304struct widget * make_border_vbox (struct widget * parent );
0 commit comments