Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 8.45 KB | None | 0 0
  1. /* lxpanel-applet.vapi generated by valac 0.18.0, do not modify. */
  2.  
  3. namespace Lxpanel {
  4.     [CCode (cheader_filename = "lxpanel-applet.h")]
  5.     public class Applet : Gtk.Box {
  6.         public Applet ();
  7.         protected override bool button_press_event (Gdk.EventButton evt);
  8.         public virtual void customize_context_menu (Gtk.UIManager ui);
  9.         public virtual void edit_config (Gtk.Window? parent_window);
  10.         public static GLib.List<weak Lxpanel.AppletInfo> get_all_types ();
  11.         public virtual bool get_expand ();
  12.         public virtual int get_icon_size ();
  13.         public unowned Lxpanel.AppletInfo get_info ();
  14.         public virtual Gtk.Orientation get_panel_orientation ();
  15.         public virtual Gtk.PositionType get_panel_position ();
  16.         public static void init ();
  17.         public virtual bool load_config (GMarkupDom.Node config_node);
  18.         public static Lxpanel.Applet? new_from_type_name (string type_name);
  19.         public static void register_applet_info (Lxpanel.AppletInfo info);
  20.         public static void reload_applet_types ();
  21.         public virtual void save_config (GMarkupDom.Node config_node);
  22.         public virtual void set_expand (bool expand);
  23.         public virtual void set_icon_size (int size);
  24.         public virtual void set_panel_orientation (Gtk.Orientation orientation);
  25.         public virtual void set_panel_position (Gtk.PositionType pos);
  26.         public void show_context_menu ();
  27.     }
  28.     [CCode (cheader_filename = "lxpanel-applet.h")]
  29.     public class AppletInfo {
  30.         public string[] authors;
  31.         public string? copyright;
  32.         public string? description;
  33.         public bool expandable;
  34.         public Lxpanel.AppletModule? module;
  35.         public string? name;
  36.         public GLib.Type type_id;
  37.         public string type_name;
  38.         public string? version;
  39.         public AppletInfo ();
  40.         public Lxpanel.Applet? create_new ();
  41.         public static Lxpanel.AppletInfo? from_file (string applet_id, string info_path);
  42.     }
  43.     [CCode (cheader_filename = "lxpanel-applet.h")]
  44.     public class AppletModule : GLib.TypeModule {
  45.         public AppletModule (string name, string file);
  46.         public unowned string? get_filename ();
  47.         public unowned string? get_name ();
  48.         public GLib.Type get_type_id ();
  49.         public bool is_loaded ();
  50.         public override bool load ();
  51.         public override void unload ();
  52.     }
  53.     [CCode (cheader_filename = "lxpanel-applet.h")]
  54.     public class Button : Gtk.Button, Gtk.Orientable {
  55.         public Button ();
  56.         protected override void add (Gtk.Widget child);
  57.         protected override bool draw (Cairo.Context cr);
  58.         public unowned GLib.Icon? get_gicon ();
  59.         public unowned Gdk.Pixbuf? get_icon_pixbuf ();
  60.         protected void get_menu_position (Gtk.Menu menu, out int x, out int y, out bool push_in);
  61.         protected void get_popup_position (Gtk.Widget menu, out int x, out int y, out bool push_in);
  62.         protected override void get_preferred_height (out int min, out int natral);
  63.         protected override void get_preferred_width (out int min, out int natral);
  64.         public bool get_show_label (bool show);
  65.         public void set_gicon (GLib.Icon icon, int size);
  66.         public void set_gicon_size (int size);
  67.         public void set_icon_pixbuf (Gdk.Pixbuf pix);
  68.         public new void set_label (string label);
  69.         public void set_show_label (bool show);
  70.         protected override void size_allocate (Gtk.Allocation allocation);
  71.         public Gtk.Orientation orientation { get; set; }
  72.     }
  73.     [CCode (cheader_filename = "lxpanel-applet.h")]
  74.     public class Drawer : Lxpanel.Button {
  75.         protected Lxpanel.Popup? popup;
  76.         public Drawer ();
  77.         protected override void clicked ();
  78.     }
  79.     [CCode (cheader_filename = "lxpanel-applet.h")]
  80.     public class MenuButton : Lxpanel.Button {
  81.         public MenuButton ();
  82.         protected override void clicked ();
  83.         public unowned Gtk.Menu get_menu ();
  84.         public void set_menu (Gtk.Menu menu);
  85.     }
  86.     [CCode (cheader_filename = "lxpanel-applet.h")]
  87.     public class Popup : Gtk.Window {
  88.         public Popup ();
  89.         protected override bool button_press_event (Gdk.EventButton evt);
  90.         protected override bool draw (Cairo.Context cr);
  91.         protected override bool map_event (Gdk.EventAny evt);
  92.         public void popdown ();
  93.         public void popup (Gtk.MenuPositionFunc func, uint button, uint32 activate_time);
  94.         public void popup_for_device (Gdk.Device device, Gtk.MenuPositionFunc func, uint button, uint32 time);
  95.     }
  96.     [CCode (cheader_filename = "lxpanel-applet.h")]
  97.     public static G enum_name_parse<G> (string str);
  98.     [CCode (cheader_filename = "lxpanel-applet.h")]
  99.     public static G enum_nick_parse<G> (string str);
  100.     [CCode (cheader_filename = "lxpanel-applet.h")]
  101.     public static unowned string enum_to_nick<G> (int enum_val);
  102.     [CCode (cheader_filename = "lxpanel-applet.h")]
  103.     public static void launch_folder (GLib.File path, Gdk.Screen? screen);
  104.     [CCode (cheader_filename = "lxpanel-applet.h")]
  105.     public static string locate_theme_dir (string theme_name);
  106.     [CCode (cheader_filename = "lxpanel-applet.h")]
  107.     public static Gdk.Pixbuf? spotlight_pixbuf (Gdk.Pixbuf pix);
  108. }
  109. namespace GMarkupDom {
  110.     [CCode (cheader_filename = "lxpanel-applet.h")]
  111.     public class Doc {
  112.         [Flags]
  113.         public enum Flags {
  114.             PRESERVE_SPACE
  115.         }
  116.         public GMarkupDom.Node root;
  117.         public Doc ();
  118.         public bool load (string path, GMarkupDom.Doc.Flags flags = 0);
  119.         public bool save (string path);
  120.         public string to_string ();
  121.     }
  122.     [CCode (cheader_filename = "lxpanel-applet.h")]
  123.     [Compact]
  124.     public class Node {
  125.         public GMarkupDom.Attribute[] attributes;
  126.         public GLib.List<GMarkupDom.Node> children;
  127.         public string? name;
  128.         public weak GMarkupDom.Node? parent;
  129.         public string? val;
  130.         public Node (GMarkupDom.Node? parent, string? name, string[] attr_names, string[] attr_values);
  131.         public unowned string? get_attribute (string name);
  132.         public unowned GMarkupDom.Node? get_child_by_name (string name);
  133.         public unowned GMarkupDom.Node new_child (string? name, string? val = null, string[]? attr_names = null, string[]? attr_vals = null);
  134.         public void to_string (ref GLib.StringBuilder buf, int depth = 0);
  135.     }
  136.     [CCode (cheader_filename = "lxpanel-applet.h")]
  137.     public struct Attribute {
  138.         public string name;
  139.         public string val;
  140.     }
  141. }
  142. namespace UPower {
  143.     [CCode (cheader_filename = "lxpanel-applet.h")]
  144.     [DBus (name = "org.freedesktop.UPower.Device")]
  145.     public interface Device : GLib.Object {
  146.         public abstract void refresh () throws GLib.IOError;
  147.         public abstract double capacity { get; }
  148.         [DBus (name = "Type")]
  149.         public abstract uint32 device_type { get; }
  150.         public abstract double energy { get; }
  151.         public abstract double energy_empty { get; }
  152.         public abstract double energy_full { get; }
  153.         public abstract double energy_full_design { get; }
  154.         public abstract double energy_rate { get; }
  155.         public abstract bool has_history { get; }
  156.         public abstract bool has_statistics { get; }
  157.         public abstract bool is_present { get; }
  158.         public abstract bool is_rechargeable { get; }
  159.         public abstract string model { owned get; }
  160.         public abstract string native_path { owned get; }
  161.         public abstract bool online { get; }
  162.         public abstract double percentage { get; }
  163.         public abstract bool power_supply { get; }
  164.         public abstract bool recall_notice { get; }
  165.         public abstract string recall_url { owned get; }
  166.         public abstract string recall_vendor { owned get; }
  167.         public abstract string serial { owned get; }
  168.         public abstract uint32 state { get; }
  169.         public abstract uint32 technology { get; }
  170.         public abstract int64 time_to_empty { get; }
  171.         public abstract int64 time_to_full { get; }
  172.         public abstract int64 update_time { get; }
  173.         public abstract string vendor { owned get; }
  174.         public abstract double voltage { get; }
  175.         public signal void changed ();
  176.     }
  177.     [CCode (cheader_filename = "lxpanel-applet.h")]
  178.     [DBus (name = "org.freedesktop.UPower")]
  179.     public interface UPower : GLib.Object {
  180.         public abstract void enumerate_devices (out GLib.ObjectPath[] devices) throws GLib.IOError;
  181.         public abstract bool can_hibernate { get; }
  182.         public abstract bool can_suspend { get; }
  183.         public abstract string daemon_version { owned get; }
  184.         public abstract bool lid_docked { get; }
  185.         public abstract bool lid_force_sleep { get; }
  186.         public abstract bool lid_is_closed { get; }
  187.         public abstract bool lid_is_present { get; }
  188.         public abstract bool on_battery { get; }
  189.         public abstract bool on_low_battery { get; }
  190.         public signal void changed ();
  191.         public signal void device_added (GLib.ObjectPath device);
  192.         public signal void device_changed (GLib.ObjectPath device);
  193.         public signal void device_removed (GLib.ObjectPath device);
  194.         public signal void notify_resume (string action);
  195.         public signal void notify_sleep (string action);
  196.         public signal void resuming ();
  197.         public signal void sleeping ();
  198.     }
  199. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement