GLib.ContentType – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
ContentType
can_be_executable
equals
from_mime_type
get_description
get_generic_icon_name
get_icon
get_mime_type
get_symbolic_icon
guess
guess_for_tree
is_a
is_unknown
list_registered
GLib.ContentType
Description:
Content:
Functions:
public
bool
can_be_executable
(
string
type)
Checks if a content type can be executable.
public
bool
equals
(
string
type1,
string
type2)
Compares two content types for equality.
public
string
?
from_mime_type
(
string
mime_type)
Tries to find a content type based on the mime type name.
public
string
get_description
(
string
type)
Gets the human readable description of the content type.
public
string
get_generic_icon_name
(
string
type)
Gets the generic icon name for a content type.
public
Icon
get_icon
(
string
type)
Gets the icon for a content type.
public
string
?
get_mime_type
(
string
type)
Gets the mime type for the content type, if one is registered.
public
Icon
get_symbolic_icon
(
string
type)
Gets the symbolic icon for a content type.
public
string
guess
(
string
? filename,
uint8
[]? data,
out
bool
result_uncertain)
Guesses the content type based on example data.
public
string
[]
guess_for_tree
(
File
root)
Tries to guess the type of the tree with root
root
, by looking at the files it contains.
public
bool
is_a
(
string
type,
string
supertype)
Determines if
type
is a subset of
supertype
.
public
bool
is_unknown
(
string
type)
Checks if the content type is the generic "unknown" type.
public
List
<
string
>
list_registered
()
Gets a list of strings containing all the registered content types known to the system.