pyloid 0.14.6__tar.gz → 0.14.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyloid
3
- Version: 0.14.6
3
+ Version: 0.14.8
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.14.6"
3
+ version = "0.14.8"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -699,6 +699,30 @@ class BrowserWindow:
699
699
  else:
700
700
  self._window.showMaximized()
701
701
 
702
+ def is_fullscreen(self) -> bool:
703
+ """
704
+ Returns True if the window is fullscreen.
705
+
706
+ Examples
707
+ --------
708
+ >>> app = Pyloid(app_name="Pyloid-App")
709
+ >>> window = app.create_window("pyloid-window")
710
+ >>> window.is_fullscreen()
711
+ """
712
+ return self._window.isFullScreen()
713
+
714
+ def is_maximized(self) -> bool:
715
+ """
716
+ Returns True if the window is maximized.
717
+
718
+ Examples
719
+ --------
720
+ >>> app = Pyloid(app_name="Pyloid-App")
721
+ >>> window = app.create_window("pyloid-window")
722
+ >>> window.is_maximized()
723
+ """
724
+ return self._window.isMaximized()
725
+
702
726
  def capture(self, save_path: str) -> Optional[str]:
703
727
  """
704
728
  Captures the current window.
@@ -97,6 +97,18 @@ class WindowAPI(PyloidAPI):
97
97
  if window:
98
98
  window.toggle_maximize()
99
99
 
100
+ @Bridge(result=bool)
101
+ def isFullscreen(self):
102
+ """Returns True if the window is fullscreen."""
103
+ window = self.app.get_window_by_id(self.window_id)
104
+ return window.is_fullscreen()
105
+
106
+ @Bridge(result=bool)
107
+ def isMaximized(self):
108
+ """Returns True if the window is maximized."""
109
+ window = self.app.get_window_by_id(self.window_id)
110
+ return window.is_maximized()
111
+
100
112
  @Bridge(str)
101
113
  def setTitle(self, title: str):
102
114
  """Sets the title of the window."""
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes