Storage Only Commit

This commit is contained in:
William
2024-03-23 02:43:42 +08:00
commit 4f7df68a3c
4 changed files with 84 additions and 0 deletions

62
Render/include/colour.h Normal file
View File

@@ -0,0 +1,62 @@
#warning No colour will be used at the stage. --22th Mar 2024
#ifndef COMPOUND_RENDER_COLOUR_H
# define COMPOUND_RENDER_COLOUR_H
# include <Compound/common.h>
/*
* 0 to restore default color
* 1 for brighter colors
* 4 for underlined text
* 5 for flashing text
* 30 for black foreground
* 31 for red foreground
* 32 for green foreground
* 33 for yellow (or brown) foreground
* 34 for blue foreground
* 35 for purple foreground
* 36 for cyan foreground
* 37 for white (or gray) foreground
* 40 for black background
* 41 for red background
* 42 for green background
* 43 for yellow (or brown) background
* 44 for blue background
* 45 for purple background
* 46 for cyan background
* 47 for white (or gray) background
*/
static const char *COLOUR8_BLACK = "\\[";
static const char *COLOUR8_RED = "";
static const char *COLOUR8_GREEN = "";
static const char *COLOUR8_BLUE = "";
static const char *COLOUR8_YELLOW = "";
static const char *COLOUR8_MAGENTA = "";
static const char *COLOUR8_CYAN = "";
static const char *COLOUR8_WHITE = "";
// enum Colour16 {
// COLOUR16_DIM_BLACK,
// COLOUR16_DIM_RED,
// COLOUR16_DIM_GREEN,
// COLOUR16_DIM_BLUE,
// COLOUR16_DIM_YELLOW,
// COLOUR16_DIM_MAGENTA,
// COLOUR16_DIM_CYAN,
// COLOUR16_DIM_GREY,
// COLOUR16_BRIGHT_BLACK,
// COLOUR16_BRIGHT_RED,
// COLOUR16_BRIGHT_GREEN,
// COLOUR16_BRIGHT_BLUE,
// COLOUR16_BRIGHT_YELLOW,
// COLOUR16_BRIGHT_MAGENTA,
// COLOUR16_BRIGHT_CYAN,
// COLOUR16_WHITE,
// };
static const bit COMPOUNR_COLOUR_BACKGROUND = 0;
static const bit COMPOUNR_COLOUR_FOREGROUND = 1;
#endif /* COMPOUND_RENDER_COLOUR_H */

View File

@@ -0,0 +1,6 @@
#ifndef COMPOUND_RENDER_HIGHLIGHT_H
# define COMPOUND_RENDER_HIGHLIGHT_H
#endif /* COMPOUND_RENDER_HIGHLIGHT_H */

16
Render/include/render.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef RENDER_H
# define RENDER_H
# include <Compound/common.h>
# include <Compound/pen.h>
/** Rendering */
void compound_pen_render_refresh();
void compound_pen_render_full();
void compound_pen_render_full_with(int *buff);
void compound_pen_render_partial(Selection selc);
void compound_pen_render_partial_with(Selection selc, int *buff);
void compound_pen_render_highlight(Selection selc, int method);
void compound_pen_set_cursor_highlight_method(Pen *pen, int method);
#endif /* RENDER_H */

0
Render/src/render.h Normal file
View File