99
1010
1111class ScreensInfo (TypedDict ):
12+ """
13+ Container class to handle ScreensInfo struct:
14+
15+ - screen_number (str): int (sequential)
16+ - is_default (bool): ''True'' if the screen is the default screen
17+ - screen (Xlib.Struct): screen Struct (see Xlib documentation)
18+ - root (Xlib.xobject.drawable.Window): root X-Window object belonging to screen
19+ """
1220 screen_number : str
1321 is_default : bool
1422 screen : Struct
1523 root : XWindow
1624
1725
1826class DisplaysInfo (TypedDict ):
27+ """
28+ Container class to handle DisplaysInfo struct:
29+
30+ - name: Display name (as per Xlib.display.Display(name))
31+ - is_default: ''True'' if the display is the default display
32+ - screens: list of ScreensInfo structs belonging to display
33+ """
1934 name : str
2035 is_default : bool
2136 screens : List [ScreensInfo ]
@@ -25,7 +40,22 @@ class DisplaysInfo(TypedDict):
2540Perhaps unnecesary since structs below are defined in Xlib.xobject.icccm.*, though in a more complex way.
2641"""
2742class WmHints (TypedDict ):
28- # {'flags': 103, 'input': 1, 'initial_state': 1, 'icon_pixmap': <Pixmap 0x02a22304>, 'icon_window': <Window 0x00000000>, 'icon_x': 0, 'icon_y': 0, 'icon_mask': <Pixmap 0x02a2230b>, 'window_group': <Window 0x02a00001>}
43+ """
44+ Container class to handle WmHints struct:
45+
46+ Example:
47+ {
48+ 'flags': 103,
49+ 'input': 1,
50+ 'initial_state': 1,
51+ 'icon_pixmap': <Pixmap 0x02a22304>,
52+ 'icon_window': <Window 0x00000000>,
53+ 'icon_x': 0,
54+ 'icon_y': 0,
55+ 'icon_mask': <Pixmap 0x02a2230b>,
56+ 'window_group': <Window 0x02a00001>
57+ }
58+ """
2959 flags : int
3060 input_mode : int
3161 initial_state : int
@@ -38,12 +68,31 @@ class WmHints(TypedDict):
3868
3969
4070class Aspect (TypedDict ):
71+ """Container class to handle Aspect struct (num, denum)"""
4172 num : int
4273 denum : int
4374
4475
4576class WmNormalHints (TypedDict ):
46- # {'flags': 848, 'min_width': 387, 'min_height': 145, 'max_width': 0, 'max_height': 0, 'width_inc': 9, 'height_inc': 18, 'min_aspect': <class 'Xlib.protocol.rq.DictWrapper'>({'num': 0, 'denum': 0}), 'max_aspect': <class 'Xlib.protocol.rq.DictWrapper'>({'num': 0, 'denum': 0}), 'base_width': 66, 'base_height': 101, 'win_gravity': 1}
77+ """
78+ Container class to handle WmNormalHints
79+
80+ Example:
81+ {
82+ 'flags': 848,
83+ 'min_width': 387,
84+ 'min_height': 145,
85+ 'max_width': 0,
86+ 'max_height': 0,
87+ 'width_inc': 9,
88+ 'height_inc': 18,
89+ 'min_aspect': <class 'Xlib.protocol.rq.DictWrapper'>({'num': 0, 'denum': 0}),
90+ 'max_aspect': <class 'Xlib.protocol.rq.DictWrapper'>({'num': 0, 'denum': 0}),
91+ 'base_width': 66,
92+ 'base_height': 101,
93+ 'win_gravity': 1
94+ }
95+ """
4796 flags : int
4897 min_width : int
4998 min_height : int
0 commit comments