Struct gtk4::builders::ApplicationBuilder
source · pub struct ApplicationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Application
objects.
Implementations§
source§impl ApplicationBuilder
impl ApplicationBuilder
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
property).
pub fn action_group(self, action_group: &impl IsA<ActionGroup>) -> Self
pub fn application_id(self, application_id: impl Into<GString>) -> 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: impl Into<GString>) -> Self
sourcepub fn build(self) -> Application
pub fn build(self) -> Application
Build the Application
.