Ardour  9.0-pre0-822-g12e3bc5c20
ArdourWidgets::TearOff Class Reference

#include <tearoff.h>

Inheritance diagram for ArdourWidgets::TearOff:
[legend]

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()

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

◆ ~TearOff()

virtual ArdourWidgets::TearOff::~TearOff ( )
virtual

Member Function Documentation

◆ add_state()

void ArdourWidgets::TearOff::add_state ( XMLNode ) const

◆ can_be_torn_off()

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

Definition at line 42 of file tearoff.h.

◆ close_click()

gint ArdourWidgets::TearOff::close_click ( GdkEventButton *  )
private

◆ hide_visible()

void ArdourWidgets::TearOff::hide_visible ( )

◆ own_window_configured()

bool ArdourWidgets::TearOff::own_window_configured ( GdkEventConfigure *  )
private

◆ own_window_realized()

void ArdourWidgets::TearOff::own_window_realized ( )
private

◆ put_it_back()

void ArdourWidgets::TearOff::put_it_back ( )

◆ set_can_be_torn_off()

void ArdourWidgets::TearOff::set_can_be_torn_off ( bool  )

◆ set_state()

void ArdourWidgets::TearOff::set_state ( const XMLNode )

◆ set_visible()

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

◆ tear_it_off()

void ArdourWidgets::TearOff::tear_it_off ( )

◆ tearoff_click()

gint ArdourWidgets::TearOff::tearoff_click ( GdkEventButton *  )
private

◆ tearoff_window()

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

Definition at line 50 of file tearoff.h.

◆ torn_off()

bool ArdourWidgets::TearOff::torn_off ( ) const

◆ visible()

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

Definition at line 43 of file tearoff.h.

◆ window_button_press()

gint ArdourWidgets::TearOff::window_button_press ( GdkEventButton *  )
private

◆ window_button_release()

gint ArdourWidgets::TearOff::window_button_release ( GdkEventButton *  )
private

◆ window_delete_event()

gint ArdourWidgets::TearOff::window_delete_event ( GdkEventAny *  )
private

◆ window_motion()

gint ArdourWidgets::TearOff::window_motion ( GdkEventMotion *  )
private

Member Data Documentation

◆ _can_be_torn_off

bool ArdourWidgets::TearOff::_can_be_torn_off
private

Definition at line 72 of file tearoff.h.

◆ _torn

bool ArdourWidgets::TearOff::_torn
private

Definition at line 71 of file tearoff.h.

◆ _visible

bool ArdourWidgets::TearOff::_visible
private

Definition at line 70 of file tearoff.h.

◆ Attach

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

Definition at line 46 of file tearoff.h.

◆ close_arrow

Gtk::Arrow ArdourWidgets::TearOff::close_arrow
private

Definition at line 63 of file tearoff.h.

◆ close_event_box

Gtk::EventBox ArdourWidgets::TearOff::close_event_box
private

Definition at line 66 of file tearoff.h.

◆ contents

Gtk::Widget& ArdourWidgets::TearOff::contents
private

Definition at line 60 of file tearoff.h.

◆ Detach

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

Definition at line 45 of file tearoff.h.

◆ drag_x

double ArdourWidgets::TearOff::drag_x
private

Definition at line 67 of file tearoff.h.

◆ drag_y

double ArdourWidgets::TearOff::drag_y
private

Definition at line 68 of file tearoff.h.

◆ dragging

bool ArdourWidgets::TearOff::dragging
private

Definition at line 69 of file tearoff.h.

◆ Hidden

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

Definition at line 48 of file tearoff.h.

◆ own_window

Gtk::Window ArdourWidgets::TearOff::own_window
private

Definition at line 61 of file tearoff.h.

◆ own_window_height

int ArdourWidgets::TearOff::own_window_height
private

Definition at line 74 of file tearoff.h.

◆ own_window_width

int ArdourWidgets::TearOff::own_window_width
private

Definition at line 73 of file tearoff.h.

◆ own_window_xpos

int ArdourWidgets::TearOff::own_window_xpos
private

Definition at line 75 of file tearoff.h.

◆ own_window_ypos

int ArdourWidgets::TearOff::own_window_ypos
private

Definition at line 76 of file tearoff.h.

◆ tearoff_arrow

Gtk::Arrow ArdourWidgets::TearOff::tearoff_arrow
private

Definition at line 62 of file tearoff.h.

◆ tearoff_event_box

Gtk::EventBox ArdourWidgets::TearOff::tearoff_event_box
private

Definition at line 65 of file tearoff.h.

◆ Visible

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

Definition at line 47 of file tearoff.h.

◆ window_box

Gtk::HBox ArdourWidgets::TearOff::window_box
private

Definition at line 64 of file tearoff.h.


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