Gtk2::Ex::MindMapView::HotSpot::GripFactory is the maker of standard grips.
SYNOPSIS
use Gtk2::Ex::MindMapView::HotSpot::GripFactory;
This factory makes grips that are used to resize Gtk2::Ex::MindMapView::Items.
The following types of grips are supported:
Gtk2::Ex::MindMapView::HotSpot::Grip::Round - A circular grip.
Gtk2::Ex::MindMapView::HotSpot::Grip::Lentil - A lentil shaped grip.
Gtk2::Ex::MindMapView::HotSpot::Grip::RightAngle - A right triangle shaped grip.
Gtk2::Ex::MindMapView::HotSpot::Grip::EllipseRound - A special round grip for ellipses.
This factory is used by the Gtk2::Ex::MindMapView::ItemFactory.
INTERFACE
Properties
'item' (Gtk2::Ex::MindMapView::Item)
The item to attach the grip to.
'border' (Gtk2::Ex::MindMapView::Border)
The border that is used to determine the type of grip to create.
'side' (string)
The side of the item to attach to. May be: left or right.
'fill_color_gdk' (Gtk2::Gdk::Color)
The color of the grip.
'hotspot_color_gdk' (Gtk2::Gdk::Color)
The color of the grip when it is engaged.
Methods
new ( ...)
Constructor for the grip factory.
create_grip (item=>$item, border=>$border, side=>$side, ...)
Creates a new Gtk2::Ex::MindMapView::HotSpot::Grip given the Gtk2::Ex::MindMapView::Item that the grip will attach to. The Gtk2::Ex::MindMapView::Border is used to determine what grip to return to the caller. The side may be left or right.
DIAGNOSTICS
Invalid item. Item must be a 'Gtk2::Ex::MindMapView::Item'
You must pass in a Gtk2::Ex::MindMapView::Item argument.
Invalid side. Must be 'right' or 'left'
You must set the side to be either: left or right.
Unexpected border: $border
You must give one of the known border types at this time.
Product's homepage
Requirements:
· Perl