Derived from: BStringView
Declared in: myStringDrawer.h
Library: libBeGUI.so
The MyStringDrawer Class is used as a simple string drawing device. It is a wrapper for the BeOS BStringView class.
This is the constructor. The first two parameters, paramName and paramText are passed on to the BStringView class. Make sure to create paramText with "new"--it will be deleted when this class object is deleted.
The parameter paramFont sets the font for the text. It may be NULL, in which case the string is drawn in the application's default font.
The parameter paramLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
The parameters paramHighColor, paramLowColor and paramViewColor will be used (if not NULL) when this gadget is attached. If any of them are NULL the preferred color will be used in default for that parameter. Make sure to create paramHighColor, paramLowColor and paramViewColor with "new"--they will be deleted when this class object is deleted. You may pass any or all of these color parameters in. It makes the most sense to pass in at least High and Low if text anti-aliasing is on. If this class's default View color is different from the underlying preferred View color, you might want to pass in the underlying View color.
There is a bit of code in this CTOR, if the parameter paramFont is NULL a new copy of the application's default font is used.
This is the destructor. It deletes five items.
This just overrides the BTextView method to provide color control, it calls the inherited version. The color parameters are checked and used if passed in, otherwise the preferred colors are used.
This just provides access to the private data.
This just provides access to the private data.
The BStringView class's method GetPreferredSize() has some problems, so I have provided a replacement which works for my needs.
for version 1.4.2
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified March 17, 1999.