Struct libhelium::builders::ApplicationBuilder
source · [−]pub struct ApplicationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Application
objects.
Implementations
sourceimpl ApplicationBuilder
impl ApplicationBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ApplicationBuilder
.
sourcepub fn build(self) -> Application
pub fn build(self) -> Application
Build the Application
.
pub fn default_accent_color(self, default_accent_color: &ColorRGBColor) -> Self
pub fn accent_color(self, accent_color: &ColorRGBColor) -> Self
pub fn foreground(self, foreground: &ColorRGBColor) -> Self
pub fn accent_foreground(self, accent_foreground: &ColorRGBColor) -> Self
The GMenuModel
to be used for the application’s menu bar.
sourcepub fn register_session(self, register_session: bool) -> Self
pub fn register_session(self, register_session: bool) -> Self
Set this property to TRUE
to register with the session manager.
This will make GTK track the session state (such as the
property::gtk::Application::screensaver-active
property).
pub fn action_group(self, action_group: &impl IsA<ActionGroup>) -> Self
pub fn application_id(self, application_id: &str) -> Self
pub fn flags(self, flags: ApplicationFlags) -> Self
pub fn inactivity_timeout(self, inactivity_timeout: u32) -> Self
pub fn resource_base_path(self, resource_base_path: &str) -> Self
Trait Implementations
sourceimpl Clone for ApplicationBuilder
impl Clone for ApplicationBuilder
sourcefn clone(&self) -> ApplicationBuilder
fn clone(&self) -> ApplicationBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ApplicationBuilder
impl Default for ApplicationBuilder
sourcefn default() -> ApplicationBuilder
fn default() -> ApplicationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ApplicationBuilder
impl !Send for ApplicationBuilder
impl !Sync for ApplicationBuilder
impl Unpin for ApplicationBuilder
impl UnwindSafe for ApplicationBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more