Class MainLoop
public class MainLoop
- Inheritance
-
MainLoop
- Inherited Members
Methods
GetContext(MainLoopHandle)
Calls native method g_main_loop_get_context.
public static extern MainContextUnownedHandle GetContext(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False
Returns
- MainContextUnownedHandle
Transfer ownership: None Nullable: False
GetGType()
Calls native function g_main_loop_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
IsRunning(MainLoopHandle)
Calls native method g_main_loop_is_running.
public static extern bool IsRunning(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
New(MainContextHandle, bool)
Calls native constructor g_main_loop_new.
public static extern MainLoopOwnedHandle New(MainContextHandle context, bool isRunning)
Parameters
context
MainContextHandleTransfer ownership: None Nullable: True
isRunning
boolTransfer ownership: None Nullable: False
Returns
- MainLoopOwnedHandle
Transfer ownership: Full Nullable: False
Quit(MainLoopHandle)
Calls native method g_main_loop_quit.
public static extern void Quit(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False
Ref(MainLoopHandle)
Calls native method g_main_loop_ref.
public static extern MainLoopOwnedHandle Ref(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False
Returns
- MainLoopOwnedHandle
Transfer ownership: Full Nullable: False
Run(MainLoopHandle)
Calls native method g_main_loop_run.
public static extern void Run(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False
Unref(MainLoopHandle)
Calls native method g_main_loop_unref.
public static extern void Unref(MainLoopHandle loop)
Parameters
loop
MainLoopHandleTransfer ownership: None Nullable: False