Victor Brekenfeld
439d5a7820
Consistently use buffer coordinates
...
- Moves `Transform` into utils::geometry
- Changes conversion from and into buffer-coordinates to take
`Transform` arguments.
- `Renderer` take `Buffer`-space damage now
- buffer_transform is taken into account everywhere
2022-01-16 20:32:17 +01:00
Victor Brekenfeld
34667b791a
utils: correctly increment ids on first call
2022-01-16 16:40:40 +01:00
Christian Meissl
9f5bf25b6b
clamp the damage rect to the destination rect
...
this fixes issues when the damage rect is greater
than the destination rect, like providing i32::Max as
the damage size
2022-01-07 19:48:43 +01:00
Victor Brekenfeld
fafbf300dc
desktop: Add missing cfg directives
2022-01-05 21:44:58 +01:00
Victor Brekenfeld
3674daf083
utils: Add macro for global ids
2022-01-04 19:06:47 +01:00
Victor Brekenfeld
5d8ac82688
geometry: Don't compute intersection for non-overlapping rects
2021-12-20 20:10:09 +01:00
Victor Brekenfeld
8022a60089
utils: documentation fixup
2021-12-17 14:47:53 +01:00
Victor Brekenfeld
7ad5edd6a3
utils: make all geometry operations saturating
2021-12-17 14:47:53 +01:00
Victor Brekenfeld
4628fc6bcc
utils: Add intersection to Rectangle
2021-12-17 14:47:53 +01:00
Victor Brekenfeld
1a7027eefc
utils: overlap support on-the-fly rect conversion
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
ee5c14e673
utils: use stable memory layout for Point/Size/Rectangle
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
2f683112a7
utils: Add min/max to Coordinate
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
95b915d429
utils: Make Coordinate public
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
37adc1174c
utils: Add Rectangle::contains_rect
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
3c7bbf65c4
utils: Add Rectangle::to_i32_* variants
2021-12-17 14:47:43 +01:00
Victor Brekenfeld
9584219ffa
swapchain: Use `UserDataMap` instead of generic parameter
2021-11-24 18:57:49 +01:00
Christian Duerr
0d2c3acdc7
Add debug assertion
2021-11-22 15:25:47 +01:00
Christian Duerr
d46be20d6e
Add SubAssign for Size
2021-11-22 15:25:47 +01:00
i509VCB
c8d56f1cf3
Move X11Source to smithay under`x11rb_event_source` feature
2021-10-17 13:46:07 -05:00
i509VCB
b07f1af494
Implement Coordinate for all numerical types ( #372 )
...
This allows Size, Point and Rectangle to be made with any numeric type
2021-08-30 22:02:00 +02:00
i509VCB
7e4eff529e
Put smithay's docs through a spell checker.
...
I noticed quite a few spelling errors, so I fixed a whole bunch of them.
2021-07-25 09:09:56 +02:00
Victor Berger
54ea0d3a74
Introduce Logical/Physical Point/Rectangle
2021-07-13 13:58:06 +02:00
Victor Berger
d5b033f5b5
move signaling to utils::signaling
2021-07-05 22:34:54 +02:00
cmeissl
e9aef7caad
rework xdg_shell ( #286 )
...
* rework xdg_shell
use distinct surface roles for xdg_toplevel and
xdg_popup using a xdg_role! macro
* fix clippy warnings in shell
* added a generic DeadResource error and...
...added a result to xdg with_pending_state
Renamed the ToplevelState to ToplevelStateSet
2021-06-15 23:32:02 +02:00
Victor Berger
9ad0edd2a3
Fix several clippy lints
2021-06-10 22:01:10 +02:00
Victor Berger
6bfe6e1f25
Fix damage handling to support multiple rectangles
2021-05-24 23:50:14 +02:00
Poly
aa2a0523bf
[Debug Trait] utils
2021-02-22 21:00:49 +01:00
Victor Brekenfeld
9fd8dd9cec
anvil: allow draw_windows to take optional output coordinates
2020-06-28 00:05:01 +02:00
Victor Berger
1b5537d537
Restore logind as a default feature
2020-04-05 20:03:09 +02:00
Ivan Molodetskikh
52d86d3abf
rectangle: derive Default
2020-01-22 07:46:40 +03:00
Colin Benner
734d2ce996
Fmt, spelling and capitalisation fixes ( #113 )
...
* Rename priviledged to privileged in backend/drm/mod.rs
* Fix a number of typos in comments
* Fix typos in string literals
* Wrap identifiers with backticks in doc comments
* Spelling and capitalisation in doc comments
* Use XWayland in comments
This seems to be the standard capitalisation, even though the executable
is called `Xwayland`.
* Use Glium instead of glium in comments
* Use DRM and API in comments
* Fix remaining occurrence of 'priviledged'
* Reformat code to appease Travis' rustfmt
2018-10-30 13:56:30 +01:00
Victor Berger
bb7d389be6
utils: fmt
2017-09-22 14:53:39 +02:00
Victor Berger
3dd559cdf1
Move Rectangle to utils module.
2017-09-22 10:54:16 +02:00