Class ApplicationCommandLine
public class ApplicationCommandLine
- Inheritance
-
ApplicationCommandLine
- Inherited Members
Methods
CreateFileForArg(nint, NonNullablePlatformStringHandle)
Calls native method g_application_command_line_create_file_for_arg. Version: 2.36
[Version("2.36")]
public static extern nint CreateFileForArg(nint cmdline, NonNullablePlatformStringHandle arg)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
arg
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
Returns
- nint
Transfer ownership: Full Nullable: False
Done(nint)
Calls native method g_application_command_line_done. Version: 2.80
[Version("2.80")]
public static extern void Done(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
GetArguments(nint, out int)
Calls native method g_application_command_line_get_arguments. Version: 2.28
[Version("2.28")]
public static extern string[] GetArguments(nint cmdline, out int argc)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
argc
intTransfer ownership: Full Nullable: False
Returns
- string[]
Transfer ownership: Full Nullable: False
GetCwd(nint)
Calls native method g_application_command_line_get_cwd. Version: 2.28
[Version("2.28")]
public static extern NullablePlatformStringUnownedHandle GetCwd(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- NullablePlatformStringUnownedHandle
Transfer ownership: None Nullable: True
GetEnviron(nint)
Calls native method g_application_command_line_get_environ. Version: 2.28
[Version("2.28")]
public static extern PlatformStringArrayNullTerminatedUnownedHandle GetEnviron(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- PlatformStringArrayNullTerminatedUnownedHandle
Transfer ownership: None Nullable: False
GetExitStatus(nint)
Calls native method g_application_command_line_get_exit_status. Version: 2.28
[Version("2.28")]
public static extern int GetExitStatus(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetGType()
Calls native function g_application_command_line_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetIsRemote(nint)
Calls native method g_application_command_line_get_is_remote. Version: 2.28
[Version("2.28")]
public static extern bool GetIsRemote(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetOptionsDict(nint)
Calls native method g_application_command_line_get_options_dict. Version: 2.40
[Version("2.40")]
public static extern VariantDictUnownedHandle GetOptionsDict(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- VariantDictUnownedHandle
Transfer ownership: None Nullable: False
GetPlatformData(nint)
Calls native method g_application_command_line_get_platform_data. Version: 2.28
[Version("2.28")]
public static extern VariantOwnedHandle GetPlatformData(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: True
GetStdin(nint)
Calls native method g_application_command_line_get_stdin. Version: 2.34
[Version("2.34")]
public static extern nint GetStdin(nint cmdline)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
Returns
- nint
Transfer ownership: Full Nullable: True
Getenv(nint, NonNullablePlatformStringHandle)
Calls native method g_application_command_line_getenv. Version: 2.28
[Version("2.28")]
public static extern NullableUtf8StringUnownedHandle Getenv(nint cmdline, NonNullablePlatformStringHandle name)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
name
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
PrintLiteral(nint, NonNullableUtf8StringHandle)
Calls native method g_application_command_line_print_literal. Version: 2.80
[Version("2.80")]
public static extern void PrintLiteral(nint cmdline, NonNullableUtf8StringHandle message)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
message
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
PrinterrLiteral(nint, NonNullableUtf8StringHandle)
Calls native method g_application_command_line_printerr_literal. Version: 2.80
[Version("2.80")]
public static extern void PrinterrLiteral(nint cmdline, NonNullableUtf8StringHandle message)
Parameters
cmdline
nintTransfer ownership: None Nullable: False
message
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetExitStatus(nint, int)
Calls native method g_application_command_line_set_exit_status. Version: 2.28
[Version("2.28")]
public static extern void SetExitStatus(nint cmdline, int exitStatus)