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

#include <frame.h>

Inheritance diagram for ArdourWidgets::Frame:
[legend]

Public Types

enum  Orientation { Horizontal , Vertical }
 

Public Member Functions

 Frame (Orientation orientation=Horizontal, bool force_boxy=false)
 
 ~Frame ()
 
void set_label (std::string const &)
 
void set_padding (int)
 
void set_edge_color (Gtkmm2ext::Color)
 
void reset_edge_color ()
 
void set_draw (bool yn)
 
bool draw () const
 

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 *)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_name_changed ()
 

Private Member Functions

Glib::RefPtr< Gtk::Style > get_parent_style ()
 

Private Attributes

Orientation _orientation
 
Gtk::Widget * _w
 
Gtk::Widget * _current_parent
 
sigc::connection _parent_style_change
 
Glib::RefPtr< Pango::Layout > _layout
 
std::string _label_text
 
std::optional< Gdk::Color > _edge_color
 
GtkRequisition _min_size
 
int _border
 
int _padding
 
int _label_pad_w
 
int _label_pad_h
 
int _label_left
 
int _text_width
 
int _text_height
 
int _alloc_x0
 
int _alloc_y0
 
bool _boxy
 
bool _draw
 

Additional Inherited Members

- Static Public Member Functions inherited from Gtkmm2ext::CairoTheme
static void set_flat_buttons (bool yn)
 
static void set_boxy_buttons (bool yn)
 
static void set_widget_prelight (bool yn)
 
static bool flat_buttons ()
 
static bool boxy_buttons ()
 
static bool widget_prelight ()
 

Detailed Description

Definition at line 31 of file frame.h.

Member Enumeration Documentation

◆ Orientation

Enumerator
Horizontal 
Vertical 

Definition at line 34 of file frame.h.

Constructor & Destructor Documentation

◆ Frame()

ArdourWidgets::Frame::Frame ( Orientation  orientation = Horizontal,
bool  force_boxy = false 
)

◆ ~Frame()

ArdourWidgets::Frame::~Frame ( )

Member Function Documentation

◆ draw()

bool ArdourWidgets::Frame::draw ( ) const
inline

Definition at line 48 of file frame.h.

◆ get_parent_style()

Glib::RefPtr<Gtk::Style> ArdourWidgets::Frame::get_parent_style ( )
private

◆ on_add()

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

◆ on_expose_event()

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

◆ on_name_changed()

void ArdourWidgets::Frame::on_name_changed ( )
protected

◆ on_remove()

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

◆ on_size_allocate()

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

◆ on_size_request()

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

◆ on_style_changed()

void ArdourWidgets::Frame::on_style_changed ( const Glib::RefPtr< Gtk::Style > &  )
protected

◆ reset_edge_color()

void ArdourWidgets::Frame::reset_edge_color ( )

◆ set_draw()

void ArdourWidgets::Frame::set_draw ( bool  yn)

◆ set_edge_color()

void ArdourWidgets::Frame::set_edge_color ( Gtkmm2ext::Color  )

◆ set_label()

void ArdourWidgets::Frame::set_label ( std::string const &  )

◆ set_padding()

void ArdourWidgets::Frame::set_padding ( int  )

Member Data Documentation

◆ _alloc_x0

int ArdourWidgets::Frame::_alloc_x0
private

Definition at line 78 of file frame.h.

◆ _alloc_y0

int ArdourWidgets::Frame::_alloc_y0
private

Definition at line 79 of file frame.h.

◆ _border

int ArdourWidgets::Frame::_border
private

Definition at line 71 of file frame.h.

◆ _boxy

bool ArdourWidgets::Frame::_boxy
private

Definition at line 80 of file frame.h.

◆ _current_parent

Gtk::Widget* ArdourWidgets::Frame::_current_parent
private

Definition at line 64 of file frame.h.

◆ _draw

bool ArdourWidgets::Frame::_draw
private

Definition at line 81 of file frame.h.

◆ _edge_color

std::optional<Gdk::Color> ArdourWidgets::Frame::_edge_color
private

Definition at line 68 of file frame.h.

◆ _label_left

int ArdourWidgets::Frame::_label_left
private

Definition at line 75 of file frame.h.

◆ _label_pad_h

int ArdourWidgets::Frame::_label_pad_h
private

Definition at line 74 of file frame.h.

◆ _label_pad_w

int ArdourWidgets::Frame::_label_pad_w
private

Definition at line 73 of file frame.h.

◆ _label_text

std::string ArdourWidgets::Frame::_label_text
private

Definition at line 67 of file frame.h.

◆ _layout

Glib::RefPtr<Pango::Layout> ArdourWidgets::Frame::_layout
private

Definition at line 66 of file frame.h.

◆ _min_size

GtkRequisition ArdourWidgets::Frame::_min_size
private

Definition at line 69 of file frame.h.

◆ _orientation

Orientation ArdourWidgets::Frame::_orientation
private

Definition at line 62 of file frame.h.

◆ _padding

int ArdourWidgets::Frame::_padding
private

Definition at line 72 of file frame.h.

◆ _parent_style_change

sigc::connection ArdourWidgets::Frame::_parent_style_change
private

Definition at line 65 of file frame.h.

◆ _text_height

int ArdourWidgets::Frame::_text_height
private

Definition at line 77 of file frame.h.

◆ _text_width

int ArdourWidgets::Frame::_text_width
private

Definition at line 76 of file frame.h.

◆ _w

Gtk::Widget* ArdourWidgets::Frame::_w
private

Definition at line 63 of file frame.h.


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