Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::FrameView Class Reference

#include <frameview.h>

Inheritance diagram for os::FrameView::

os::LayoutView os::View os::Handler List of all members.

Public Methods

 FrameView (const Rect &cFrame, const std::string &cName, const std::string &cLabel, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
 FrameView constructor. More...

void SetLabel (const std::string &cLabel)
ViewSetLabel (View *pcLabel, bool bResizeToPreferred=true)
std::string GetLabelString () const
ViewGetLabelView () const
virtual void AttachedToWindow ()
virtual void FrameSized (const Point &cDelta)
 Virtual hook called by the system when the view is resized. More...

virtual void FontChanged (Font *pcNewFont)
 Called to notify the view that the font has changed. More...

virtual void Paint (const Rect &cUpdateRect)
 Called by the system update "damaged" areas of the view. More...

virtual Point GetPreferredSize (bool bLargest) const

Detailed Description

Description:
See also:
Author:
Kurt Skauen ([email protected])


Constructor & Destructor Documentation

FrameView::FrameView const Rect & cFrame,
const std::string & cName,
const std::string & cLable,
uint32 nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP,
uint32 nFlags = WID_WILL_DRAW | WID_CLEAR_BACKGROUND
 

Description:
Note:
Warning:
Parameters:
return  
See also:
Author:
Kurt Skauen ([email protected])


Member Function Documentation

void FrameView::AttachedToWindow void [virtual]
 

Reimplemented from os::View.

void FrameView::FontChanged Font * pcNewFont [virtual]
 

Description:
FontChanged() is a virtual hook function that can be overloaded by inheriting classes to track changes to the view's font.

This hook function is called whenver the font is replaced through the View::SetFont() member or if the currently assigned font is modified in a way that whould alter the graphical appearance of the font.

Note:
View::SetFont() will call FontChanged() syncronously and will cause FontChanged() to be called even if the view is not yet added to a window. Changes done to the font-object cause a message to be sendt to the window thread and FontChanged() will then be called asyncronously from the window thread when the message arrive. For this reason it is only possible to track changes done to the font object itself when the view is added to a window.
Parameters:
pcNewFont   Pointer to the affected font (same as returned by GetFont()).

See also:
SetFont(), os::Font
Author:
Kurt Skauen ([email protected])

Reimplemented from os::View.

void FrameView::FrameSized const Point & cDelta [virtual]
 

Description:
Overload this member if you need to know when the view is resized.
Note:
This member is called after the view is resized. If you need the old size you can subtract the cDelta calue from the current size.
Parameters:
cDelta   The distance the bottom/right corner was moved relative to the upper/left corner.
See also:
FrameMoved(), SetFrame, ResizeBy(), ResizeTo()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::LayoutView.

std::string FrameView::GetLabelString const
 

View * FrameView::GetLabelView const
 

Point FrameView::GetPreferredSize bool bLargest const [virtual]
 

Reimplemented from os::LayoutView.

void FrameView::Paint const Rect & cUpdateRect [virtual]
 

Description:
Note:
Warning:
Parameters:
cUpdateRect   A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible.

See also:
Invalidate(), Flush()
Author:
Kurt Skauen ([email protected])

Reimplemented from os::View.

View * FrameView::SetLabel View * pcLabel,
bool bResizeToPreferred = true
 

void FrameView::SetLabel const std::string & cLabel
 


Generated at Tue Sep 11 15:27:47 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001