1
0
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:
Emil Ernerfeldt
2023-04-23 17:24:06 +02:00
parent 52657301c9
commit 92d93cb24a
3 changed files with 69 additions and 18 deletions

View File

@@ -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;
}

View File

@@ -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) {