Implement AutoScrollIcon overlay for scrollable
This commit is contained in:
parent
eadd7b8e81
commit
99748b89de
9 changed files with 238 additions and 29 deletions
|
|
@ -45,6 +45,10 @@ impl text::Renderer for () {
|
|||
const ICON_FONT: Font = Font::DEFAULT;
|
||||
const CHECKMARK_ICON: char = '0';
|
||||
const ARROW_DOWN_ICON: char = '0';
|
||||
const SCROLL_UP_ICON: char = '0';
|
||||
const SCROLL_DOWN_ICON: char = '0';
|
||||
const SCROLL_LEFT_ICON: char = '0';
|
||||
const SCROLL_RIGHT_ICON: char = '0';
|
||||
const ICED_LOGO: char = '0';
|
||||
|
||||
fn default_font(&self) -> Self::Font {
|
||||
|
|
|
|||
|
|
@ -312,6 +312,26 @@ pub trait Renderer: crate::Renderer {
|
|||
/// [`ICON_FONT`]: Self::ICON_FONT
|
||||
const ARROW_DOWN_ICON: char;
|
||||
|
||||
/// The `char` representing a ^ icon in the built-in [`ICON_FONT`].
|
||||
///
|
||||
/// [`ICON_FONT`]: Self::ICON_FONT
|
||||
const SCROLL_UP_ICON: char;
|
||||
|
||||
/// The `char` representing a v icon in the built-in [`ICON_FONT`].
|
||||
///
|
||||
/// [`ICON_FONT`]: Self::ICON_FONT
|
||||
const SCROLL_DOWN_ICON: char;
|
||||
|
||||
/// The `char` representing a < icon in the built-in [`ICON_FONT`].
|
||||
///
|
||||
/// [`ICON_FONT`]: Self::ICON_FONT
|
||||
const SCROLL_LEFT_ICON: char;
|
||||
|
||||
/// The `char` representing a > icon in the built-in [`ICON_FONT`].
|
||||
///
|
||||
/// [`ICON_FONT`]: Self::ICON_FONT
|
||||
const SCROLL_RIGHT_ICON: char;
|
||||
|
||||
/// The 'char' representing the iced logo in the built-in ['ICON_FONT'].
|
||||
///
|
||||
/// ['ICON_FONT']: Self::ICON_FONT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue