Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add side-specific outer gap information #143

Merged
merged 1 commit into from
Jan 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions i3ipc/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,20 @@ class Gaps:
:vartype inner: int
:ivar outer: The outer gaps.
:vartype outer: int
:ivar left: The left outer gaps.
:vartype left: int or :class:`None` if not supported.
:ivar right: The right outer gaps.
:vartype right: int or :class:`None` if not supported.
:ivar top: The top outer gaps.
:vartype top: int or :class:`None` if not supported.
:ivar bottom: The bottom outer gaps.
:vartype bottom: int or :class:`None` if not supported.
"""

def __init__(self, data):
self.inner = data['inner']
self.outer = data['outer']
self.left = data.get('left', None)
self.right = data.get('right', None)
self.top = data.get('top', None)
self.bottom = data.get('bottom', None)