mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
UWP: better mouse interaction support
This commit is contained in:
parent
f78ca5794a
commit
f2f8223cf1
9 changed files with 101 additions and 14 deletions
|
@ -47,13 +47,22 @@ public:
|
|||
~Servo();
|
||||
ServoDelegate &Delegate() { return mDelegate; }
|
||||
|
||||
typedef capi::CMouseButton MouseButton;
|
||||
|
||||
void PerformUpdates() { capi::perform_updates(); }
|
||||
void DeInit() { capi::deinit(); }
|
||||
void RequestShutdown() { capi::request_shutdown(); }
|
||||
void SetBatchMode(bool mode) { capi::set_batch_mode(mode); }
|
||||
void GoForward() { capi::go_forward(); }
|
||||
void GoBack() { capi::go_back(); }
|
||||
void Click(float x, float y) { capi::click((int32_t)x, (int32_t)y); }
|
||||
void Click(float x, float y) { capi::click(x, y); }
|
||||
void MouseDown(float x, float y, capi::CMouseButton b) {
|
||||
capi::mouse_down(x, y, b);
|
||||
}
|
||||
void MouseUp(float x, float y, capi::CMouseButton b) {
|
||||
capi::mouse_up(x, y, b);
|
||||
}
|
||||
|
||||
void Reload() { capi::reload(); }
|
||||
void Stop() { capi::stop(); }
|
||||
void LoadUri(hstring uri) { capi::load_uri(*hstring2char(uri)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue