Clement Rey
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
crates/egui/src/widgets/plot/mod.rs
|
@ -1055,6 +1055,11 @@ impl PlotUi { |
|
|
self.response.clicked() |
|
|
self.response.clicked() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Returns `true` if the plot was clicked by the secondary button.
|
|
|
|
|
|
pub fn plot_secondary_clicked(&self) -> bool { |
|
|
|
|
|
self.response.secondary_clicked() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// The pointer position in plot coordinates. Independent of whether the pointer is in the plot area.
|
|
|
/// The pointer position in plot coordinates. Independent of whether the pointer is in the plot area.
|
|
|
pub fn pointer_coordinate(&self) -> Option<PlotPoint> { |
|
|
pub fn pointer_coordinate(&self) -> Option<PlotPoint> { |
|
|
// We need to subtract the drag delta to keep in sync with the frame-delayed screen transform:
|
|
|
// We need to subtract the drag delta to keep in sync with the frame-delayed screen transform:
|
|
|