mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
parent
a0dd643d83
commit
83ccd07a88
3 changed files with 22 additions and 0 deletions
|
@ -496,6 +496,10 @@ public:
|
|||
/// a window frame (if present).
|
||||
void set_size(const slint::PhysicalSize &size) { inner.set_physical_size(size); }
|
||||
|
||||
/// This function returns the scale factor that allows converting between logical and
|
||||
/// physical pixels.
|
||||
float scale_factor() const { return inner.scale_factor(); }
|
||||
|
||||
/// Dispatch a key press event to the scene.
|
||||
///
|
||||
/// Use this when you're implementing your own backend and want to forward user input events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue