Merge branch 'master' into explicit-text-caching
This commit is contained in:
commit
b8e5693a30
178 changed files with 1768 additions and 1388 deletions
|
|
@ -1151,6 +1151,16 @@ impl Viewport {
|
|||
|
||||
RelativeOffset { x, y }
|
||||
}
|
||||
|
||||
/// Returns the bounds of the current [`Viewport`].
|
||||
pub fn bounds(&self) -> Rectangle {
|
||||
self.bounds
|
||||
}
|
||||
|
||||
/// Returns the content bounds of the current [`Viewport`].
|
||||
pub fn content_bounds(&self) -> Rectangle {
|
||||
self.content_bounds
|
||||
}
|
||||
}
|
||||
|
||||
impl State {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue