mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Drag tab names
This commit is contained in:
@@ -895,7 +895,7 @@ impl PointerState {
|
||||
|
||||
/// If the pointer button is down, will it register as a click when released?
|
||||
#[inline(always)]
|
||||
pub(crate) fn could_any_button_be_click(&self) -> bool {
|
||||
pub fn could_any_button_be_click(&self) -> bool {
|
||||
if !self.any_down() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -477,6 +477,11 @@ impl Memory {
|
||||
self.interaction.drag_id = Some(id);
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn stop_dragging(&mut self) {
|
||||
self.interaction.drag_id = None;
|
||||
}
|
||||
|
||||
/// Forget window positions, sizes etc.
|
||||
/// Can be used to auto-layout windows.
|
||||
pub fn reset_areas(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user