4coder/4ed_style.h

51 lines
739 B
C
Raw Normal View History

/*
* Mr. 4th Dimention - Allen Webster
*
* 28.08.2015
*
* Styles for 4coder
*
*/
// TOP
#if !defined(FRED_STYLE_H)
#define FRED_STYLE_H
#include "4ed_generated_style.h"
struct Style_Font{
Face_ID font_id;
2016-03-04 23:10:00 +00:00
};
struct Style{
2018-08-07 09:08:01 +00:00
char name_[32];
String name;
Style_Main_Data main;
2016-03-04 23:10:00 +00:00
};
internal void
style_copy(Style *dst, Style *src){
*dst = *src;
dst->name.str = dst->name_;
}
internal void
style_set_name(Style *style, String name){
i32 count = ArrayCount(style->name_);
style->name = make_string_cap(style->name_, 0, count - 1);
copy_ss(&style->name, name);
terminate_with_null(&style->name);
2016-03-05 04:10:55 +00:00
}
struct Style_Library{
Style styles[64];
2018-08-10 21:52:57 +00:00
i32 count;
i32 max;
};
#endif
// BOTTOM