File tag/Window


class tag.WindowDelegate

Inherits

Behaviour supers
tom.All

instance tag.WindowDelegate

Inherits

Behaviour supers
tom.All

class tag.Window

Inherits

State supers
Responder

methods

class (View)
  viewClass;
Return the preferred View class.

instance tag.Window

variables

public tom.String title;
The title, i.e. the string shown in the title bar.
public mutable View content_view;
Our content view.
public float f_x;
Our frame coordinates.
public float f_y;
public float f_w;
public float f_h;
Color background;
The background color.
View mouse_view;
The view for mouse down and subsequent events.
public Responder first_responder;
The first responder within this window.
public mutable View initial_responder;
The initial first responder, i.e. the first responder the first time the window is put on the screen.
public mutable WindowDelegate delegate;
The delegate.
int style;
This window's style.

methods

deferred void
  display;
Display the receiving window.

Display
  display;
Return the Display of the receiving window.

deferred Screen
  screen;
Return the screen on which this window (mostly) resides.

Device
  deviceDescription;
Return the Device description of this Window. This normally returns the description of the screen.

id (self)
  initWithContentRect (float, float, float, float) (x, y, w, h)
            styleMask int s
              backing int backing
               screen Screen screen;
Designated initializer. New windows should be created through the screen on which it is to be displayed though.

Color
  backgroundColor;
Undocumented.

void
  becomeKeyWindow;
Be informed of the new status. Never invoke this method directly.

void
  becomeMainWindow;
Be informed of the new status. Never invoke this method directly.

boolean
  canBecomeKeyWindow;
Undocumented.

boolean
  canBecomeMainWindow;
Undocumented.

(float, float)
  convertBaseToScreen (float, float) (x, y);
Undocumented.

(float, float)
  convertScreenToBase (float, float) (x, y);
Undocumented.

(float, float, float, float)
  frame;
Undocumented.

void
  makeKeyAndOrderFront tom.All sender;
Order this window to the front, and make it the key window.

void
  makeKeyWindow;
Make this window the key window, if it can.

void
  makeMainWindow;
Make this window the main window, if it can.

void
  noteFrame (float, float, float, float) (x, y, w, h);
Accept the new frame coordinates, which have either been induced by the user or by the program itself.

deferred void
  orderFront tom.All sender;
Raise the window to the front, putting it onto the screen if it wasn't already.

deferred void
  orderOut tom.All sender;
Remove the window from the screen, i.e. cause it to not be visible anymore.

void
  resignKeyWindow;
Undocumented.

void
  resignMainWindow;
Undocumented.

void
  setBackgroundColor Color c;
Undocumented.

void
  setFrame (float, float, float, float) (x, y, w, h);
Undocumented.

void
  setTitle tom.String t;
Undocumented.

tom.OutputStream (s)
  writeFields tom.OutputStream s;
Undocumented.

Events

boolean (result)
  makeFirstResponder Responder responder
post
  (result -> first_responder == responder) && (!result -> first_responder == old first_responder);
Attempt to make the responder the first_responder of this window.

void
  sendEvent Event event
         to Responder responder
      using selector sel;
Send the event to the responder using the selector sel.

boolean (result)
  tryToDispatch selector action
           from tom.All sender;
Feed the action up the responder chain of the window.

boolean (result)
  tryToSendAction selector action
             from tom.All sender;
Try the delegate of this window, if the usual Responder response fails.

void
  encodeUsingCoder tom.Encoder coder;

Archiving

void
  initWithCoder tom.Decoder coder;
Undocumented.


Generated by tm 1.01.