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 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(s):
Kurt Skauen (kurt@atheos.cx)


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 )
 

FrameView constructor.

Description:
Note:
Warning:
Parameters:
return  
See also:
Author(s):
Kurt Skauen (kurt@atheos.cx)


Member Function Documentation

void FrameView::AttachedToWindow ( void ) [virtual]
 

Reimplemented from os::View.

void FrameView::FontChanged ( Font * pcNewFont ) [virtual]
 

Called to notify the view that the font has changed.

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(s):
Kurt Skauen (kurt@atheos.cx)

Reimplemented from os::View.

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

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]
 

Called by the system update "damaged" areas of the view.

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(s):
Kurt Skauen (kurt@atheos.cx)

Reimplemented from os::View.

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

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


The documentation for this class was generated from the following files:
Generated at Sat Apr 7 16:11:34 2001 for AtheOS higlevel API by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001