[−][src]Struct pushrod::core::main::Pushrod
This structure is returned when instantiating a new Pushrod main object.
Fields
widget_store: RefCell<WidgetStore>This is the WidgetStore object that is used to store the Widget list in the current
display stack.
drawing_texture: DrawingTextureMethods
impl Pushrod[src]
Pushrod implementation. Create a Pushrod::new( PistonWindow ) object to create a new
main loop. Only one of these should be set for the entire application runtime.
pub fn new(window: GlfwWindow) -> Self[src]
Pushrod Object Constructor. Takes in a single OpenGL configuration type.
pub fn add_widget(&mut self, name: &str, widget: Box<dyn Widget>) -> i32[src]
Convenience method that adds a Widget to the GUI display stack.
pub fn add_layout_manager(&mut self, manager: Box<dyn LayoutManager>) -> i32[src]
Convenience method that adds a LayoutManager to the layout management stack.
pub fn add_widget_to_layout_manager(
&mut self,
name: &str,
widget: Box<dyn Widget>,
manager_id: i32,
position: Point
) -> i32[src]
&mut self,
name: &str,
widget: Box<dyn Widget>,
manager_id: i32,
position: Point
) -> i32
Convenience method that adds a Widget to a LayoutManager by the manager's ID and
the positioning of the Widget.
pub fn add_widget_to_parent(
&mut self,
name: &str,
widget: Box<dyn Widget>,
parent_id: i32
) -> i32[src]
&mut self,
name: &str,
widget: Box<dyn Widget>,
parent_id: i32
) -> i32
Convenience method that adds a Widget to a parent by its ID. This guarantees a refresh
if the top level parent becomes invalidated.
pub fn add_widget_to_parent_by_name(
&mut self,
parent_name: &str,
name: &str,
widget: Box<dyn Widget>
) -> i32[src]
&mut self,
parent_name: &str,
name: &str,
widget: Box<dyn Widget>
) -> i32
Convenience method that adds a Widget to a parent by the parent's name.
pub fn run(&mut self, event_handler: &mut dyn PushrodCallbackEvents)[src]
This is the main run loop for Pushrod. A run loop requires the use of an assigned
PushrodCallbackEvents event handler. This is how all communications take place when
an action occurs within the GUI window.
Auto Trait Implementations
impl !Send for Pushrod
impl Unpin for Pushrod
impl !Sync for Pushrod
impl !UnwindSafe for Pushrod
impl !RefUnwindSafe for Pushrod
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value as a parameter of self.