EDataServer.SourceSelectable¶
Methods¶
- Inherited:
EDataServer.SourceBackend (3), EDataServer.SourceExtension (4), GObject.Object (37)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
Textual specification of a color |
||
r/w/c/en |
Preferred sorting order |
||
r/w/c/en |
Whether the data source is selected |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceSelectable(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.6.
- dup_color()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceSelectable
:color
, orNone
, when none is set- Return type:
Thread-safe variation of
EDataServer.SourceSelectable.get_color
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- get_color()¶
- Returns:
the color specification for the
EDataServer.Source
, orNone
, when none is set- Return type:
Returns the color specification for the
EDataServer.Source
to which self belongs. A colored block is often displayed next to the data source’s display name in user interfaces.New in version 3.6.
- get_order()¶
- Returns:
the preferred sorting order for the
EDataServer.Source
- Return type:
Returns the preferred sorting order for the
EDataServer.Source
to which self belongs. Default is 0.New in version 3.40.
- get_selected()¶
- Returns:
the selected state for the
EDataServer.Source
- Return type:
Returns the selected state of the
EDataServer.Source
to which self belongs. The selected state is often represented as a checkbox next to the data source’s display name in user interfaces.New in version 3.6.
- set_color(color)¶
-
Sets the color specification for the
EDataServer.Source
to which self belongs. A colored block is often displayed next to the data source’s display name in user interfaces.The internal copy of color is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.6.
- set_order(order)¶
- Parameters:
order (
int
) – the sorting order
Sets the sorting order for the
EDataServer.Source
to which self belongs.New in version 3.40.
- set_selected(selected)¶
- Parameters:
selected (
bool
) – selected state
Sets the selected state for the
EDataServer.Source
to which self belongs. The selected state is often represented as a checkbox next to the data source’s display name in user interfaces.New in version 3.6.
Property Details¶
- EDataServer.SourceSelectable.props.color¶
- Name:
color
- Type:
- Default Value:
'#62a0ea'
- Flags:
Textual specification of a color
- EDataServer.SourceSelectable.props.order¶
- Name:
order
- Type:
- Default Value:
0
- Flags:
Preferred sorting order