1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
/* libnotes.vapi generated by valac 0.56.17, do not modify. */
namespace Xnp {
[CCode (cheader_filename = "libnotes.h")]
public class Application : GLib.Object {
public bool system_tray_mode;
public Application (string config_file);
public Gtk.Menu context_menu ();
public Xnp.Window? create_window (string? name = null);
public unowned GLib.SList<Xnp.Window> get_window_list ();
public void open_about_dialog ();
public void open_settings_dialog ();
public void quit ();
public void save_notes ();
public bool save_windows_configuration ();
public void show_hide_notes ();
public Application.with_notes_path (string config_file, string notes_path);
public string config_file { get; construct; }
public Xnp.Window? next_focus { get; }
public string notes_path { get; set construct; }
public bool skip_taskbar_hint { get; set; }
}
[CCode (cheader_filename = "libnotes.h")]
public class HypertextView : Gtk.SourceView {
public HypertextView ();
public void redo ();
public void undo ();
public void update_tags ();
public string font { get; set; }
}
[CCode (cheader_filename = "libnotes.h")]
public abstract class IconButton : Gtk.EventBox {
protected bool active;
protected IconButton ();
public override void add (Gtk.Widget widget);
public override bool draw (Cairo.Context cr);
protected abstract void draw_icon (Cairo.Context cr, int width, int height);
protected void set_widget_source_color (Cairo.Context cr);
public bool enabled { get; set; }
public signal void clicked ();
}
[CCode (cheader_filename = "libnotes.h")]
public class Note : Gtk.ScrolledWindow {
public bool backed;
public ulong save_handler_id;
public ulong tab_handler_id;
public Xnp.HypertextView text_view;
public Note (string name);
public void save ();
public bool dirty { get; set; }
public new string name { get; set; }
public string text { owned get; set; }
public signal void save_data ();
}
[CCode (cheader_filename = "libnotes.h")]
public class Theme : GLib.Object {
public Theme ();
public void use_color (string color);
public void use_gtk_style ();
}
[CCode (cheader_filename = "libnotes.h")]
public class ThemeGtkcss : GLib.Object {
public ThemeGtkcss ();
public void update_color_css (Gdk.RGBA rgba);
public bool use_gtk_style { get; set; }
}
[CCode (cheader_filename = "libnotes.h")]
public class TitleBarButton : Xnp.IconButton {
public TitleBarButton (Xnp.TitleBarButtonType icon_type);
protected override void draw_icon (Cairo.Context cr, int width, int height);
public Xnp.TitleBarButtonType icon_type { get; set construct; }
}
[CCode (cheader_filename = "libnotes.h")]
public class Window : Gtk.Window {
public Window (Xnp.Application app);
public int compare_func (Xnp.Window win2);
public void connect_note_signals (Xnp.Note note, Gtk.EventBox tab_evbox);
public void delete_current_note ();
public void dialog_destroy (Gtk.Dialog dialog);
public void dialog_hide (Gtk.Dialog dialog);
public void disconnect_note_signals (Xnp.Note note, Gtk.EventBox tab_evbox);
public int get_current_page ();
public void get_geometry (out int winx, out int winy, out int width, out int height);
public string[] get_note_names ();
public Gtk.EventBox get_tab_evbox (Xnp.Note note);
public new void hide ();
public Xnp.Note insert_note (string? name = null);
public void move_note (string note_name, int page);
public void popup_error (string message);
public void rename_current_note ();
public void save_notes ();
public void set_current_page (int page);
public bool above { get; set; }
public Xnp.Note current_note { get; }
public bool empty { get; }
public int n_pages { get; }
public new string name { get; set; }
public bool show_refresh_button { get; set; }
public bool show_tabs { get; set; }
public bool sticky { get; set; }
public int tabs_position { get; set; }
public signal void action (string action);
public signal void note_deleted (Xnp.Note note);
public signal void note_inserted (Xnp.Note note);
public signal bool note_moved (Xnp.Window src_win, Xnp.Note note);
public signal void note_renamed (Xnp.Note note, string name);
public signal void save_data (Xnp.Note note);
}
[CCode (cheader_filename = "libnotes.h")]
public class WindowMonitor : GLib.Object {
public Xnp.Window window;
public WindowMonitor (Xnp.Window window, GLib.File file);
public signal void note_created (string note_name);
public signal void note_deleted (string note_name);
public signal void note_updated (string note_name);
public signal void window_updated (Xnp.Window window);
}
[CCode (cheader_filename = "libnotes.h")]
public enum TitleBarButtonType {
EMPTY,
CLOSE,
LEFT_ARROW,
RIGHT_ARROW,
REFRESH
}
}
|