blob: a1fc3d824ba61fdf16a34247e38196e3c1040fad (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | #include "ui_event.hpp"
#include "ui/control.hpp"
namespace cru::ui::events
{
    Point MouseEventArgs::GetPoint(Control* control, const RectRange range) const
    {
        if (point_.has_value())
            return control->TransformPoint(control->WindowToControl(point_.value()), RectRange::Margin, range);
        return Point();
    }
}
 |