#include <BFont.h>

Public Member Functions | |
| BFont (const BFont &f) | |
| Copy constructor. | |
| BFont (const BString &face, double height) | |
| Constructs a BFont with the specified face name and size. | |
| BFont () | |
| Default constructor. | |
| virtual size_t | ComputeSize (void) const |
| Computes the size of the BByteArray required to store this object. | |
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| Initializes an instance of this object from a BByteArray. | |
| BColor | GetBGColor (void) const |
| Gets the background color for this BFont. | |
| const BString & | GetFaceName (void) const |
| Gets the name of the font. | |
| BColor | GetFGColor (void) const |
| Get the foreground color for this BFont, which is the color of the text. | |
| double | GetHeight (void) const |
| Gets the font height. | |
| EHorzAlignment | GetHorizontalAlignment (void) const |
| Gets the horizontal alignment of this BFont relative to the insertion point. | |
| BRotation | GetRotation (void) const |
| Gets the rotation angle for this BFont. | |
| double | GetRotationAngle (void) const |
| Gets the rotation angle for this BFont. | |
| EVertAlignment | GetVerticalAlignment (void) const |
| Gets the vertical alignment of this BFont relative to the insertion point. | |
| bool | IsBold (void) const |
| Gets an indicator of whether or not this BFont is bold. | |
| bool | IsItalic (void) const |
| Gets an indicator of whether or not this BFont is italic. | |
| bool | IsUnderlined (void) const |
| Gets an indicator of whether or not this BFont is underlined. | |
| void | SetBGColor (const BColor &color) |
| Sets the background color for this BFont. | |
| void | SetBold (bool val) |
| Sets an indicator of whether or not this BFont is bold. | |
| void | SetFaceName (const BString &face) |
| Sets the name of the font. | |
| void | SetFGColor (const BColor &color) |
| Sets the foreground color for this BFont, which is the color of the text. | |
| void | SetHeight (double height) |
| Sets the font height. | |
| void | SetHorizontalAlignment (EHorzAlignment align) |
| Sets the horizontal alignment for this BFont relative to the insertion point. | |
| void | SetItalic (bool val) |
| Sets an indicator of whether or not this BFont is italic. | |
| void | SetRotation (const BRotation &rot) |
| Sets the rotation info for this BFont. | |
| void | SetRotationAngle (double ang) |
| Sets the rotation angle for this BFont. | |
| void | SetUnderlined (bool val) |
| Sets an indicator of whether or not this BFont is underlined. | |
| void | SetVerticalAlignment (EVertAlignment align) |
| Sets the vertical alignment for this BFont relative to the insertion point. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| virtual | ~BFont () |
| Destructor. | |
| BFont | ( | ) | [inline] |
Default constructor.
Constructs a BFont with the specified face name and size.
| face | The face name for the font. | |
| height | The size of the font. |
| virtual ~BFont | ( | ) | [inline, virtual] |
Destructor.
| virtual size_t ComputeSize | ( | void | ) | const [virtual] |
Computes the size of the BByteArray required to store this object.
Implements BByteStreamable.
| virtual void FromByteArray | ( | const BByteArray & | bytes, | |
| size_t & | startPos | |||
| ) | [virtual] |
Initializes an instance of this object from a BByteArray.
| bytes | The BByteArray containing the byte representation for this object. | |
| startPos | The position in the BByteArray where the byte representation begins. This value will be updated to point to the byte past the end of this object in the byte array. |
Implements BByteStreamable.
| BColor GetBGColor | ( | void | ) | const [inline] |
| const BString& GetFaceName | ( | void | ) | const [inline] |
Gets the name of the font.
| BColor GetFGColor | ( | void | ) | const [inline] |
Get the foreground color for this BFont, which is the color of the text.
| double GetHeight | ( | void | ) | const [inline] |
Gets the font height.
| EHorzAlignment GetHorizontalAlignment | ( | void | ) | const [inline] |
Gets the horizontal alignment of this BFont relative to the insertion point.
| BRotation GetRotation | ( | void | ) | const [inline] |
| double GetRotationAngle | ( | void | ) | const [inline] |
| EVertAlignment GetVerticalAlignment | ( | void | ) | const [inline] |
Gets the vertical alignment of this BFont relative to the insertion point.
| bool IsBold | ( | void | ) | const [inline] |
| bool IsItalic | ( | void | ) | const [inline] |
| bool IsUnderlined | ( | void | ) | const [inline] |
| void SetBGColor | ( | const BColor & | color | ) | [inline] |
| void SetBold | ( | bool | val | ) | [inline] |
| void SetFaceName | ( | const BString & | face | ) | [inline] |
Sets the name of the font.
| face | The face name, e.g. "Arial". |
| void SetFGColor | ( | const BColor & | color | ) | [inline] |
Sets the foreground color for this BFont, which is the color of the text.
| color | The foreground color. |
| void SetHeight | ( | double | height | ) | [inline] |
Sets the font height.
| height | The height value. |
| void SetHorizontalAlignment | ( | EHorzAlignment | align | ) | [inline] |
Sets the horizontal alignment for this BFont relative to the insertion point.
| align | The horizontal alignment value. |
| void SetItalic | ( | bool | val | ) | [inline] |
| void SetRotation | ( | const BRotation & | rot | ) | [inline] |
| void SetRotationAngle | ( | double | ang | ) | [inline] |
| void SetUnderlined | ( | bool | val | ) | [inline] |
| void SetVerticalAlignment | ( | EVertAlignment | align | ) | [inline] |
Sets the vertical alignment for this BFont relative to the insertion point.
| align | The vertical alignment value. |
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Implements BByteStreamable.