Ardour  9.0-pre0-386-g96ef4d20f2
ArdourSurface::Maschine2Canvas Class Reference

#include <canvas.h>

Inheritance diagram for ArdourSurface::Maschine2Canvas:
[legend]

Public Member Functions

 Maschine2Canvas (Maschine2 &, M2Device *)
 
 ~Maschine2Canvas ()
 
void request_redraw ()
 
void request_redraw (ArdourCanvas::Rect const &)
 
void queue_resize ()
 
bool vblank ()
 
Cairo::RefPtr< Cairo::Context > image_context ()
 
ArdourCanvas::Coord width () const
 
ArdourCanvas::Coord height () const
 
void request_size (ArdourCanvas::Duple)
 
ArdourCanvas::Rect visible_area () const
 
void ungrab ()
 
void grab (ArdourCanvas::Item *)
 
void focus (ArdourCanvas::Item *)
 
void unfocus (ArdourCanvas::Item *)
 
void re_enter ()
 
void pick_current_item (int)
 
void pick_current_item (ArdourCanvas::Duple const &, int)
 
bool get_mouse_position (ArdourCanvas::Duple &) const
 
Glib::RefPtr< Pango::Context > get_pango_context ()
 
- Public Member Functions inherited from ArdourCanvas::Canvas
 Canvas ()
 
virtual ~Canvas ()
 
virtual bool have_grab () const
 
virtual bool grab_can_translate () const
 
void render (Rect const &, Cairo::RefPtr< Cairo::Context > const &) const
 
void prepare_for_render (Rect const &) const
 
gint64 get_last_render_start_timestamp () const
 
gint64 get_microseconds_since_render_start () const
 
Itemroot ()
 
void freeze_queue_draw ()
 
void thaw_queue_draw ()
 
void set_background_color (Gtkmm2ext::Color)
 
Gtkmm2ext::Color background_color () const
 
virtual void item_going_away (Item *, Rect)
 
virtual void item_shown_or_hidden (Item *)
 
void item_visual_property_changed (Item *)
 
void item_changed (Item *, Rect)
 
void item_moved (Item *, Rect)
 
Duple canvas_to_window (Duple const &, bool rounded=true) const
 
Duple window_to_canvas (Duple const &) const
 
void canvas_to_window (Coord cx, Coord cy, Coord &wx, Coord &wy)
 
void window_to_canvas (Coord wx, Coord wy, Coord &cx, Coord &cy)
 
void scroll_to (Coord x, Coord y)
 
void add_scroller (ScrollGroup &i)
 
Duple clamp_to_window (Duple const &winpos, Duple border=Duple())
 
void zoomed ()
 
std::string indent () const
 
std::string render_indent () const
 
void dump (std::ostream &) const
 
virtual void start_tooltip_timeout (Item *)
 
virtual void stop_tooltip_timeout ()
 
void use_intermediate_surface (bool yn=true)
 
void set_debug_render (bool yn)
 
bool debug_render () const
 

Private Member Functions

bool expose ()
 

Private Attributes

int _width
 
int _height
 
Cairo::RefPtr< Cairo::Context > context
 
Cairo::RefPtr< Cairo::Region > expose_region
 
Glib::RefPtr< Pango::Context > pango_context
 
Maschine2m2
 
PBD::ScopedConnection vblank_connections
 

Additional Inherited Members

- Static Public Member Functions inherited from ArdourCanvas::Canvas
static void set_tooltip_timeout (uint32_t msecs)
 
- Public Attributes inherited from ArdourCanvas::Canvas
sigc::signal< void, Duple const & > MouseMotion
 
sigc::signal< void > PreRender
 
bool item_save_restore
 
- Protected Member Functions inherited from ArdourCanvas::Canvas
void queue_draw_item_area (Item *, Rect)
 
Rect compute_draw_item_area (Item *, Rect)
 
- Protected Attributes inherited from ArdourCanvas::Canvas
Root _root
 
uint32_t _queue_draw_frozen
 
Rect frozen_area
 
Gtkmm2ext::Color _bg_color
 
bool _debug_render
 
gint64 _last_render_start_timestamp
 
std::list< ScrollGroup * > scrollers
 
bool _use_intermediate_surface
 
- Static Protected Attributes inherited from ArdourCanvas::Canvas
static uint32_t tooltip_timeout_msecs
 

Detailed Description

Definition at line 40 of file surfaces/maschine2/canvas.h.

Constructor & Destructor Documentation

◆ Maschine2Canvas()

ArdourSurface::Maschine2Canvas::Maschine2Canvas ( Maschine2 ,
M2Device  
)

◆ ~Maschine2Canvas()

ArdourSurface::Maschine2Canvas::~Maschine2Canvas ( )

Member Function Documentation

◆ expose()

bool ArdourSurface::Maschine2Canvas::expose ( )
private

◆ focus()

void ArdourSurface::Maschine2Canvas::focus ( ArdourCanvas::Item )
inlinevirtual

called to ask the canvas' host to keyboard focus on an item

Implements ArdourCanvas::Canvas.

Definition at line 62 of file surfaces/maschine2/canvas.h.

◆ get_mouse_position()

bool ArdourSurface::Maschine2Canvas::get_mouse_position ( ArdourCanvas::Duple winpos) const
inlinevirtual

Store the coordinates of the mouse pointer in window coordinates in winpos . Return true if the position was within the window, false otherwise.

Implements ArdourCanvas::Canvas.

Definition at line 67 of file surfaces/maschine2/canvas.h.

◆ get_pango_context()

Glib::RefPtr<Pango::Context> ArdourSurface::Maschine2Canvas::get_pango_context ( )
virtual

Implements ArdourCanvas::Canvas.

◆ grab()

void ArdourSurface::Maschine2Canvas::grab ( ArdourCanvas::Item )
inlinevirtual

called to ask the canvas' host to ‘grab’ an item

Implements ArdourCanvas::Canvas.

Definition at line 61 of file surfaces/maschine2/canvas.h.

◆ height()

ArdourCanvas::Coord ArdourSurface::Maschine2Canvas::height ( ) const
inlinevirtual

Implements ArdourCanvas::Canvas.

Definition at line 54 of file surfaces/maschine2/canvas.h.

◆ image_context()

Cairo::RefPtr<Cairo::Context> ArdourSurface::Maschine2Canvas::image_context ( )
inline

Definition at line 51 of file surfaces/maschine2/canvas.h.

◆ pick_current_item() [1/2]

void ArdourSurface::Maschine2Canvas::pick_current_item ( ArdourCanvas::Duple const &  ,
int   
)
inlinevirtual

Implements ArdourCanvas::Canvas.

Definition at line 66 of file surfaces/maschine2/canvas.h.

◆ pick_current_item() [2/2]

void ArdourSurface::Maschine2Canvas::pick_current_item ( int  )
inlinevirtual

Implements ArdourCanvas::Canvas.

Definition at line 65 of file surfaces/maschine2/canvas.h.

◆ queue_resize()

void ArdourSurface::Maschine2Canvas::queue_resize ( )
virtual

called to ask for a resize/relayout of all or part of the canvas

Implements ArdourCanvas::Canvas.

◆ re_enter()

void ArdourSurface::Maschine2Canvas::re_enter ( )
inlinevirtual

Ask the canvas to pick the current item again, and generate an enter event for it.

Implements ArdourCanvas::Canvas.

Definition at line 64 of file surfaces/maschine2/canvas.h.

◆ request_redraw() [1/2]

void ArdourSurface::Maschine2Canvas::request_redraw ( )

◆ request_redraw() [2/2]

void ArdourSurface::Maschine2Canvas::request_redraw ( ArdourCanvas::Rect const &  )
virtual

called to request a redraw of an area of the canvas in WINDOW coordinates

Implements ArdourCanvas::Canvas.

◆ request_size()

void ArdourSurface::Maschine2Canvas::request_size ( ArdourCanvas::Duple  )
virtual

called to ask the canvas to request a particular size from its host

Implements ArdourCanvas::Canvas.

◆ unfocus()

void ArdourSurface::Maschine2Canvas::unfocus ( ArdourCanvas::Item )
inlinevirtual

called to ask the canvas' host to drop keyboard focus on an item

Implements ArdourCanvas::Canvas.

Definition at line 63 of file surfaces/maschine2/canvas.h.

◆ ungrab()

void ArdourSurface::Maschine2Canvas::ungrab ( )
inlinevirtual

called to ask the canvas' host to ‘ungrab’ any grabbed item

Implements ArdourCanvas::Canvas.

Definition at line 60 of file surfaces/maschine2/canvas.h.

◆ vblank()

bool ArdourSurface::Maschine2Canvas::vblank ( )

◆ visible_area()

ArdourCanvas::Rect ArdourSurface::Maschine2Canvas::visible_area ( ) const
virtual

Implements ArdourCanvas::Canvas.

◆ width()

ArdourCanvas::Coord ArdourSurface::Maschine2Canvas::width ( ) const
inlinevirtual

Implements ArdourCanvas::Canvas.

Definition at line 53 of file surfaces/maschine2/canvas.h.

Member Data Documentation

◆ _height

int ArdourSurface::Maschine2Canvas::_height
private

Definition at line 73 of file surfaces/maschine2/canvas.h.

◆ _width

int ArdourSurface::Maschine2Canvas::_width
private

Definition at line 72 of file surfaces/maschine2/canvas.h.

◆ context

Cairo::RefPtr<Cairo::Context> ArdourSurface::Maschine2Canvas::context
private

Definition at line 75 of file surfaces/maschine2/canvas.h.

◆ expose_region

Cairo::RefPtr<Cairo::Region> ArdourSurface::Maschine2Canvas::expose_region
private

Definition at line 76 of file surfaces/maschine2/canvas.h.

◆ m2

Maschine2& ArdourSurface::Maschine2Canvas::m2
private

Definition at line 79 of file surfaces/maschine2/canvas.h.

◆ pango_context

Glib::RefPtr<Pango::Context> ArdourSurface::Maschine2Canvas::pango_context
private

Definition at line 77 of file surfaces/maschine2/canvas.h.

◆ vblank_connections

PBD::ScopedConnection ArdourSurface::Maschine2Canvas::vblank_connections
private

Definition at line 80 of file surfaces/maschine2/canvas.h.


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