ardour
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Gtkmm2ext::TearOff Class Reference

#include <tearoff.h>

Inheritance diagram for Gtkmm2ext::TearOff:

Public Member Functions

 TearOff (Gtk::Widget &contents, bool allow_resize=false)
 
virtual ~TearOff ()
 
void set_visible (bool yn, bool force=false)
 
void set_can_be_torn_off (bool)
 
bool can_be_torn_off () const
 
bool visible () const
 
Gtk::Window & tearoff_window ()
 
bool torn_off () const
 
void tear_it_off ()
 
void put_it_back ()
 
void hide_visible ()
 
void set_state (const XMLNode &)
 
void add_state (XMLNode &) const
 

Public Attributes

sigc::signal< void > Detach
 
sigc::signal< void > Attach
 
sigc::signal< void > Visible
 
sigc::signal< void > Hidden
 

Private Member Functions

gint tearoff_click (GdkEventButton *)
 
gint close_click (GdkEventButton *)
 
gint window_motion (GdkEventMotion *)
 
gint window_button_press (GdkEventButton *)
 
gint window_button_release (GdkEventButton *)
 
gint window_delete_event (GdkEventAny *)
 
void own_window_realized ()
 
bool own_window_configured (GdkEventConfigure *)
 

Private Attributes

Gtk::Widget & contents
 
Gtk::Window own_window
 
Gtk::Arrow tearoff_arrow
 
Gtk::Arrow close_arrow
 
Gtk::HBox window_box
 
Gtk::EventBox tearoff_event_box
 
Gtk::EventBox close_event_box
 
double drag_x
 
double drag_y
 
bool dragging
 
bool _visible
 
bool _torn
 
bool _can_be_torn_off
 
int own_window_width
 
int own_window_height
 
int own_window_xpos
 
int own_window_ypos
 

Detailed Description

Definition at line 34 of file tearoff.h.

Constructor & Destructor Documentation

TearOff::TearOff ( Gtk::Widget &  contents,
bool  allow_resize = false 
)

Definition at line 37 of file tearoff.cc.

TearOff::~TearOff ( )
virtual

Definition at line 95 of file tearoff.cc.

Member Function Documentation

void TearOff::add_state ( XMLNode node) const

Definition at line 267 of file tearoff.cc.

bool Gtkmm2ext::TearOff::can_be_torn_off ( ) const
inline

Definition at line 42 of file tearoff.h.

gint TearOff::close_click ( GdkEventButton *  )
private

Definition at line 170 of file tearoff.cc.

void TearOff::hide_visible ( )

Definition at line 348 of file tearoff.cc.

bool TearOff::own_window_configured ( GdkEventConfigure *  )
private

Definition at line 333 of file tearoff.cc.

void TearOff::own_window_realized ( )
private

Definition at line 322 of file tearoff.cc.

void TearOff::put_it_back ( )

Definition at line 177 of file tearoff.cc.

void TearOff::set_can_be_torn_off ( bool  yn)

Definition at line 100 of file tearoff.cc.

void TearOff::set_state ( const XMLNode node)

Definition at line 286 of file tearoff.cc.

void TearOff::set_visible ( bool  yn,
bool  force = false 
)

Definition at line 115 of file tearoff.cc.

void TearOff::tear_it_off ( )

Definition at line 143 of file tearoff.cc.

gint TearOff::tearoff_click ( GdkEventButton *  )
private

Definition at line 136 of file tearoff.cc.

Gtk::Window& Gtkmm2ext::TearOff::tearoff_window ( )
inline

Definition at line 50 of file tearoff.h.

bool TearOff::torn_off ( ) const

Definition at line 261 of file tearoff.cc.

bool Gtkmm2ext::TearOff::visible ( ) const
inline

Definition at line 43 of file tearoff.h.

gint TearOff::window_button_press ( GdkEventButton *  ev)
private

Definition at line 195 of file tearoff.cc.

gint TearOff::window_button_release ( GdkEventButton *  )
private

Definition at line 213 of file tearoff.cc.

gint TearOff::window_delete_event ( GdkEventAny *  )
private

Definition at line 221 of file tearoff.cc.

gint TearOff::window_motion ( GdkEventMotion *  ev)
private

Definition at line 227 of file tearoff.cc.

Member Data Documentation

bool Gtkmm2ext::TearOff::_can_be_torn_off
private

Definition at line 72 of file tearoff.h.

bool Gtkmm2ext::TearOff::_torn
private

Definition at line 71 of file tearoff.h.

bool Gtkmm2ext::TearOff::_visible
private

Definition at line 70 of file tearoff.h.

sigc::signal<void> Gtkmm2ext::TearOff::Attach

Definition at line 46 of file tearoff.h.

Gtk::Arrow Gtkmm2ext::TearOff::close_arrow
private

Definition at line 63 of file tearoff.h.

Gtk::EventBox Gtkmm2ext::TearOff::close_event_box
private

Definition at line 66 of file tearoff.h.

Gtk::Widget& Gtkmm2ext::TearOff::contents
private

Definition at line 60 of file tearoff.h.

sigc::signal<void> Gtkmm2ext::TearOff::Detach

Definition at line 45 of file tearoff.h.

double Gtkmm2ext::TearOff::drag_x
private

Definition at line 67 of file tearoff.h.

double Gtkmm2ext::TearOff::drag_y
private

Definition at line 68 of file tearoff.h.

bool Gtkmm2ext::TearOff::dragging
private

Definition at line 69 of file tearoff.h.

sigc::signal<void> Gtkmm2ext::TearOff::Hidden

Definition at line 48 of file tearoff.h.

Gtk::Window Gtkmm2ext::TearOff::own_window
private

Definition at line 61 of file tearoff.h.

int Gtkmm2ext::TearOff::own_window_height
private

Definition at line 74 of file tearoff.h.

int Gtkmm2ext::TearOff::own_window_width
private

Definition at line 73 of file tearoff.h.

int Gtkmm2ext::TearOff::own_window_xpos
private

Definition at line 75 of file tearoff.h.

int Gtkmm2ext::TearOff::own_window_ypos
private

Definition at line 76 of file tearoff.h.

Gtk::Arrow Gtkmm2ext::TearOff::tearoff_arrow
private

Definition at line 62 of file tearoff.h.

Gtk::EventBox Gtkmm2ext::TearOff::tearoff_event_box
private

Definition at line 65 of file tearoff.h.

sigc::signal<void> Gtkmm2ext::TearOff::Visible

Definition at line 47 of file tearoff.h.

Gtk::HBox Gtkmm2ext::TearOff::window_box
private

Definition at line 64 of file tearoff.h.


The documentation for this class was generated from the following files: