Skip to content

Commit 945f52b

Browse files
committed
Add support for setting vertical offset with plugins
1 parent ea5271d commit 945f52b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@ where
376376
)
377377
}
378378

379-
/// Sets the vertical text offset.
380-
///
381-
/// Vertical offset changes the vertical position of the displayed text within the bounding box.
382-
/// Setting a positive value moves the text down.
383-
#[inline]
384-
pub fn set_vertical_offset(&mut self, offset: i32) -> &mut Self {
385-
self.vertical_offset = offset;
386-
self
387-
}
388-
389379
/// Adds a new plugin to the `TextBox`.
390380
#[inline]
391381
pub fn add_plugin<M>(self, plugin: M) -> TextBox<'a, S, Chain<M>>
@@ -503,4 +493,14 @@ where
503493

504494
self
505495
}
506-
}
496+
497+
/// Sets the vertical text offset.
498+
///
499+
/// Vertical offset changes the vertical position of the displayed text within the bounding box.
500+
/// Setting a positive value moves the text down.
501+
#[inline]
502+
pub fn set_vertical_offset(&mut self, offset: i32) -> &mut Self {
503+
self.vertical_offset = offset;
504+
self
505+
}
506+
}

0 commit comments

Comments
 (0)