src/widgets/dropdown_type.h
changeset 10009 41d822dd3350
parent 9869 548d99e11ad7
equal deleted inserted replaced
10008:fca6f9cf02ac 10009:41d822dd3350
    68  *                 closed.
    68  *                 closed.
    69  * @param selected The initially selected list item.
    69  * @param selected The initially selected list item.
    70  * @param button   The widget within the parent window that is used to determine
    70  * @param button   The widget within the parent window that is used to determine
    71  *                 the list's location.
    71  *                 the list's location.
    72  * @param width    Override the width determined by the selected widget.
    72  * @param width    Override the width determined by the selected widget.
    73  *                 If UINT_MAX then the width is determined by the widest item
    73  * @param auto_width Maximum width is determined by the widest item in the list.
    74  *                 in the list.
       
    75  * @param instant_close Set to true if releasing mouse button should close the
    74  * @param instant_close Set to true if releasing mouse button should close the
    76  *                      list regardless of where the cursor is.
    75  *                      list regardless of where the cursor is.
    77  */
    76  */
    78 void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool instant_close = false);
    77 void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool auto_width = false, bool instant_close = false);
    79 
    78 
    80 #endif /* WIDGETS_DROPDOWN_TYPE_H */
    79 #endif /* WIDGETS_DROPDOWN_TYPE_H */