2020-07-20 05:14:27 +01:00
|
|
|
/*
|
|
|
|
* ssheven
|
|
|
|
*
|
|
|
|
* Copyright (c) 2020 by cy384 <cy384@cy384.com>
|
|
|
|
* See LICENSE file for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ssheven.h"
|
|
|
|
#include <string.h>
|
|
|
|
|
2020-07-26 15:13:51 +01:00
|
|
|
void console_setup(void);
|
|
|
|
|
2020-07-20 05:14:27 +01:00
|
|
|
void draw_char(int x, int y, Rect* r, char c);
|
|
|
|
void draw_screen(Rect* r);
|
|
|
|
|
2020-10-04 18:41:36 +01:00
|
|
|
void draw_screen_fast(Rect* r);
|
|
|
|
void draw_screen_mono(Rect* r);
|
|
|
|
void draw_screen_color(Rect* r);
|
|
|
|
|
2020-07-20 05:14:27 +01:00
|
|
|
void bump_up_line();
|
|
|
|
|
|
|
|
int is_printable(char c);
|
|
|
|
|
|
|
|
void print_char(char c);
|
|
|
|
void print_string(const char* c);
|
2020-07-24 00:45:01 +01:00
|
|
|
void print_int(int d);
|
2020-07-20 05:14:27 +01:00
|
|
|
|
2020-07-26 15:13:51 +01:00
|
|
|
void printf_i(const char* c, ...);
|
|
|
|
|
2020-07-20 05:14:27 +01:00
|
|
|
void set_window_title(WindowPtr w, const char* c_name);
|
|
|
|
|
2020-07-26 15:13:51 +01:00
|
|
|
void ruler(Rect* r);
|
2020-08-18 03:21:38 +01:00
|
|
|
|
|
|
|
Rect cell_rect(int x, int y, Rect bounds);
|
2020-08-22 02:29:34 +01:00
|
|
|
|
|
|
|
void toggle_cursor(void);
|
|
|
|
void check_cursor(void);
|
2020-10-04 17:19:49 +01:00
|
|
|
|
2020-12-22 00:38:12 +00:00
|
|
|
void mouse_click(Point p, bool click);
|
|
|
|
|
2020-10-04 17:19:49 +01:00
|
|
|
void update_console_colors(void);
|