XApp.StatusIconInterface¶
- Implementations:
XApp.StatusIconInterfaceProxy
,XApp.StatusIconInterfaceSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
IconName |
||
r/w |
IconSize |
||
r/w |
Label |
||
r/w |
Metadata |
||
r/w |
Name |
||
r/w |
PrimaryMenuIsOpen |
||
r/w |
SecondaryMenuIsOpen |
||
r/w |
TooltipText |
||
r/w |
Visible |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the ‘ButtonPress() [gdbus-method-org-x-StatusIcon.ButtonPress]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘ButtonRelease() [gdbus-method-org-x-StatusIcon.ButtonRelease]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Scroll() [gdbus-method-org-x-StatusIcon.Scroll]’ D-Bus method. |
Fields¶
None
Class Details¶
- class XApp.StatusIconInterface¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface ‘org.x.StatusIcon [gdbus-interface-org-x-StatusIcon.top_of_page]’.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the ‘org.x.StatusIcon [gdbus-interface-org-x-StatusIcon.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theXApp.StatusIconInterface
interface for a concrete class. The properties are overridden in the order they are defined.
- call_button_press(arg_x, arg_y, arg_button, arg_time, arg_panel_position, cancellable, callback, *user_data)¶
- Parameters:
arg_x (
int
) – Argument to pass with the method invocation.arg_y (
int
) – Argument to pass with the method invocation.arg_button (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.arg_panel_position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘ButtonPress() [gdbus-method-org-x-StatusIcon.ButtonPress]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callXApp.StatusIconInterface.call_button_press_finish
() to get the result of the operation.See
XApp.StatusIconInterface.call_button_press_sync
() for the synchronous, blocking version of this method.
- call_button_press_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toXApp.StatusIconInterface.call_button_press
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
XApp.StatusIconInterface.call_button_press
().
- call_button_press_sync(arg_x, arg_y, arg_button, arg_time, arg_panel_position, cancellable)¶
- Parameters:
arg_x (
int
) – Argument to pass with the method invocation.arg_y (
int
) – Argument to pass with the method invocation.arg_button (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.arg_panel_position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘ButtonPress() [gdbus-method-org-x-StatusIcon.ButtonPress]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
XApp.StatusIconInterface.call_button_press
() for the asynchronous version of this method.
- call_button_release(arg_x, arg_y, arg_button, arg_time, arg_panel_position, cancellable, callback, *user_data)¶
- Parameters:
arg_x (
int
) – Argument to pass with the method invocation.arg_y (
int
) – Argument to pass with the method invocation.arg_button (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.arg_panel_position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘ButtonRelease() [gdbus-method-org-x-StatusIcon.ButtonRelease]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callXApp.StatusIconInterface.call_button_release_finish
() to get the result of the operation.See
XApp.StatusIconInterface.call_button_release_sync
() for the synchronous, blocking version of this method.
- call_button_release_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toXApp.StatusIconInterface.call_button_release
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
XApp.StatusIconInterface.call_button_release
().
- call_button_release_sync(arg_x, arg_y, arg_button, arg_time, arg_panel_position, cancellable)¶
- Parameters:
arg_x (
int
) – Argument to pass with the method invocation.arg_y (
int
) – Argument to pass with the method invocation.arg_button (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.arg_panel_position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘ButtonRelease() [gdbus-method-org-x-StatusIcon.ButtonRelease]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
XApp.StatusIconInterface.call_button_release
() for the asynchronous version of this method.
- call_scroll(arg_delta, arg_orientation, arg_time, cancellable, callback, *user_data)¶
- Parameters:
arg_delta (
int
) – Argument to pass with the method invocation.arg_orientation (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Scroll() [gdbus-method-org-x-StatusIcon.Scroll]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callXApp.StatusIconInterface.call_scroll_finish
() to get the result of the operation.See
XApp.StatusIconInterface.call_scroll_sync
() for the synchronous, blocking version of this method.
- call_scroll_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toXApp.StatusIconInterface.call_scroll
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
XApp.StatusIconInterface.call_scroll
().
- call_scroll_sync(arg_delta, arg_orientation, arg_time, cancellable)¶
- Parameters:
arg_delta (
int
) – Argument to pass with the method invocation.arg_orientation (
int
) – Argument to pass with the method invocation.arg_time (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Scroll() [gdbus-method-org-x-StatusIcon.Scroll]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
XApp.StatusIconInterface.call_scroll
() for the asynchronous version of this method.
- complete_button_press(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘ButtonPress() [gdbus-method-org-x-StatusIcon.ButtonPress]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_button_release(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘ButtonRelease() [gdbus-method-org-x-StatusIcon.ButtonRelease]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_scroll(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Scroll() [gdbus-method-org-x-StatusIcon.Scroll]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- do_handle_button_press(invocation, arg_x, arg_y, arg_button, arg_time, arg_panel_position) virtual¶
- Parameters:
- Return type:
Handler for the
XApp.StatusIconInterface
::handle-button-press
signal.
- do_handle_button_release(invocation, arg_x, arg_y, arg_button, arg_time, arg_panel_position) virtual¶
- Parameters:
- Return type:
Handler for the
XApp.StatusIconInterface
::handle-button-release
signal.
- do_handle_scroll(invocation, arg_delta, arg_orientation, arg_time) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_delta (
int
) –arg_orientation (
int
) –arg_time (
int
) –
- Return type:
Handler for the
XApp.StatusIconInterface
::handle-scroll
signal.
Signal Details¶
- XApp.StatusIconInterface.signals.handle_button_press(status_icon_interface, invocation, arg_x, arg_y, arg_button, arg_time, arg_panel_position)¶
- Signal Name:
handle-button-press
- Flags:
- Parameters:
status_icon_interface (
XApp.StatusIconInterface
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_x (
int
) – Argument passed by remote caller.arg_y (
int
) – Argument passed by remote caller.arg_button (
int
) – Argument passed by remote caller.arg_time (
int
) – Argument passed by remote caller.arg_panel_position (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘ButtonPress() [gdbus-method-org-x-StatusIcon.ButtonPress]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callXApp.StatusIconInterface.complete_button_press
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- XApp.StatusIconInterface.signals.handle_button_release(status_icon_interface, invocation, arg_x, arg_y, arg_button, arg_time, arg_panel_position)¶
- Signal Name:
handle-button-release
- Flags:
- Parameters:
status_icon_interface (
XApp.StatusIconInterface
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_x (
int
) – Argument passed by remote caller.arg_y (
int
) – Argument passed by remote caller.arg_button (
int
) – Argument passed by remote caller.arg_time (
int
) – Argument passed by remote caller.arg_panel_position (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘ButtonRelease() [gdbus-method-org-x-StatusIcon.ButtonRelease]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callXApp.StatusIconInterface.complete_button_release
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- XApp.StatusIconInterface.signals.handle_scroll(status_icon_interface, invocation, arg_delta, arg_orientation, arg_time)¶
- Signal Name:
handle-scroll
- Flags:
- Parameters:
status_icon_interface (
XApp.StatusIconInterface
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_delta (
int
) – Argument passed by remote caller.arg_orientation (
int
) – Argument passed by remote caller.arg_time (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Scroll() [gdbus-method-org-x-StatusIcon.Scroll]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callXApp.StatusIconInterface.complete_scroll
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
Property Details¶
- XApp.StatusIconInterface.props.icon_name¶
-
Represents the D-Bus property ‘“IconName” [gdbus-property-org-x-StatusIcon.IconName]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- XApp.StatusIconInterface.props.icon_size¶
-
Represents the D-Bus property ‘“IconSize” [gdbus-property-org-x-StatusIcon.IconSize]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
- XApp.StatusIconInterface.props.label¶
-
Represents the D-Bus property ‘“Label” [gdbus-property-org-x-StatusIcon.Label]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- XApp.StatusIconInterface.props.metadata¶
-
Represents the D-Bus property ‘“Metadata” [gdbus-property-org-x-StatusIcon.Metadata]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- XApp.StatusIconInterface.props.name¶
-
Represents the D-Bus property ‘“Name” [gdbus-property-org-x-StatusIcon.Name]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
-
Represents the D-Bus property ‘“PrimaryMenuIsOpen” [gdbus-property-org-x-StatusIcon.PrimaryMenuIsOpen]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
-
Represents the D-Bus property ‘“SecondaryMenuIsOpen” [gdbus-property-org-x-StatusIcon.SecondaryMenuIsOpen]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- XApp.StatusIconInterface.props.tooltip_text¶
-
Represents the D-Bus property ‘“TooltipText” [gdbus-property-org-x-StatusIcon.TooltipText]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- XApp.StatusIconInterface.props.visible¶
-
Represents the D-Bus property ‘“Visible” [gdbus-property-org-x-StatusIcon.Visible]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.