Add interactable fold markers
Change fold handlers to be driven by the fold map Switch to a mouse region based implementation for click regions Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
7ca0b38048
commit
606d683f29
8 changed files with 140 additions and 42 deletions
|
@ -4159,10 +4159,10 @@ pub struct RenderContext<'a, T: View> {
|
|||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct MouseState {
|
||||
hovered: bool,
|
||||
clicked: Option<MouseButton>,
|
||||
accessed_hovered: bool,
|
||||
accessed_clicked: bool,
|
||||
pub(crate) hovered: bool,
|
||||
pub(crate) clicked: Option<MouseButton>,
|
||||
pub(crate) accessed_hovered: bool,
|
||||
pub(crate) accessed_clicked: bool,
|
||||
}
|
||||
|
||||
impl MouseState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue