Druid: Dynamic Button Text?

Created on 24 Nov 2019  路  2Comments  路  Source: linebender/druid

Looking at the implementation of Button, it seems we either need a separate DynButton, or make the button more generic, with a default label creation functions.

enhancement widget

Most helpful comment

yea, my feeling here is that button should be more generic, and that the 'content' of a button should be one of a variety of things; a label, a shape, an image, a custom widget, etc; really anything that can draw itself differently based on the button's active state.

All 2 comments

yea, my feeling here is that button should be more generic, and that the 'content' of a button should be one of a variety of things; a label, a shape, an image, a custom widget, etc; really anything that can draw itself differently based on the button's active state.

I suppose this can be closed, now that we have Button::dynamic and the more generic WidgetExt::on_click.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psychon picture psychon  路  6Comments

MGlolenstine picture MGlolenstine  路  3Comments

cmyr picture cmyr  路  6Comments

mrandri19 picture mrandri19  路  4Comments

chris-zen picture chris-zen  路  6Comments