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

#include <pane.h>

Inheritance diagram for ArdourWidgets::Pane:
[legend]

Classes

struct  Child
 
struct  Divider
 

Public Types

typedef std::vector< std::shared_ptr< Child > > Children
 

Public Member Functions

 Pane (bool horizontal)
 
 ~Pane ()
 
void set_divider (std::vector< float >::size_type divider, float fract)
 
float get_divider (std::vector< float >::size_type divider=0) const
 
void set_child_minsize (Gtk::Widget const &, int32_t)
 
GType child_type_vfunc () const
 
void set_drag_cursor (Gdk::Cursor)
 
void set_check_divider_position (bool)
 

Protected Member Functions

void on_add (Gtk::Widget *)
 
void on_remove (Gtk::Widget *)
 
void on_size_request (GtkRequisition *)
 
void on_size_allocate (Gtk::Allocation &)
 
bool on_expose_event (GdkEventExpose *)
 
bool handle_press_event (GdkEventButton *, Divider *)
 
bool handle_release_event (GdkEventButton *, Divider *)
 
bool handle_motion_event (GdkEventMotion *, Divider *)
 
bool handle_enter_event (GdkEventCrossing *, Divider *)
 
bool handle_leave_event (GdkEventCrossing *, Divider *)
 
void forall_vfunc (gboolean include_internals, GtkCallback callback, gpointer callback_data)
 

Protected Attributes

bool horizontal
 

Private Types

typedef std::list< Divider * > Dividers
 

Private Member Functions

void reallocate (Gtk::Allocation const &)
 
void add_divider ()
 
void handle_child_visibility ()
 
float constrain_fract (Dividers::size_type, float fract)
 
void * child_destroyed (Gtk::Widget *)
 

Static Private Member Functions

static void * notify_child_destroyed (void *)
 

Private Attributes

Gdk::Cursor drag_cursor
 
bool did_move
 
Children children
 
Dividers dividers
 
int divider_width
 
bool check_fract
 

Detailed Description

Definition at line 41 of file pane.h.

Member Typedef Documentation

◆ Children

typedef std::vector<std::shared_ptr<Child> > ArdourWidgets::Pane::Children

Definition at line 58 of file pane.h.

◆ Dividers

typedef std::list<Divider*> ArdourWidgets::Pane::Dividers
private

Definition at line 106 of file pane.h.

Constructor & Destructor Documentation

◆ Pane()

ArdourWidgets::Pane::Pane ( bool  horizontal)

◆ ~Pane()

ArdourWidgets::Pane::~Pane ( )

Member Function Documentation

◆ add_divider()

void ArdourWidgets::Pane::add_divider ( )
private

◆ child_destroyed()

void* ArdourWidgets::Pane::child_destroyed ( Gtk::Widget *  )
private

◆ child_type_vfunc()

GType ArdourWidgets::Pane::child_type_vfunc ( ) const

◆ constrain_fract()

float ArdourWidgets::Pane::constrain_fract ( Dividers::size_type  ,
float  fract 
)
private

◆ forall_vfunc()

void ArdourWidgets::Pane::forall_vfunc ( gboolean  include_internals,
GtkCallback  callback,
gpointer  callback_data 
)
protected

◆ get_divider()

float ArdourWidgets::Pane::get_divider ( std::vector< float >::size_type  divider = 0) const

◆ handle_child_visibility()

void ArdourWidgets::Pane::handle_child_visibility ( )
private

◆ handle_enter_event()

bool ArdourWidgets::Pane::handle_enter_event ( GdkEventCrossing *  ,
Divider  
)
protected

◆ handle_leave_event()

bool ArdourWidgets::Pane::handle_leave_event ( GdkEventCrossing *  ,
Divider  
)
protected

◆ handle_motion_event()

bool ArdourWidgets::Pane::handle_motion_event ( GdkEventMotion *  ,
Divider  
)
protected

◆ handle_press_event()

bool ArdourWidgets::Pane::handle_press_event ( GdkEventButton *  ,
Divider  
)
protected

◆ handle_release_event()

bool ArdourWidgets::Pane::handle_release_event ( GdkEventButton *  ,
Divider  
)
protected

◆ notify_child_destroyed()

static void* ArdourWidgets::Pane::notify_child_destroyed ( void *  )
staticprivate

◆ on_add()

void ArdourWidgets::Pane::on_add ( Gtk::Widget *  )
protected

◆ on_expose_event()

bool ArdourWidgets::Pane::on_expose_event ( GdkEventExpose *  )
protected

◆ on_remove()

void ArdourWidgets::Pane::on_remove ( Gtk::Widget *  )
protected

◆ on_size_allocate()

void ArdourWidgets::Pane::on_size_allocate ( Gtk::Allocation &  )
protected

◆ on_size_request()

void ArdourWidgets::Pane::on_size_request ( GtkRequisition *  )
protected

◆ reallocate()

void ArdourWidgets::Pane::reallocate ( Gtk::Allocation const &  )
private

◆ set_check_divider_position()

void ArdourWidgets::Pane::set_check_divider_position ( bool  )

◆ set_child_minsize()

void ArdourWidgets::Pane::set_child_minsize ( Gtk::Widget const &  ,
int32_t   
)

◆ set_divider()

void ArdourWidgets::Pane::set_divider ( std::vector< float >::size_type  divider,
float  fract 
)

◆ set_drag_cursor()

void ArdourWidgets::Pane::set_drag_cursor ( Gdk::Cursor  )

Member Data Documentation

◆ check_fract

bool ArdourWidgets::Pane::check_fract
private

Definition at line 109 of file pane.h.

◆ children

Children ArdourWidgets::Pane::children
private

Definition at line 95 of file pane.h.

◆ did_move

bool ArdourWidgets::Pane::did_move
private

Definition at line 91 of file pane.h.

◆ divider_width

int ArdourWidgets::Pane::divider_width
private

Definition at line 108 of file pane.h.

◆ dividers

Dividers ArdourWidgets::Pane::dividers
private

Definition at line 107 of file pane.h.

◆ drag_cursor

Gdk::Cursor ArdourWidgets::Pane::drag_cursor
private

Definition at line 90 of file pane.h.

◆ horizontal

bool ArdourWidgets::Pane::horizontal
protected

Definition at line 73 of file pane.h.


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