2006-06-06 20:28:42 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#ifndef HEADER_RichString
|
|
|
|
#define HEADER_RichString
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <curses.h>
|
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
#define RICHSTRING_MAXLEN 300
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct RichString_ {
|
|
|
|
int len;
|
|
|
|
chtype chstr[RICHSTRING_MAXLEN+1];
|
|
|
|
} RichString;
|
|
|
|
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
|
|
|
#endif
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
RichString RichString_new();
|
|
|
|
|
|
|
|
void RichString_delete(RichString this);
|
|
|
|
|
|
|
|
void RichString_prune(RichString* this);
|
|
|
|
|
|
|
|
void RichString_write(RichString* this, int attrs, char* data);
|
|
|
|
|
|
|
|
inline void RichString_append(RichString* this, int attrs, char* data);
|
|
|
|
|
|
|
|
inline void RichString_appendn(RichString* this, int attrs, char* data, int len);
|
|
|
|
|
|
|
|
void RichString_setAttr(RichString *this, int attrs);
|
|
|
|
|
|
|
|
void RichString_applyAttr(RichString *this, int attrs);
|
|
|
|
|
|
|
|
RichString RichString_quickString(int attrs, char* data);
|
|
|
|
|
|
|
|
#endif
|