Struct libhelium::builders::ApplicationBuilder
source · pub struct ApplicationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Application
objects.
Implementations§
source§impl ApplicationBuilder
impl ApplicationBuilder
pub fn default_accent_color(self, default_accent_color: &RGBColor) -> Self
pub fn override_accent_color(self, override_accent_color: bool) -> Self
pub fn override_dark_style(self, override_dark_style: bool) -> Self
pub fn override_contrast(self, override_contrast: bool) -> Self
pub fn default_contrast(self, default_contrast: f64) -> Self
pub fn is_content(self, is_content: bool) -> Self
pub fn is_mono(self, is_mono: bool) -> 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
[screensaver-active
][struct@crate::gtk::Application#screensaver-active] property).
sourcepub fn application_id(self, application_id: impl Into<GString>) -> Self
pub fn application_id(self, application_id: impl Into<GString>) -> Self
The unique identifier for the application.
sourcepub fn flags(self, flags: ApplicationFlags) -> Self
pub fn flags(self, flags: ApplicationFlags) -> Self
Flags specifying the behaviour of the application.
sourcepub fn inactivity_timeout(self, inactivity_timeout: u32) -> Self
pub fn inactivity_timeout(self, inactivity_timeout: u32) -> Self
Time (in milliseconds) to stay alive after becoming idle.
sourcepub fn resource_base_path(self, resource_base_path: impl Into<GString>) -> Self
pub fn resource_base_path(self, resource_base_path: impl Into<GString>) -> Self
The base resource path for the application.
sourcepub fn build(self) -> Application
pub fn build(self) -> Application
Build the Application
.
Auto Trait Implementations§
impl Freeze for ApplicationBuilder
impl RefUnwindSafe for ApplicationBuilder
impl !Send for ApplicationBuilder
impl !Sync for ApplicationBuilder
impl Unpin for ApplicationBuilder
impl UnwindSafe for ApplicationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more