Gimp.Scanner¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gimp.Scanner¶
A wrapper around
GLib.Scannerwith 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:
Trueon success- dest:
Return location for the parsed boolean
- Return type:
New in version 2.4.
- parse_color()¶
- Returns:
Trueon 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:
Trueon success- dest:
Return location for the parsed double
- Return type:
New in version 2.4.
- parse_identifier()¶
- Returns:
Trueif 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:
Trueon success- dest:
Return location for the parsed integer
- Return type:
New in version 2.4.
- parse_int64()¶
- Returns:
Trueon success- dest:
Return location for the parsed integer
- Return type:
New in version 2.8.
- parse_matrix2()¶
- Returns:
Trueon 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.TokenTypeexpected 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.