ferroui_controls/pixel_point_event_args.rs
1use ferroui_base::PixelPoint;
2
3/// Provides [`PixelPoint`] data for events.
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub struct PixelPointEventArgs {
6 point: PixelPoint,
7}
8
9impl PixelPointEventArgs {
10 /// Creates the event args.
11 pub fn new(point: PixelPoint) -> Self {
12 Self { point }
13 }
14
15 /// Gets the [`PixelPoint`] data.
16 pub fn point(&self) -> PixelPoint {
17 self.point
18 }
19}