phosh-media-player/vapi/libphosh-0.45.vapi
Guido Günther 6db441683d example: Add example Vala quick setting plugin
Add a simple example future plugins can be based on together
with the needed build files and ci.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-06-07 11:55:03 +02:00

251 lines
14 KiB
Vala

/* libphosh-0.45.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Phosh", gir_namespace = "Phosh", gir_version = "0", lower_case_cprefix = "phosh_")]
namespace Phosh {
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_dbus_screenshot_proxy_get_type ()")]
public class DBusScreenshotProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, Phosh.DBusScreenshot {
[CCode (cname = "phosh_dbus_screenshot_proxy_new", has_construct_function = false)]
public async DBusScreenshotProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (cname = "phosh_dbus_screenshot_proxy_new_for_bus", has_construct_function = false)]
public async DBusScreenshotProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (has_construct_function = false, type = "PhoshDBusScreenshot*")]
public DBusScreenshotProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false, type = "PhoshDBusScreenshot*")]
public DBusScreenshotProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_dbus_screenshot_skeleton_get_type ()")]
public class DBusScreenshotSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, Phosh.DBusScreenshot {
[CCode (has_construct_function = false, type = "PhoshDBusScreenshot*")]
public DBusScreenshotSkeleton ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_layer_surface_get_type ()")]
public class LayerSurface : Gtk.Window, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false)]
protected LayerSurface ();
[NoAccessorMethod]
public uint anchor { get; set; }
[NoAccessorMethod]
public uint configured_height { get; }
[NoAccessorMethod]
public uint configured_width { get; }
[NoAccessorMethod]
public int exclusive_zone { get; set; }
[NoAccessorMethod]
public uint height { get; set; }
[NoAccessorMethod]
public bool kbd_interactivity { get; set; }
[NoAccessorMethod]
public uint layer { get; set construct; }
[NoAccessorMethod]
public void* layer_shell { get; set; }
[NoAccessorMethod]
public int margin_bottom { get; set; }
[NoAccessorMethod]
public int margin_left { get; set; }
[NoAccessorMethod]
public int margin_right { get; set; }
[NoAccessorMethod]
public int margin_top { get; set; }
[NoAccessorMethod]
public string @namespace { owned get; set; }
[NoAccessorMethod]
public uint width { get; set; }
[NoAccessorMethod]
public void* wl_output { get; set; }
public virtual signal void configured ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_lockscreen_get_type ()")]
public class Lockscreen : Phosh.LayerSurface, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false)]
protected Lockscreen ();
public void add_extra_page (Gtk.Widget widget);
public void clear_pin_entry ();
public Phosh.LockscreenPage get_page ();
public unowned string get_pin_entry ();
public void set_default_page (Phosh.LockscreenPage page);
public void set_page (Phosh.LockscreenPage page);
public void set_unlock_status (string status);
public void shake_pin_entry ();
[NoWrapper]
public virtual void unlock_submit ();
public Phosh.LockscreenPage page { get; }
[NoAccessorMethod]
public bool require_unlock { get; set; }
public signal void lockscreen_unlock ();
public signal void wakeup_output ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_lockscreen_manager_get_type ()")]
public class LockscreenManager : GLib.Object {
[CCode (has_construct_function = false)]
protected LockscreenManager ();
public int64 get_active_time ();
public bool get_locked ();
public unowned Phosh.Lockscreen? get_lockscreen ();
public Phosh.LockscreenPage get_page ();
public void set_locked (bool state);
public bool set_page (Phosh.LockscreenPage page);
public bool locked { get; set; }
public signal void wakeup_outputs ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_quick_setting_get_type ()")]
public class QuickSetting : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public QuickSetting (Phosh.StatusPage status_page);
public bool get_active ();
public bool get_can_show_status ();
public unowned string get_long_press_action_name ();
public unowned string get_long_press_action_target ();
public bool get_showing_status ();
public unowned Phosh.StatusIcon get_status_icon ();
public unowned Phosh.StatusPage get_status_page ();
public void set_active (bool active);
public void set_can_show_status (bool can_show_status);
public void set_long_press_action_name (string action_name);
public void set_long_press_action_target (string action_target);
public void set_showing_status (bool showing_status);
public void set_status_icon (Phosh.StatusIcon status_icon);
public void set_status_page (Phosh.StatusPage status_page);
public bool active { get; set; }
public bool can_show_status { get; set; }
public string long_press_action_name { get; set; }
public string long_press_action_target { get; set; }
public bool showing_status { get; set; }
public Phosh.StatusIcon status_icon { get; set; }
public Phosh.StatusPage status_page { get; set; }
public signal void clicked ();
public signal void hide_status ();
public signal void long_pressed ();
public signal void show_status ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_screenshot_manager_get_type ()")]
public class ScreenshotManager : Phosh.DBusScreenshotSkeleton, GLib.DBusInterface, Phosh.DBusScreenshot {
[CCode (has_construct_function = false)]
public ScreenshotManager ();
public bool take_screenshot (Gdk.Rectangle? area, string? filename, bool copy_to_clipboard, bool include_cursor);
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_shell_get_type ()")]
public class Shell : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
[CCode (has_construct_function = false)]
public Shell ();
public void fade_out (uint timeout);
public static unowned Phosh.Shell get_default ();
public bool get_locked ();
public unowned Phosh.LockscreenManager get_lockscreen_manager ();
public virtual GLib.Type get_lockscreen_type ();
public unowned Phosh.ScreenshotManager get_screenshot_manager ();
public void get_usable_area (out int x, out int y, out int width, out int height);
public void set_default ();
[NoAccessorMethod]
public bool docked { get; set; }
[NoAccessorMethod]
public bool locked { get; set; }
[NoAccessorMethod]
public bool overview_visible { get; set; }
[Version (since = "0.11.0")]
public signal void ready ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_status_icon_get_type ()")]
public class StatusIcon : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public StatusIcon ();
public unowned Gtk.Widget? get_extra_widget ();
public string get_icon_name ();
[Version (deprecated = true, deprecated_since = "0.47")]
public Gtk.IconSize get_icon_size ();
public string get_info ();
public uint get_pixel_size ();
[NoWrapper]
public virtual void idle_init ();
public void set_extra_widget (Gtk.Widget widget);
public void set_icon_name (string icon_name);
[Version (deprecated = true, deprecated_since = "0.47")]
public void set_icon_size (Gtk.IconSize size);
public void set_info (string info);
public void set_pixel_size (uint size);
public Gtk.Widget extra_widget { get; set; }
public string icon_name { owned get; set; }
public Gtk.IconSize icon_size { get; set; }
public string info { owned get; set; }
public uint pixel_size { get; set; }
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_status_page_get_type ()")]
public class StatusPage : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false)]
public StatusPage ();
public unowned Gtk.Widget get_content ();
public unowned Gtk.Widget get_footer ();
public unowned Gtk.Widget get_header ();
public unowned string get_title ();
public void set_content (Gtk.Widget content);
public void set_footer (Gtk.Widget footer);
public void set_header (Gtk.Widget header);
public void set_title (string title);
public Gtk.Widget content { get; set; }
public Gtk.Widget footer { get; set; }
public Gtk.Widget header { get; set; }
public string title { get; set; }
public signal void done ();
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_wall_clock_get_type ()")]
public class WallClock : GLib.Object {
[CCode (has_construct_function = false)]
public WallClock ();
public virtual unowned string get_clock (bool time_only);
public static unowned Phosh.WallClock get_default ();
[NoWrapper]
public virtual int64 get_time_t ();
public string local_date ();
public void set_default ();
public string string_for_datetime (GLib.DateTime datetime, GDesktop.ClockFormat clock_format, bool show_full_date);
[NoAccessorMethod]
public string date_time { owned get; }
[NoAccessorMethod]
public string time { owned get; }
}
[CCode (cheader_filename = "libphosh.h", type_id = "phosh_dbus_screenshot_get_type ()")]
public interface DBusScreenshot : GLib.Object {
public async bool call_flash_area (int arg_x, int arg_y, int arg_width, int arg_height, GLib.Cancellable? cancellable) throws GLib.Error;
public bool call_flash_area_sync (int arg_x, int arg_y, int arg_width, int arg_height, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (async_result_pos = 2.1)]
public async bool call_pick_color (GLib.Cancellable? cancellable, out GLib.Variant out_result) throws GLib.Error;
public bool call_pick_color_sync (out GLib.Variant out_result, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (async_result_pos = 3.1)]
public async bool call_screenshot (bool arg_include_cursor, bool arg_flash, string arg_filename, GLib.Cancellable? cancellable, out bool out_success, out string out_filename_used) throws GLib.Error;
[CCode (async_result_pos = 3.1)]
public async bool call_screenshot_area (int arg_x, int arg_y, int arg_width, int arg_height, bool arg_flash, string arg_filename, GLib.Cancellable? cancellable, out bool out_success, out string out_filename_used) throws GLib.Error;
public bool call_screenshot_area_sync (int arg_x, int arg_y, int arg_width, int arg_height, bool arg_flash, string arg_filename, out bool out_success, out string out_filename_used, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool call_screenshot_sync (bool arg_include_cursor, bool arg_flash, string arg_filename, out bool out_success, out string out_filename_used, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (async_result_pos = 3.1)]
public async bool call_screenshot_window (bool arg_include_frame, bool arg_include_cursor, bool arg_flash, string arg_filename, GLib.Cancellable? cancellable, out bool out_success, out string out_filename_used) throws GLib.Error;
public bool call_screenshot_window_sync (bool arg_include_frame, bool arg_include_cursor, bool arg_flash, string arg_filename, out bool out_success, out string out_filename_used, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (async_result_pos = 5.1)]
public async bool call_select_area (GLib.Cancellable? cancellable, out int out_x, out int out_y, out int out_width, out int out_height) throws GLib.Error;
public bool call_select_area_sync (out int out_x, out int out_y, out int out_width, out int out_height, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void complete_flash_area (owned GLib.DBusMethodInvocation invocation);
public void complete_pick_color (owned GLib.DBusMethodInvocation invocation, GLib.Variant result);
public void complete_screenshot (owned GLib.DBusMethodInvocation invocation, bool success, string filename_used);
public void complete_screenshot_area (owned GLib.DBusMethodInvocation invocation, bool success, string filename_used);
public void complete_screenshot_window (owned GLib.DBusMethodInvocation invocation, bool success, string filename_used);
public void complete_select_area (owned GLib.DBusMethodInvocation invocation, int x, int y, int width, int height);
public static unowned GLib.DBusInterfaceInfo interface_info ();
public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
public virtual signal bool handle_flash_area (GLib.DBusMethodInvocation invocation, int arg_x, int arg_y, int arg_width, int arg_height);
public virtual signal bool handle_pick_color (GLib.DBusMethodInvocation invocation);
public virtual signal bool handle_screenshot (GLib.DBusMethodInvocation invocation, bool arg_include_cursor, bool arg_flash, string arg_filename);
public virtual signal bool handle_screenshot_area (GLib.DBusMethodInvocation invocation, int arg_x, int arg_y, int arg_width, int arg_height, bool arg_flash, string arg_filename);
public virtual signal bool handle_screenshot_window (GLib.DBusMethodInvocation invocation, bool arg_include_frame, bool arg_include_cursor, bool arg_flash, string arg_filename);
public virtual signal bool handle_select_area (GLib.DBusMethodInvocation invocation);
}
[CCode (cheader_filename = "libphosh.h", cprefix = "PHOSH_LOCKSCREEN_PAGE_", type_id = "phosh_lockscreen_page_get_type ()")]
public enum LockscreenPage {
INFO,
EXTRA,
UNLOCK
}
[CCode (cheader_filename = "libphosh.h")]
[Version (replacement = "DBusScreenshot.interface_info")]
public static unowned GLib.DBusInterfaceInfo dbus_screenshot_interface_info ();
[CCode (cheader_filename = "libphosh.h")]
[Version (replacement = "DBusScreenshot.override_properties")]
public static uint dbus_screenshot_override_properties (GLib.ObjectClass klass, uint property_id_begin);
}