#include <views.h>
Inheritance diagram for TFrame::
Public Methods | |
TFrame (const TRect &bounds) | |
virtual void | draw () |
virtual TPalette& | getPalette () const |
virtual void | handleEvent (TEvent &event) |
virtual void | setState (ushort aState, Boolean enable) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
char | frameChars [33] |
const char* | closeIcon |
const char* | dragIcon |
const char* const | name |
Protected Methods | |
TFrame (StreamableInit) |
Definition at line 1951 of file views.h.
|
Calls TView constructor TView(bounds), then sets growMode to gfGrowHiX | gfGrowHiY and sets eventMask to @reg eventMask | evBroadcast, so TFrame objects default to handling broadcast events. `bounds' is the bounding rectangle of the frame. |
|
Used to recover the view from a stream. Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized vtable pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Used to recover the view from a stream. Called to create an object in certain stream-reading situations. Reimplemented from TView. |
|
Draws the frame with color attributes and icons appropriate to the current state flags: active, inactive, being dragged. Adds zoom, close and resize icons depending on the owner window's flags. Adds the title, if any, from the owning window's title data member. Active windows are drawn with a double-lined frame and any icons; inactive windows are drawn with a single-lined frame and no icons.
Reimplemented from TView. |
|
Returns a reference to the default frame palette string.
Reimplemented from TView. |
|
Calls TView::handleEvent(), then handles mouse events. If the mouse is clicked on the close icon, TFrame::handleEvent() generates a cmClose event. Clicking on the zoom icon or double-clicking on the top line of the frame generates a cmZoom event. Dragging the top line of the frame moves the window, and dragging the resize icon moves the lower right corner of the view and therefore changes its size. Reimplemented from TView. |
|
Changes the state of the frame. Calls TView::setState(aState, enable). If the new state is sfActive or sfDragging, calls TView::drawView() to redraw the view.
Reimplemented from TView. |
|
Undocumented. |
|
The character showed in the close box. |
|
The character showed in the lower right corner of the screen. |
|
Undocumented. |
|
Undocumented. Reimplemented from TView. |