Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* lxpanel-applet.vapi generated by valac 0.18.0, do not modify. */
- namespace Lxpanel {
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class Applet : Gtk.Box {
- public Applet ();
- protected override bool button_press_event (Gdk.EventButton evt);
- public virtual void customize_context_menu (Gtk.UIManager ui);
- public virtual void edit_config (Gtk.Window? parent_window);
- public static GLib.List<weak Lxpanel.AppletInfo> get_all_types ();
- public virtual bool get_expand ();
- public virtual int get_icon_size ();
- public unowned Lxpanel.AppletInfo get_info ();
- public virtual Gtk.Orientation get_panel_orientation ();
- public virtual Gtk.PositionType get_panel_position ();
- public static void init ();
- public virtual bool load_config (GMarkupDom.Node config_node);
- public static Lxpanel.Applet? new_from_type_name (string type_name);
- public static void register_applet_info (Lxpanel.AppletInfo info);
- public static void reload_applet_types ();
- public virtual void save_config (GMarkupDom.Node config_node);
- public virtual void set_expand (bool expand);
- public virtual void set_icon_size (int size);
- public virtual void set_panel_orientation (Gtk.Orientation orientation);
- public virtual void set_panel_position (Gtk.PositionType pos);
- public void show_context_menu ();
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class AppletInfo {
- public string[] authors;
- public string? copyright;
- public string? description;
- public bool expandable;
- public Lxpanel.AppletModule? module;
- public string? name;
- public GLib.Type type_id;
- public string type_name;
- public string? version;
- public AppletInfo ();
- public Lxpanel.Applet? create_new ();
- public static Lxpanel.AppletInfo? from_file (string applet_id, string info_path);
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class AppletModule : GLib.TypeModule {
- public AppletModule (string name, string file);
- public unowned string? get_filename ();
- public unowned string? get_name ();
- public GLib.Type get_type_id ();
- public bool is_loaded ();
- public override bool load ();
- public override void unload ();
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class Button : Gtk.Button, Gtk.Orientable {
- public Button ();
- protected override void add (Gtk.Widget child);
- protected override bool draw (Cairo.Context cr);
- public unowned GLib.Icon? get_gicon ();
- public unowned Gdk.Pixbuf? get_icon_pixbuf ();
- protected void get_menu_position (Gtk.Menu menu, out int x, out int y, out bool push_in);
- protected void get_popup_position (Gtk.Widget menu, out int x, out int y, out bool push_in);
- protected override void get_preferred_height (out int min, out int natral);
- protected override void get_preferred_width (out int min, out int natral);
- public bool get_show_label (bool show);
- public void set_gicon (GLib.Icon icon, int size);
- public void set_gicon_size (int size);
- public void set_icon_pixbuf (Gdk.Pixbuf pix);
- public new void set_label (string label);
- public void set_show_label (bool show);
- protected override void size_allocate (Gtk.Allocation allocation);
- public Gtk.Orientation orientation { get; set; }
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class Drawer : Lxpanel.Button {
- protected Lxpanel.Popup? popup;
- public Drawer ();
- protected override void clicked ();
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class MenuButton : Lxpanel.Button {
- public MenuButton ();
- protected override void clicked ();
- public unowned Gtk.Menu get_menu ();
- public void set_menu (Gtk.Menu menu);
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class Popup : Gtk.Window {
- public Popup ();
- protected override bool button_press_event (Gdk.EventButton evt);
- protected override bool draw (Cairo.Context cr);
- protected override bool map_event (Gdk.EventAny evt);
- public void popdown ();
- public void popup (Gtk.MenuPositionFunc func, uint button, uint32 activate_time);
- public void popup_for_device (Gdk.Device device, Gtk.MenuPositionFunc func, uint button, uint32 time);
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static G enum_name_parse<G> (string str);
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static G enum_nick_parse<G> (string str);
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static unowned string enum_to_nick<G> (int enum_val);
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static void launch_folder (GLib.File path, Gdk.Screen? screen);
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static string locate_theme_dir (string theme_name);
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public static Gdk.Pixbuf? spotlight_pixbuf (Gdk.Pixbuf pix);
- }
- namespace GMarkupDom {
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public class Doc {
- [Flags]
- public enum Flags {
- PRESERVE_SPACE
- }
- public GMarkupDom.Node root;
- public Doc ();
- public bool load (string path, GMarkupDom.Doc.Flags flags = 0);
- public bool save (string path);
- public string to_string ();
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- [Compact]
- public class Node {
- public GMarkupDom.Attribute[] attributes;
- public GLib.List<GMarkupDom.Node> children;
- public string? name;
- public weak GMarkupDom.Node? parent;
- public string? val;
- public Node (GMarkupDom.Node? parent, string? name, string[] attr_names, string[] attr_values);
- public unowned string? get_attribute (string name);
- public unowned GMarkupDom.Node? get_child_by_name (string name);
- public unowned GMarkupDom.Node new_child (string? name, string? val = null, string[]? attr_names = null, string[]? attr_vals = null);
- public void to_string (ref GLib.StringBuilder buf, int depth = 0);
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- public struct Attribute {
- public string name;
- public string val;
- }
- }
- namespace UPower {
- [CCode (cheader_filename = "lxpanel-applet.h")]
- [DBus (name = "org.freedesktop.UPower.Device")]
- public interface Device : GLib.Object {
- public abstract void refresh () throws GLib.IOError;
- public abstract double capacity { get; }
- [DBus (name = "Type")]
- public abstract uint32 device_type { get; }
- public abstract double energy { get; }
- public abstract double energy_empty { get; }
- public abstract double energy_full { get; }
- public abstract double energy_full_design { get; }
- public abstract double energy_rate { get; }
- public abstract bool has_history { get; }
- public abstract bool has_statistics { get; }
- public abstract bool is_present { get; }
- public abstract bool is_rechargeable { get; }
- public abstract string model { owned get; }
- public abstract string native_path { owned get; }
- public abstract bool online { get; }
- public abstract double percentage { get; }
- public abstract bool power_supply { get; }
- public abstract bool recall_notice { get; }
- public abstract string recall_url { owned get; }
- public abstract string recall_vendor { owned get; }
- public abstract string serial { owned get; }
- public abstract uint32 state { get; }
- public abstract uint32 technology { get; }
- public abstract int64 time_to_empty { get; }
- public abstract int64 time_to_full { get; }
- public abstract int64 update_time { get; }
- public abstract string vendor { owned get; }
- public abstract double voltage { get; }
- public signal void changed ();
- }
- [CCode (cheader_filename = "lxpanel-applet.h")]
- [DBus (name = "org.freedesktop.UPower")]
- public interface UPower : GLib.Object {
- public abstract void enumerate_devices (out GLib.ObjectPath[] devices) throws GLib.IOError;
- public abstract bool can_hibernate { get; }
- public abstract bool can_suspend { get; }
- public abstract string daemon_version { owned get; }
- public abstract bool lid_docked { get; }
- public abstract bool lid_force_sleep { get; }
- public abstract bool lid_is_closed { get; }
- public abstract bool lid_is_present { get; }
- public abstract bool on_battery { get; }
- public abstract bool on_low_battery { get; }
- public signal void changed ();
- public signal void device_added (GLib.ObjectPath device);
- public signal void device_changed (GLib.ObjectPath device);
- public signal void device_removed (GLib.ObjectPath device);
- public signal void notify_resume (string action);
- public signal void notify_sleep (string action);
- public signal void resuming ();
- public signal void sleeping ();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement