Gimp.Scanner¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gimp.Scanner¶
A wrapper around
GLib.Scanner
with some convenience API.- classmethod new_file(file)¶
- Parameters:
- Raises:
- Returns:
The new
Gimp.Scanner
.- Return type:
New in version 2.10.
- classmethod new_stream(input)¶
- Parameters:
input (
Gio.InputStream
) – aGio.InputStream
- Raises:
- Returns:
The new
Gimp.Scanner
.- Return type:
New in version 2.10.
- classmethod new_string(text)¶
- Parameters:
text ([
str
]) –- Raises:
- Returns:
The new
Gimp.Scanner
.- Return type:
New in version 2.4.
- parse_boolean()¶
- Returns:
True
on success- dest:
Return location for the parsed boolean
- Return type:
New in version 2.4.
- parse_color()¶
- Returns:
True
on success- color:
Pointer to a color to store the result
- Return type:
(
bool
, color:Gegl.Color
)
New in version 2.4.
- parse_data()¶
-
New in version 2.4.
- parse_double()¶
- Returns:
True
on success- dest:
Return location for the parsed double
- Return type:
New in version 2.4.
- parse_identifier()¶
- Returns:
True
if the next token is an identifier and if its value matches identifier.- identifier:
the expected identifier.
- Return type:
New in version 2.4.
- parse_int()¶
- Returns:
True
on success- dest:
Return location for the parsed integer
- Return type:
New in version 2.4.
- parse_int64()¶
- Returns:
True
on success- dest:
Return location for the parsed integer
- Return type:
New in version 2.8.
- parse_matrix2()¶
- Returns:
True
on success- dest:
Pointer to a matrix to store the result
- Return type:
(
bool
, dest:Gimp.Matrix2
)
New in version 2.4.
- parse_string()¶
-
New in version 2.4.
- parse_string_no_validate()¶
-
New in version 2.4.
- parse_token(token)¶
- Parameters:
token (
GLib.TokenType
) – theGLib.TokenType
expected as next token.- Returns:
- Return type:
New in version 2.4.
- ref()¶
- Returns:
the same self.
- Return type:
Adds a reference to a
Gimp.Scanner
.New in version 3.0.
- unref()¶
Unref a
Gimp.Scanner
. If the reference count drops to zero, the scanner is freed.New in version 3.0.