Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::CanvasItemCatchall Class Referencefinal

#include <canvas-item-catchall.h>

Inheritance diagram for Inkscape::CanvasItemCatchall:
Inkscape::CanvasItem

Public Member Functions

 CanvasItemCatchall (CanvasItemGroup *group)
 Create an null control catchall.
 
bool contains (Geom::Point const &p, double tolerance) override
 Returns true if point p (in canvas units) is within tolerance (canvas units) distance of catchall.
 
- Public Member Functions inherited from Inkscape::CanvasItem
 CanvasItem (CanvasItemContext *context)
 
 CanvasItem (CanvasItemGroup *parent)
 
 CanvasItem (CanvasItem const &)=delete
 
CanvasItemoperator= (CanvasItem const &)=delete
 
void unlink ()
 
UI::Widget::Canvasget_canvas () const
 
CanvasItemGroupget_parent () const
 
bool is_descendant_of (CanvasItem const *ancestor) const
 
void set_z_position (int zpos)
 
void raise_to_top ()
 
void lower_to_bottom ()
 
void request_update ()
 
void update (bool propagate)
 
virtual void visit_page_rects (std::function< void(Geom::Rect const &)> const &) const
 
Geom::OptRect const & get_bounds () const
 
void grab (EventMask event_mask, Glib::RefPtr< Gdk::Cursor > const &={})
 
void ungrab ()
 
void render (Inkscape::CanvasItemBuffer &buf) const
 
bool is_visible () const
 
virtual void set_visible (bool visible)
 
void request_redraw ()
 
virtual void set_fill (uint32_t rgba)
 
void set_fill (CanvasItemColor color)
 
void set_fill_pattern (Cairo::RefPtr< Cairo::Pattern > pattern)
 
virtual void set_stroke (uint32_t rgba)
 
void set_stroke (CanvasItemColor color)
 
void set_stroke_width (double width)
 Set the stroke width.
 
void set_outline (uint32_t color)
 Set the outline color.
 
void set_outline_width (double width)
 Set the outline width.
 
double get_effective_outline () const
 Get the effective outline.
 
void set_name (std::string &&name)
 
std::string const & get_name () const
 
void update_canvas_item_ctrl_sizes (int size_index)
 
void set_pickable (bool pickable)
 
bool is_pickable () const
 
sigc::connection connect_event (sigc::slot< bool(CanvasEvent const &)> const &slot)
 
virtual bool handle_event (CanvasEvent const &event)
 
void canvas_item_print_tree (int level=0, int zorder=0) const
 

Protected Member Functions

 ~CanvasItemCatchall () override=default
 
void _update (bool propagate) override
 Update and redraw control catchall.
 
void _render (Inkscape::CanvasItemBuffer &buf) const override
 Render catchall to screen via Cairo.
 
- Protected Member Functions inherited from Inkscape::CanvasItem
virtual ~CanvasItem ()
 
Geom::Affine const & affine () const
 
virtual void _mark_net_invisible ()
 
virtual void _invalidate_ctrl_handles ()
 
template<typename F >
void defer (F &&f)
 

Additional Inherited Members

- Public Attributes inherited from Inkscape::CanvasItem
boost::intrusive::list_member_hook member_hook
 
- Protected Attributes inherited from Inkscape::CanvasItem
CanvasItemContext_context
 
CanvasItemGroup_parent
 
Geom::OptRect _bounds
 
bool _need_update = false
 
bool _visible = true
 
bool _net_visible = true
 
bool _pickable = false
 
uint32_t _fill = CANVAS_ITEM_COLORS[CANVAS_ITEM_SECONDARY]
 
Cairo::RefPtr< Cairo::Pattern > _fill_pattern
 
uint32_t _stroke = CANVAS_ITEM_COLORS[CANVAS_ITEM_PRIMARY]
 
double _stroke_width = 1.0
 
uint32_t _outline = 0x0
 
double _outline_width = 0
 
std::string _name
 
sigc::signal< bool(CanvasEvent const &)> _event_signal
 

Detailed Description

Definition at line 23 of file canvas-item-catchall.h.

Constructor & Destructor Documentation

◆ CanvasItemCatchall()

Inkscape::CanvasItemCatchall::CanvasItemCatchall ( CanvasItemGroup group)

Create an null control catchall.

Definition at line 24 of file canvas-item-catchall.cpp.

References Inkscape::CanvasItem::_name, and Inkscape::CanvasItem::_pickable.

◆ ~CanvasItemCatchall()

Inkscape::CanvasItemCatchall::~CanvasItemCatchall ( )
overrideprotecteddefault

Member Function Documentation

◆ _render()

void Inkscape::CanvasItemCatchall::_render ( Inkscape::CanvasItemBuffer buf) const
overrideprotectedvirtual

Render catchall to screen via Cairo.

Implements Inkscape::CanvasItem.

Definition at line 50 of file canvas-item-catchall.cpp.

◆ _update()

void Inkscape::CanvasItemCatchall::_update ( bool  propagate)
overrideprotectedvirtual

Update and redraw control catchall.

Implements Inkscape::CanvasItem.

Definition at line 42 of file canvas-item-catchall.cpp.

References Inkscape::CanvasItem::_bounds, and Geom::infinity().

◆ contains()

bool Inkscape::CanvasItemCatchall::contains ( Geom::Point const &  p,
double  tolerance 
)
overridevirtual

Returns true if point p (in canvas units) is within tolerance (canvas units) distance of catchall.

Reimplemented from Inkscape::CanvasItem.

Definition at line 34 of file canvas-item-catchall.cpp.


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