Angry Red PlanetArpLayout |
|
ARPLAYOUT_ARCHIVEHOOKS(ThisClass, ParentClass, ViewDeep)
If your class doesn't have anything special it needs to do for archiving, you can include this macro to use the standard implementation of mixing in with ArpLayoutable. Otherwise, you will need to provide your own implementation of Archive() that does your own data as well as the mix-in code here.
See also: ARPLAYOUT_HANDLERHOOKS
ARPLAYOUT_HANDLERHOOKS(ParentClass)
These are the things you almost always have to do when mixing in with a BHandler or any derived classs. Your mix-in class should look something like this:
class myClass : public BHandler, public ArpBaseLayout { public: myClass() { ... } ARPLAYOUT_HANDLERHOOKS(BHandler) ... }
ARPLAYOUT_SUITEHOOKS(ParentClass)
If your class doesn't implement its own message suite, then you can include this macro to use the standard implementation of mixing in with ArpLayoutable. Otherwise, you will need to provide your own implementation to GetSupportedSuites() that does your own suite as well as the mix-in code here.
See also: ARPLAYOUT_HANDLERHOOKS
ARPLAYOUT_VIEWHOOKS(ParentClass)
These are the things you almost always have to do when mixing in with a BView or any derived classs. Your mix-in class should look something like this:
class myClass : public BView, public ArpBaseLayout { public: myClass() { ... } ARPLAYOUT_HANDLERHOOKS(BView) ARPLAYOUT_VIEWHOOKS(BView) ... }
See also: ARPLAYOUT_HANDLERHOOKS
const float ArpAnySize
Place this value into the maximum width/height to allow unbounded expansion.
ArpMessage ArpNoParams
Quick way to pass no (a.k.a. default) paramters to a function.
void get_view_dimens(ArpLayoutDimens* dimens, BView* view)
This function probes the give BView to try to fill in some reasonable default values into the given arp_layout_dimens structure. In an ideal world, this would just mean calling GetPreferredSize() and copying the result. Too bad the world isn't ideal.
All files and code contained in this package are
Copyright ©1998 Angry Red Planet, except where otherwise noted.
The files contained here-in are distributed under a modifed
form of the Artistic License.
See the file @License.html
or @License.txt
for a copy of this license.
Generated by ScanDoc |
Last Updated: Tue Aug 24 0:43:09 1999 |