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

#include <ardour_spacer.h>

Inheritance diagram for ArdourWidgets::ArdourDropShadow:
[legend]

Public Types

enum  ShadowMode { DropShadowLongSideOnly , DropShadowBoth }
 

Public Member Functions

 ArdourDropShadow (ShadowMode m=DropShadowLongSideOnly, float a=0.55f)
 
void set_mode (ShadowMode m)
 
- Public Member Functions inherited from CairoWidget
 CairoWidget ()
 
virtual ~CairoWidget ()
 
void set_canvas_widget ()
 
void use_nsglview (bool retina=true)
 
void use_image_surface (bool yn=true)
 
void queue_draw ()
 
void queue_resize ()
 
int get_width () const
 
int get_height () const
 
void size_allocate (Gtk::Allocation &)
 
void set_dirty (cairo_rectangle_t *area=0)
 
Gtkmm2ext::ActiveState active_state () const
 
Gtkmm2ext::VisualState visual_state () const
 
virtual void set_active_state (Gtkmm2ext::ActiveState)
 
virtual void set_visual_state (Gtkmm2ext::VisualState)
 
void unset_active_state ()
 
void unset_visual_state ()
 
void set_active (bool)
 
bool get_active () const
 
void set_draw_background (bool yn)
 
uint32_t background_color ()
 
- Public Member Functions inherited from Gtkmm2ext::CairoCanvas
virtual ~CairoCanvas ()
 

Protected Member Functions

void render (Cairo::RefPtr< Cairo::Context > const &ctx, cairo_rectangle_t *)
 
- Protected Member Functions inherited from CairoWidget
virtual bool on_expose_event (GdkEventExpose *)
 
void on_size_allocate (Gtk::Allocation &)
 
void on_state_changed (Gtk::StateType)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_realize ()
 
bool on_button_press_event (GdkEventButton *)
 
Gdk::Color get_parent_bg ()
 
void on_map ()
 
void on_unmap ()
 
virtual void on_name_changed ()
 

Protected Attributes

float alpha
 
ShadowMode mode
 
- Protected Attributes inherited from CairoWidget
Gtkmm2ext::ActiveState _active_state
 
Gtkmm2ext::VisualState _visual_state
 
bool _need_bg
 
bool _grabbed
 

Additional Inherited Members

- Static Public Member Functions inherited from CairoWidget
static void provide_background_for_cairo_widget (Gtk::Widget &w, const Gdk::Color &bg)
 
static void set_source_rgb_a (cairo_t *cr, Gdk::Color, float a=1.0)
 
static void set_source_rgb_a (cairo_t *cr, Gtkmm2ext::Color, float a=1.0)
 
static void set_focus_handler (sigc::slot< void, Gtk::Widget * >)
 
- 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 ()
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 
sigc::signal< bool > QueueDraw
 
sigc::signal< bool > QueueResize
 
- Static Protected Attributes inherited from CairoWidget
static sigc::slot< void, Gtk::Widget * > focus_handler
 

Detailed Description

Definition at line 86 of file ardour_spacer.h.

Member Enumeration Documentation

◆ ShadowMode

Enumerator
DropShadowLongSideOnly 
DropShadowBoth 

Definition at line 89 of file ardour_spacer.h.

Constructor & Destructor Documentation

◆ ArdourDropShadow()

ArdourWidgets::ArdourDropShadow::ArdourDropShadow ( ShadowMode  m = DropShadowLongSideOnly,
float  a = 0.55f 
)

Member Function Documentation

◆ render()

void ArdourWidgets::ArdourDropShadow::render ( Cairo::RefPtr< Cairo::Context > const &  ctx,
cairo_rectangle_t *   
)
inlineprotectedvirtual

Implements Gtkmm2ext::CairoCanvas.

Definition at line 99 of file ardour_spacer.h.

◆ set_mode()

void ArdourWidgets::ArdourDropShadow::set_mode ( ShadowMode  m)
inline

Definition at line 96 of file ardour_spacer.h.

Member Data Documentation

◆ alpha

float ArdourWidgets::ArdourDropShadow::alpha
protected

Definition at line 124 of file ardour_spacer.h.

◆ mode

ShadowMode ArdourWidgets::ArdourDropShadow::mode
protected

Definition at line 125 of file ardour_spacer.h.


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