forked from 4coder-archive/4coder_fleury
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4coder_fleury_render_helpers.h
32 lines (25 loc) · 1.03 KB
/
4coder_fleury_render_helpers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* date = January 29th 2021 7:54 pm */
#ifndef FCODER_FLEURY_RENDER_HELPERS_H
#define FCODER_FLEURY_RENDER_HELPERS_H
enum F4_RangeHighlightKind
{
F4_RangeHighlightKind_Whole,
F4_RangeHighlightKind_Underline,
F4_RangeHighlightKind_MinorUnderline,
};
struct F4_Flash
{
b32 active;
f32 t;
Buffer_ID buffer;
Range_i64 range;
ARGB_Color color;
f32 decay_rate;
};
function void F4_DrawTooltipRect(Application_Links *app, Rect_f32 rect);
function void F4_RenderRangeHighlight(Application_Links *app, View_ID view_id, Text_Layout_ID text_layout_id, Range_i64 range, F4_RangeHighlightKind kind, ARGB_Color color);
function void F4_PushTooltip(String_Const_u8 string, ARGB_Color color);
function void F4_PushFlash(Application_Links *app, Buffer_ID buffer, Range_i64 range, ARGB_Color color, f32 decay_rate);
function void F4_UpdateFlashes(Application_Links *app, Frame_Info info);
function void F4_RenderFlashes(Application_Links *app, View_ID view, Text_Layout_ID text_layout);
#endif // FCODER_FLEURY_RENDER_HELPERS_H