# Group 3 Support Tasks

Task Summary

Owner

BBitmap

Xavier Castellan

BFont

Font Support

Task Details

BBitmap Class

BBitmap(BRect bounds, uint32 flags, color_space depth, int32 bytesPerRow=B_ANY_BYTES_PER_ROW, screen_id screenID=B_MAIN_SCREEN_ID);

BBitmap(BRect bounds, color_space depth, bool accepts_views = false, bool need_contiguous = false);

BBitmap(const BBitmap* source, bool accepts_views = false, bool need_contiguous = false);

BBitmap(BMessage* data);

virtual ~BBitmap();

static BArchivable* Instantiate(BMessage* data);

virtual status_t Archive(BMessage* data, bool deep = true) const;

status_t InitCheck() const;

bool IsValid() const;

status_t LockBits(uint32* state=NULL);

void UnlockBits();

area_id Area() const;

void* Bits() const;

int32 BitsLength() const;

int32 BytesPerRow() const;

color_space ColorSpace() const;

BRect Bounds() const;

void SetBits(const void* data, int32 length, int32 offset, color_space cs);

status_t GetOverlayRestrictions(overlay_restrictions* restrict) const;

virtual void AddChild(BView* view);

virtual bool RemoveChild(BView* view);

int32 CountChildren() const;

BView* ChildAt(int32 index) const;

BView* FindView(const char* view_name) const;

BView* FindView(BPoint point) const;

bool Lock();

void Unlock();

bool IsLocked() const;

BFont Class

BFont();

BFont(const BFont &font);

BFont(const BFont* font);

status_t SetFamilyAndStyle(const font_family family,

void SetFamilyAndStyle(uint32 code);

status_t SetFamilyAndFace(const font_family family, uint16 face);

void SetSize(float size);

void SetShear(float shear);

void SetRotation(float rotation);

void SetSpacing(uint8 spacing);

void SetEncoding(uint8 encoding);

void SetFace(uint16 face);

void SetFlags(uint32 flags);

void GetFamilyAndStyle(font_family* family, font_style* style) const;

uint32 FamilyAndStyle() const;

float Size() const;

float Shear() const;

float Rotation() const;

uint8 Spacing() const;

uint8 Encoding() const;

uint16 Face() const;

uint32 Flags() const;

font_direction Direction() const;

bool IsFixed() const;

bool IsFullAndHalfFixed() const;

BRect BoundingBox() const;

unicode_block Blocks() const;

font_file_format FileFormat() const;

int32 CountTuned() const;

void GetTunedInfo(int32 index, tuned_font_info* info) const;

void TruncateString(BString* in_out, uint32 mode, float width) const;

void GetTruncatedStrings(const char* stringArray[], int32 numStrings, uint32 mode, float width, BString resultArray[]) const;

void GetTruncatedStrings(const char* stringArray[], int32 numStrings, uint32 mode, float width, char* resultArray[]) const;

float StringWidth(const char* string) const;

float StringWidth(const char* string, int32 length) const;

void GetStringWidths(const char* stringArray[], const int32 lengthArray[], int32 numStrings, float widthArray[]) const;

void GetEscapements(const char charArray[], int32 numChars, float escapementArray[]) const;

void GetEscapements(const char charArray[], int32 numChars, escapement_delta* delta, float escapementArray[]) const;

void GetEscapements(const char charArray[], int32 numChars, escapement_delta* delta, BPoint escapementArray[]) const;

void GetEscapements(const char charArray[], int32 numChars, escapement_delta* delta, BPoint escapementArray[], BPoint offsetArray[]) const;

void GetEdges(const char charArray[], int32 numBytes, edge_info edgeArray[]) const;

void GetHeight(font_height* height) const;

void GetBoundingBoxesAsGlyphs(const char charArray[], int32 numChars, font_metric_mode mode, BRect boundingBoxArray[]) const;

void GetBoundingBoxesAsString(const char charArray[], int32 numChars, font_metric_mode mode, escapement_delta* delta, BRect boundingBoxArray[]) const;

void GetBoundingBoxesForStrings(const char* stringArray[], int32 numStrings, font_metric_mode mode, escapement_delta deltas[], BRect boundingBoxArray[]) const;

void GetGlyphShapes(const char charArray[], int32 numChars, BShape* glyphShapeArray[]) const;

void GetHasGlyphs(const char charArray[], int32 numChars, bool hasArray[]) const;

BFont& operator=(const BFont &font);

bool operator==(const BFont &font) const;

bool operator!=(const BFont &font) const;

void PrintToStream() const;

Font Support Functions

int32 count_font_families();

status_t get_font_family(int32 index, font_family* name, uint32* flags = NULL);

int32 count_font_styles(font_family name);

status_t get_font_style(font_family family, int32 index, font_style* name, uint32* flags = NULL);

status_t get_font_style(font_family family, int32 index, font_style* name, uint16* face, uint32* flags = NULL);

bool update_font_families(bool check_only);

status_t get_font_cache_info(uint32 id, void* set);

status_t set_font_cache_info(uint32 id, void* set);

Legend

| Functional Spec
| Use Cases
| Unit Tests
| Technical Spec
| Implementation
| Completed

The OpenBeOS project is hosted by:

Copyright © 2001-2002 OpenBeOS Project