gpuikit 0.7.0

A UI toolkit for GPUI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Indicates what kind of visual focus style an element should use
///
/// - Ring: A focus ring is drawn around the element
/// - Highlight: Element is highlighted (e.g. background color change)
pub enum FocusStyle {
    Ring,
    Highlight,
}

// A trait for elements that can receive visual focus
// usually denoted by a focus ring or highlight
pub trait VisualFocus: gpui::Focusable {
    fn focus_style(&self) -> FocusStyle;
}