Replace inner_getters!(T); with inner_getters!(self.view: T);

This commit is contained in:
Tymoteusz Jankowski 2018-01-27 10:37:08 +01:00
parent b21280c106
commit 5bfe9548e8
8 changed files with 9 additions and 9 deletions

View File

@ -219,7 +219,7 @@ macro_rules! wrap_impl {
/// }
///
/// impl<T: View> FooView<T> {
/// inner_getters!(T);
/// inner_getters!(self.view: T);
/// }
///
/// impl <T: View> ViewWrapper for FooView<T> {
@ -229,7 +229,7 @@ macro_rules! wrap_impl {
/// ```
#[macro_export]
macro_rules! inner_getters {
($t:ty) => {
(self.$v:ident: $t:ty) => {
/// Gets access to the inner view.
pub fn get_inner(&self) -> &$t {
&self.view

View File

@ -163,7 +163,7 @@ impl<T: View> BoxView<T> {
)
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for BoxView<T> {

View File

@ -17,7 +17,7 @@ impl<T: View> Layer<T> {
Layer { view: view }
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for Layer<T> {

View File

@ -204,7 +204,7 @@ impl<T: View> OnEventView<T> {
);
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for OnEventView<T> {

View File

@ -15,7 +15,7 @@ impl<V: View> Panel<V> {
Panel { view: view }
}
inner_getters!(V);
inner_getters!(self.view: V);
}
impl<V: View> ViewWrapper for Panel<V> {

View File

@ -47,7 +47,7 @@ impl<T: View> ShadowView<T> {
self
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for ShadowView<T> {

View File

@ -19,7 +19,7 @@ impl<T: View> SizedView<T> {
}
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> ViewWrapper for SizedView<T> {

View File

@ -18,7 +18,7 @@ impl<T: View> TrackedView<T> {
self.offset.get()
}
inner_getters!(T);
inner_getters!(self.view: T);
}
impl<T: View> TrackedView<T> {