Ags.ApplicationContext¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The config what application context is running in |
||
r/w |
The file what application context does persist |
||
r/w |
The main loop of application context running |
||
r/w |
The task launcher |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
argc |
r |
||
argv |
r |
||
build_id |
r |
||
config |
r |
||
connectable_flags |
r |
||
domain |
r |
||
file |
r |
||
flags |
r |
||
gobject |
r |
||
history |
r |
||
is_ready |
r |
||
log |
r |
||
main_loop |
r |
||
obj_mutex |
r |
||
task_launcher |
r |
||
uuid |
r |
||
version |
r |
Class Details¶
- class Ags.ApplicationContext(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_instance()¶
- Returns:
the
Ags.ApplicationContext
instance- Return type:
Get your application context instance.
New in version 3.0.0.
- classmethod new(main_loop, config)¶
- Parameters:
main_loop (
GObject.Object
orNone
) – theAgs.MainLoop
config (
Ags.Config
orNone
) – theAgs.Config
- Returns:
the
Ags.ApplicationContext
instance- Return type:
Create a new instance of
Ags.ApplicationContext
New in version 3.0.0.
- load_config()¶
Signal to load and parse configuration.
New in version 3.0.0.
- prepare()¶
Prepare self.
New in version 3.0.0.
- quit()¶
Calls exit()
New in version 3.0.0.
- register_types()¶
Notification to register your types.
New in version 3.0.0.
- set_flags(flags)¶
- Parameters:
flags (
Ags.ApplicationContextFlags
) – see enumAgs.ApplicationContextFlags
Enable a feature of
Ags.ApplicationContext
.New in version 3.0.0.
- setup()¶
Setup self.
New in version 3.0.0.
- test_flags(flags)¶
- Parameters:
flags (
Ags.ApplicationContextFlags
) – the flags- Returns:
- Return type:
Test flags to be set on self.
New in version 3.0.0.
- unset_flags(flags)¶
- Parameters:
flags (
Ags.ApplicationContextFlags
) – see enumAgs.ApplicationContextFlags
Disable a feature of
Ags.ApplicationContext
.New in version 3.0.0.
- do_load_config() virtual¶
Signal to load and parse configuration.
New in version 3.0.0.
- do_prepare() virtual¶
Prepare application_context.
New in version 3.0.0.
- do_quit() virtual¶
Calls exit()
New in version 3.0.0.
- do_register_types() virtual¶
Notification to register your types.
New in version 3.0.0.
- do_setup() virtual¶
Setup application_context.
New in version 3.0.0.
Signal Details¶
- Ags.ApplicationContext.signals.load_config(application_context)¶
- Signal Name:
load-config
- Flags:
- Parameters:
application_context (
Ags.ApplicationContext
) – The object which received the signal
The
::load-config
notifies to load configuration.New in version 3.0.0.
- Ags.ApplicationContext.signals.prepare(application_context)¶
- Signal Name:
prepare
- Flags:
- Parameters:
application_context (
Ags.ApplicationContext
) – The object which received the signal
The
::prepare
signal should be implemented to prepare your application context.New in version 3.0.0.
- Ags.ApplicationContext.signals.quit(application_context)¶
- Signal Name:
quit
- Flags:
- Parameters:
application_context (
Ags.ApplicationContext
) – The object which received the signal
The
::quit
notifies to load configuration.New in version 3.0.0.
- Ags.ApplicationContext.signals.register_types(application_context)¶
- Signal Name:
register-types
- Flags:
- Parameters:
application_context (
Ags.ApplicationContext
) – The object which received the signal
The
::register-types
signal should be implemented to load your types.New in version 3.0.0.
- Ags.ApplicationContext.signals.setup(application_context)¶
- Signal Name:
setup
- Flags:
- Parameters:
application_context (
Ags.ApplicationContext
) – The object which received the signal
The
::setup
signal should be implemented to setup your application context.New in version 3.0.0.
Property Details¶
- Ags.ApplicationContext.props.config¶
- Name:
config
- Type:
- Default Value:
- Flags:
The assigned config.
New in version 3.0.0.
- Ags.ApplicationContext.props.file¶
- Name:
file
- Type:
- Default Value:
- Flags:
The assigned file.
New in version 3.0.0.
- Ags.ApplicationContext.props.main_loop¶
- Name:
main-loop
- Type:
- Default Value:
- Flags:
The assigned main-loop.
New in version 3.0.0.
- Ags.ApplicationContext.props.task_launcher¶
- Name:
task-launcher
- Type:
- Default Value:
- Flags:
The assigned task launcher.
New in version 3.0.0.