haiku/headers/os/locale/FormatParameters.h
Oliver Tappe c3ac87e8fc * Copied imported OpenTracker Locale Kit files from the vendor branch
into their new homes (at least for now, might need some adjustment).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 19:23:59 +00:00

40 lines
924 B
C++

#ifndef _B_FORMAT_PARAMETERS_H_
#define _B_FORMAT_PARAMETERS_H_
#include <SupportDefs.h>
#include <LocaleBuild.h>
enum format_alignment {
B_ALIGN_FORMAT_LEFT, // reuse B_ALIGN_LEFT/B_ALIGN_RIGHT?
B_ALIGN_FORMAT_RIGHT,
};
class _IMPEXP_LOCALE BFormatParameters {
public:
BFormatParameters(const BFormatParameters *parent = NULL);
BFormatParameters(const BFormatParameters &other);
~BFormatParameters();
void SetAlignment(format_alignment alignment);
format_alignment Alignment() const;
void SetFormatWidth(size_t width);
size_t FormatWidth() const;
const BFormatParameters *ParentParameters() const;
BFormatParameters &operator=(const BFormatParameters &other);
protected:
void SetParentParameters(const BFormatParameters *parent);
private:
const BFormatParameters *fParent;
format_alignment fAlignment;
size_t fWidth;
uint32 fFlags;
};
#endif // _B_FORMAT_PARAMETERS_H_