public mutable Window window;
public id superview;
public tom.MutableIndexed subviews;
public mutable int auto_size;
float f_x;
float f_y;
float f_w;
float f_h;
float b_x;
float b_y;
float b_w;
float b_h;
public mutable boolean needs_display;
tom.OutputStream writeFields tom.OutputStream s;
Screen screen;
Display currentDisplay;
View
for the Display
onto which the output will appear.
(float, float) convertPoint (float, float) (x, y) fromView id v;
(float, float) convertPoint (float, float) (x, y) toView id v;
(float, float) convertPointFromSuperview (float, float) (x, y);
(x, y)
, given in the coordinates of the
superview, in the coordinates of the receiving view. This does not
query the superview, since the computations only involve the frame and
bounds.
(float, float) convertPointToSuperview (float, float) (x, y);
(x, y)
, given in the coordinates of the receiving
view, in the coordinates of the superview. This does not query the
superview, since the computations only involve the frame and bounds.
(float, float, float, float) convertRectFromSuperview (float, float, float, float) (x, y, w, h);
(x, y, w, h)
, given in the coordinates of the
superview to the coordinates of the receiving view.
(float, float, float, float) convertRectToSuperview (float, float, float, float) (x, y, w, h);
(x, y, w, h)
, given in the coordinates of the
receiving view, to the coordinates of the super view.
void descendantFrameChanged View descendant;
descendant
has changed its frame. The
default implementation passed this on to its superview
, if it has
one.
id initFrame (float, float, float, float) (x, y, w, h) pre system_display != nil;
(float, float, float, float) bounds;
(float, float, float, float) frame;
void setFrame (float, float, float, float) (x, y, w, h);
void moveBy (float, float) (dx, dy);
moveTo
.
void moveTo (float, float) (x, y);
descendantFrameChanged
.
void resizeSubviews (float, float) (old_w, old_h);
subviews
that their superviewSizeChanged
.
void sizeBy (float, float) (dw, dh);
(dw, dh)
, in the
coordinates of its superview. Implemented by invoking sizeTo
.
void sizeTo (float, float) (w, h);
(w, h)
, in the coordinates
of its superview. Resize the subviews as indicated by their
auto_size
, and inform the superview that a descendantFrameChanged
.
private (float, float) autoResize int how of (float, float, float, float) (x, w, sow, snw);
x
and w
, given their old values and
the old and new values for the superview's w
. how
defines how to
resize.
void superviewSizeChanged (float, float) (so_w, so_h);
auto_size
.
void clipToFrame;
void clipToFrame (float, float, float, float) (sv_x, sv_y, sv_w, sv_h);
void display;
void display (float, float, float, float) (x, y, w, h);
View
and it subviews.
void displayIfNeeded;
display
the receiving View
, if needed according to its
needs_display
flag. Otherwise,if displaying is not needed,
propagate this message to this view's subviews.
void drawSelf (float, float, float, float) (x, y, w, h);
void lockFocus;
currentDisplay
.
void unlockFocus;
currentDisplay
. The
receiving view should be the one that is currently locked.
void addSubview View view;
view
to the subviews
of the receiving view. This will
set the superview of the view
to the receiver.
void removeFromSuperview;
superview
. This also removes
the receiving view and all subviews from the window
.
protected void removeSubview View view;
view
from the subviews
.
protected void setSuperview View v;
removeFromSuperview
if v
is
nil
.
protected void viewWillMoveToWindow Window w;
w
. In
fact, this method actually performs the move, passing it on to
subviews.
boolean acceptsFirstMouse MouseEvent event pre [event type] == EVENT_MOUSE_DOWN;
TRUE
iff the receiving view accepts the mouse event
, even
though the same event is making the window key window. The default
implementation returns FALSE
.
This is currently unused because of the mouse-over-to-focus of many X11 window managers.
void encodeUsingCoder tom.Encoder coder;
void initWithCoder tom.Decoder coder;
id hitTest (float, float) (x, y);
View
in the receiving view's hierarchy, containing the
point (x, y)
. The coordinates are in the receiving view's superview
coordinate system.
boolean mouse (float, float) (m_x, m_y) inRect (float, float, float, float) (x, y, w, h);