| Did you know ... | Search Documentation: |
| Get methods |
The position relative to the screen may be found using graphical<-display_position.
See also graphical<-position
and graphical<-area.
Defaults: When device is omited, returns the absolute position
relative to the
top-most device. If the graphical is displayed, this is the
window in which the graphical is displayed.
Diagnostics: Fails silently if device is specified and graphical is not displayed on this device.
<-absolute_position.
<-absolute_position<-absolute_position.
<-absolute_position->alignment
and dialog_item->alignment
for details.<-all_attributes->auto_align
is for the integration with class dialog_item.
It associates an object->attribute
auto_align with the specified value.
graphical<-auto_align
returns the value of this attribute if present. Otherwise @on
if one of the attributes graphical<-above, graphical<-below, graphical<-left,
graphical<-right exists and @off
otherwise.<-y
+ graphical<-height.
With negative height, this is graphical<-y.
<-top_side <-right_side <-left_side<-center_y
@see graphical<-center_x<-center<-centerlocal device that displays
both the receiver and the argument graphical.
graphical<-common_device
is used internally to determine the device on which to draw connections
between graphicals that are not displayed on the same device.
Diagnostics: Fails (silently) if no such device can be found. Note that this method always succeeds if both graphicals are displayed in the same window and always fails if they are displayed in different windows.
->connected
for details. If there are multiple connections matching the search the
first one is returned. See also graphical<-connections.
This method may be redefined to hook the behaviour of graphical->layout.
to: Graphical at other side link: Link that must be in the connection from_kind: Name of the handle at the from-side to_kind: Name of the handle at the to-side.
Fails if there are no connections.
Defaults: Omitted or default arguments imply any value is legal.
<-network ->connected|node<-node.
Diagnostics: Fails if graphical<-device
equals @nil.
<-contains <-node<-image
on the object. This simplifies manipulation of non-graphical
objects that manipulate a graphical (such as class node).
-imagepoint(<-x + <-width, <-y + <-height)
->corner <-corner_y<-x + <-width.
<-corner_y<-y + <-height
<-corner <-corner_xDiagnostics: Fails (silently) if the graphical is not displayed (indirectly) on a window.
<-window|pixmap<-colour
equals @default,
this is the
graphical<-display_colour
of the graphical's device. Otherwise it is the value of the graphical<-colour
variable.
If the graphical is displayed, this will always return a colour. Otherwise this method fails if neither the graphical, nor its device specify the colour.
->colour ->colourget(@event, position, @display, Point)
See event<-position
and @event.
See also graphical<-position
and
graphical<-absolute_position.
Diagnostics: Fails if graphical is not related to a window
Bugs: Yields incorrect results if the window is not actually displayed on the screen.
<-absolute_position<-distance
using the areas of both graphicals.
Bugs: Silently assumes that both graphicals are displayed on the same device.
<-distance_y <-distance_x <-distance<-distance_x <-distance_y <-distance<-distance_x
@see graphical<-distance
Frames are commonly used to represent a tool of an application (or an
entire application). This method provides an easy way to find the
application object
from some deep-down part of it.
Diagnostics: Fails silently if the graphical is not displayed.
<-window <-frame<-handles
of the graphical's class. The first matching handle is returned.
Diagnostics: Fails silently when there is no matching handle.
<-handle_position <-handles ->handle<-device.
Defaults: When no device is specified, the coordinate system of the graphical's device is used.
Diagnostics: Fails if there is no such handle or the graphical is not displayed on the given device.
<-y <-x <-handle<-handles
that are within distance pixels from the given point and have the given
kind. Fails if no handles match the criterion.
<-handledevice
is displayed.
Defaults: When device is @default,
succeeds if graphical and all deviced above it have graphical<-displayed: @on.
-displayed<-bottom_sidefrom , to
This method is save on cyclic graphs. See also graphical->layout.
->layout <-connections<-image
equal to this graphical if the graphical is controlled by a node of a
tree object. See also graphical<-contained_in.
Diagnostics: Fails silently when the node cannot be found.
Bugs: Only works if the node is attached to a tree and
actually displayed. It checks whether the graphical's device is a tree
and then uses‘node
graphical<-find_node’to find the node
object belonging to this graphical.
<-contained_in <-find_node ->event -image ->orientation
->orientation<-absolute_position<-bottom_side<-height
and graphical<-width of the graphical's
area. Either or both of graphical<-width
and graphical<-height
may be negative. See
graphical<->orientation.
->orientation<-bottom_sideDiagnostics: Fails silently when graphical is not displayed on a window.
<-display <-frame