mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Merge separate TrackedView impl blocks
This commit is contained in:
parent
f091cec861
commit
22e2360aa1
@ -18,10 +18,6 @@ impl<T: View> TrackedView<T> {
|
|||||||
self.offset.get()
|
self.offset.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
inner_getters!(self.view: T);
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T: View> TrackedView<T> {
|
|
||||||
/// Creates a new `TrackedView` around `view`.
|
/// Creates a new `TrackedView` around `view`.
|
||||||
pub fn new(view: T) -> Self {
|
pub fn new(view: T) -> Self {
|
||||||
TrackedView {
|
TrackedView {
|
||||||
@ -34,6 +30,8 @@ impl<T: View> TrackedView<T> {
|
|||||||
pub fn with_id(self, id: &str) -> IdView<Self> {
|
pub fn with_id(self, id: &str) -> IdView<Self> {
|
||||||
IdView::new(id, self)
|
IdView::new(id, self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inner_getters!(self.view: T);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: View> ViewWrapper for TrackedView<T> {
|
impl<T: View> ViewWrapper for TrackedView<T> {
|
||||||
|
Loading…
Reference in New Issue
Block a user