#ifndef __BarIcon__H
#define __BarIcon__H

#include "WimpLib:std.h"
#include "WimpLib:Coords.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum
{
	  bar_PRight          = -1
	, bar_PLeft           = -2
	, bar_PLeftOf         = -3
	, bar_PRightOf        = -4
	, bar_PLeftScanLeft   = -5
	, bar_PLeftScanRight  = -6
	, bar_PRightScanLeft  = -7
	, bar_PRightScanRight = -8
} bar_epos;

HIcon BarIcon_Create(const char* text, int buf_len, const char* sprite, bar_epos pos, int prority) throws(mem os);
void  BarIcon_Delete(HIcon icon) throws(id);
void  BarIcon_SetSprite(HIcon icon, const char* text) throws(id);

#ifdef __cplusplus
}
#endif

#endif
