Skip to main content

ButtonOwner

Type Alias ButtonOwner 

Source
pub type ButtonOwner = MenuOwner;
Expand description

The node a non-primary button’s press went to and whose capture it is until the release: the nearest node at or above the region pressed whose on_button claims that button. The same three fields as MenuOwner, resolved by the core at the press rather than carried on every region — a middle press is one event in a session, and a tag on HitRegion would be a clone on every region of every frame.

Aliased Type§

pub struct ButtonOwner {
    pub key: Key,
    pub origin: OriginId,
    pub tag: Value,
}

Fields§

§key: Key§origin: OriginId§tag: Value