Merge branch 'windows' of git.ardour.org:ardour/ardour into windows
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / tearoff.h
index 9aff73fbb16ee238258628462b48118c42a42e27..7f4358c15454fa334b6dc0980a30c05ddbd15ab8 100644 (file)
@@ -35,9 +35,10 @@ class TearOff : public Gtk::HBox
        TearOff (Gtk::Widget& contents, bool allow_resize = false);
        virtual ~TearOff ();
 
-       void set_visible (bool yn);
+       void set_visible (bool yn, bool force = false);
        void set_can_be_torn_off (bool);
        bool can_be_torn_off () const { return _can_be_torn_off; }
+       bool visible () const { return _visible; }
 
        sigc::signal<void> Detach;
        sigc::signal<void> Attach;
@@ -65,6 +66,7 @@ class TearOff : public Gtk::HBox
        double         drag_y;
        bool           dragging;
        bool          _visible;
+       bool          _torn;
        bool          _can_be_torn_off;
         int            own_window_width;
         int            own_window_height;