Prima
view release on metacpan or search on metacpan
Prima/VB/Classes.pm view on Meta::CPAN
Selects marked state of a widget. If MARKED flag is 1, the widget is
selected as marked. If 0, it is selected as unmarked.
If EXCLUSIVE flag is set to 1, then all marked widgets are unmarked
before the object mark flag is set.
=item sizeable BOOLEAN
If 1, the widget can be resized by the user.
If 0, in can only be moved.
=item mainEvent STRING
Selects the event name, that will be opened in the object inspector
when the user double clicks on the widget.
=back
=head2 Methods
=over
=item common_paint CANVAS
Draws selection and resize marks on the widget
if it is in the selected state. To be called from
all C<on_paint> callbacks.
=item get_o_delta
Returns offset to the owner widget. Since the builder does
not insert widgets in widgets to reflect the user-designed
object hierarchy, this method is to be used to calculate
children widgets relative positions.
=item xy2part X, Y
Maps X, Y point into part of widget. If result is not
equal to C<'client'> string, the event in X, Y point
must be ignored.
=item iterate_children SUB, @ARGS
Traverses all children widget in the hierarchy,
calling SUB routine with widget, self, and @ARGS
parameters on each.
=item altpopup
Invokes an alternative, class-specific popup menu, if present.
The popup object must be named C<'AltPopup'>.
=back
=head2 Events
=over
=item Load
Called when the widget is loaded from a file or the clipboard.
=back
=head1 Prima::VB::Types::generic
Root of all type classes.
A type class can be used with
and without object instance. The instantiated class
contains reference to ID string, which is a property
name that the object presents in the object inspector,
and WIDGET, which is the property applied to. When
the object inspector switches widgets, the type object
is commanded to update the references.
A class must also be usable without object instance,
in particular, in C<write> method. It is called to
export the property value in a storable format
as a string, better as a perl-evaluable expression.
=head2 Methods
=over
=item new CONTAINER, ID, WIDGET
Constructor method. CONTAINER is a panel widget in the object
inspector, where the type object can insert property value
selector widgets.
=item renew ID, WIDGET
Resets property name and the widget.
=item quotable STRING
Returns quotable STRING.
=item printable STRING
Returns a string that can be stored in a file.
=back
=head2 Callbacks
=over
=item change
Called when the widget property value is changed.
=item change_id
Called when the property name ( ID ) is changed.
The type object may consider update its look
or eventual internal variables on this event.
=item get
( run in 2.113 seconds using v1.01-cache-2.11-cpan-2398b32b56e )