[−][src]Struct ggpf::game::breakthrough::ui::IBreakthrough
Interactive interface for Breakthrough
Methods
impl IBreakthrough
[src]
pub fn new(initial_state: Breakthrough) -> Self
[src]
Instanciates a view with given state.
Trait Implementations
impl GameView for IBreakthrough
[src]
impl View for IBreakthrough
[src]
fn draw(&self, printer: &Printer)
[src]
fn take_focus(&mut self, _: Direction) -> bool
[src]
fn on_event(&mut self, event: Event) -> EventResult
[src]
fn required_size(&mut self, _: Vec2) -> Vec2
[src]
fn layout(&mut self, XY<usize>)
fn needs_relayout(&self) -> bool
fn call_on_any(
&mut self,
&Selector,
&'a mut (dyn FnMut(&mut (dyn Any + 'static)) + 'a)
)
&mut self,
&Selector,
&'a mut (dyn FnMut(&mut (dyn Any + 'static)) + 'a)
)
fn focus_view(&mut self, &Selector) -> Result<(), ()>
fn important_area(&self, view_size: XY<usize>) -> Rect
Auto Trait Implementations
impl !RefUnwindSafe for IBreakthrough
impl Send for IBreakthrough
impl Sync for IBreakthrough
impl Unpin for IBreakthrough
impl !UnwindSafe for IBreakthrough
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyView for T where
T: View,
T: View,
fn as_any(&self) -> &(dyn Any + 'static)
Downcast self to a Any
.
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Downcast self to a mutable Any
.
fn as_boxed_any(self: Box<T>) -> Box<dyn Any + 'static>
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> Finder for T where
T: View,
T: View,
fn call_on<V, F, R>(&mut self, sel: &Selector, callback: F) -> Option<R> where
F: FnOnce(&mut V) -> R,
V: View + Any,
F: FnOnce(&mut V) -> R,
V: View + Any,
fn call_on_name<V, F, R>(&mut self, name: &str, callback: F) -> Option<R> where
F: FnOnce(&mut V) -> R,
V: View + Any,
F: FnOnce(&mut V) -> R,
V: View + Any,
fn call_on_id<V, F, R>(&mut self, id: &str, callback: F) -> Option<R> where
F: FnOnce(&mut V) -> R,
V: View + Any,
F: FnOnce(&mut V) -> R,
V: View + Any,
fn find_name<V>(
&mut self,
name: &str
) -> Option<OwningHandle<OwningRef<Rc<RefCell<V>>, RefCell<V>>, RefMut<'static, V>>> where
V: View + Any,
&mut self,
name: &str
) -> Option<OwningHandle<OwningRef<Rc<RefCell<V>>, RefCell<V>>, RefMut<'static, V>>> where
V: View + Any,
fn find_id<V>(
&mut self,
id: &str
) -> Option<OwningHandle<OwningRef<Rc<RefCell<V>>, RefCell<V>>, RefMut<'static, V>>> where
V: View + Any,
&mut self,
id: &str
) -> Option<OwningHandle<OwningRef<Rc<RefCell<V>>, RefCell<V>>, RefMut<'static, V>>> where
V: View + Any,
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
fn from_py(t: T, Python) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoBoxedView for T where
T: View,
T: View,
fn as_boxed_view(self) -> Box<dyn View + 'static>
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
U: FromPy<T>,
fn into_py(self, py: Python) -> U
impl<T> Nameable for T where
T: View,
T: View,
fn with_name<S>(self, name: S) -> NamedView<Self> where
S: Into<String>,
S: Into<String>,
fn with_id<S>(self, id: S) -> NamedView<Self> where
S: Into<String>,
S: Into<String>,
impl<T> Resizable for T where
T: View,
T: View,
fn boxed(
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
fn resized(
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
self,
width: SizeConstraint,
height: SizeConstraint
) -> ResizedView<Self>
fn fixed_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
fn fixed_width(self, width: usize) -> ResizedView<Self>
fn fixed_height(self, height: usize) -> ResizedView<Self>
fn full_screen(self) -> ResizedView<Self>
fn full_width(self) -> ResizedView<Self>
fn full_height(self) -> ResizedView<Self>
fn max_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
fn max_width(self, max_width: usize) -> ResizedView<Self>
fn max_height(self, max_height: usize) -> ResizedView<Self>
fn min_size<S>(self, size: S) -> ResizedView<Self> where
S: Into<XY<usize>>,
S: Into<XY<usize>>,
fn min_width(self, min_width: usize) -> ResizedView<Self>
fn min_height(self, min_height: usize) -> ResizedView<Self>
impl<T> Scrollable for T where
T: View,
T: View,
fn scrollable(self) -> ScrollView<Self>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> View for T where
T: ViewWrapper,
T: ViewWrapper,
fn draw(&self, printer: &Printer)
fn required_size(&mut self, req: XY<usize>) -> XY<usize>
fn on_event(&mut self, ch: Event) -> EventResult
fn layout(&mut self, size: XY<usize>)
fn take_focus(&mut self, source: Direction) -> bool
fn call_on_any(
&mut self,
selector: &Selector,
callback: &'a mut (dyn FnMut(&mut (dyn Any + 'static)) + 'a)
)
&mut self,
selector: &Selector,
callback: &'a mut (dyn FnMut(&mut (dyn Any + 'static)) + 'a)
)