The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

NativeWindow.vala in libbirdfont

This file is a part of the Birdfont project.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git

Revisions

View the latest version of libbirdfont/NativeWindow.vala.
Suppress zoom when canvas is moving
1 /* 2 Copyright (C) 2012, 2013, 2014 Johan Mattsson 3 4 This library is free software; you can redistribute it and/or modify 5 it under the terms of the GNU Lesser General Public License as 6 published by the Free Software Foundation; either version 3 of the 7 License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, but 10 WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 */ 14 15 namespace BirdFont { 16 17 public interface NativeWindow : GLib.Object { 18 public abstract void file_chooser (string title, FileChooser file_chooser_callback, uint flags); 19 20 public abstract void update_window_size (); 21 22 public abstract string get_clipboard_data (); 23 public abstract void set_clipboard (string data); 24 public abstract void set_inkscape_clipboard (string data); 25 26 public abstract void color_selection (ColorTool color_tool); 27 28 public abstract void set_scrollbar_size (double size); 29 public abstract void set_scrollbar_position (double position); 30 31 /** Show overwrite dialog */ 32 public abstract void set_overwrite_dialog (OverWriteDialogListener dialog); 33 34 /** Notify the UI about the new font. */ 35 public abstract void font_loaded (); 36 37 /** Exit the application. */ 38 public abstract void quit (); 39 40 /** Convert an image to PNG format. */ 41 public abstract bool convert_to_png (string from, string to); 42 43 /** Export fonts in a background thread. */ 44 public abstract void export_font (); 45 46 /** Load font in a background thread. */ 47 public abstract void load (); 48 49 /** Save font in a background thread. */ 50 public abstract void save (); 51 52 /** Load images in a background thread. */ 53 public abstract void load_background_image (); 54 55 /** Load images in a background thread. */ 56 public abstract void run_background_thread (Task t); 57 58 /** Copy text to clipboard. */ 59 public abstract void set_clipboard_text (string text); 60 61 /** Get text from clipboard. */ 62 public abstract string get_clipboard_text (); 63 64 /** @return true if the current font can be exported. */ 65 public abstract bool can_export (); 66 } 67 68 } 69