The Be Book Release Notes Release Notes Index

The Translation Kit


BTranslationUtils

Declared in:  be/translation/TranslationUtils.h
more...



GetBitmap()

static BBitmap * GetBitmap(const entry_ref * ref, BTranslatorRoster * use = NULL)

New version of GetBitmap() takes an entry_ref as its initial argument.


Global Functions

Declared in:  be/translation/Translator.h

make_nth_translator()

BTranslator *make_nth_translator(int32 n, image_id addon, uint32 flags, ...)

You implement this function in your translator add-on to create and return a new BTranslator object. A single add-on can create instances from more than one BTranslator subclass. You don't have to publicize how many different translators you can create; instead, you simply create and return an instance of a different subclass for each value of the index n (starting with 0) and return NULL when you run out of subclasses.

addon is the image that your addon lives in. It's provided as a convenience.

flags is currently unused.

This function replaces the translator add-on API defined in translation/TranslatorAddOn.h.


Translator Add-ons

Declared in:  be/translation/TranslatorAddOn.h

All of the functions and symbols in this file have been deprecated. To provide a BTranslator object from an add-on, you implement the make_nth_translator() function, describe immediately above. Translator add-ons themselves still live in the usual places (in the Translators subdirectory of B_*_ADDONS_DIRECTORY).


The Be Book Release Notes Release Notes Index

The Be Book,
...in lovely HTML...
for BeOS Release 5.

Copyright © 2000 Be, Inc. All rights reserved..