mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Add messages for IPlugViewContentScaleSupport
This commit is contained in:
@@ -62,6 +62,25 @@ class YaPlugViewContentScaleSupport
|
||||
|
||||
inline bool supported() const { return arguments.supported; }
|
||||
|
||||
/**
|
||||
* Message to pass through a call to
|
||||
* `IPlugViewContentScaleSupport::setContentScaleFactor(factor)` to the Wine
|
||||
* plugin host.
|
||||
*/
|
||||
struct SetContentScaleFactor {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t owner_instance_id;
|
||||
|
||||
ScaleFactor factor;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
s.value4b(factor);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
setContentScaleFactor(ScaleFactor factor) override = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user