add function maintainAspectRatioOfInteriorContent to BrowserWindow in order to enforce an aspect ratio for an electron window
This commit is contained in:
parent
ca2cb9c9ba
commit
666aca7803
5 changed files with 53 additions and 0 deletions
|
@ -95,6 +95,7 @@ class Window : public mate::TrackableObject<Window>,
|
|||
bool IsMinimized();
|
||||
void SetFullScreen(bool fullscreen);
|
||||
bool IsFullscreen();
|
||||
void MaintainAspectRatioOfInteriorContent(double aspectRatio, double extraWidth, double extraHeight);
|
||||
void SetBounds(const gfx::Rect& bounds);
|
||||
gfx::Rect GetBounds();
|
||||
void SetSize(int width, int height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue