Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -30,43 +30,42 @@
namespace ui {
struct Style {
const Font& font;
const Color background;
const Color foreground;
const Font& font;
const Color background;
const Color foreground;
Style invert() const;
Style invert() const;
};
class Widget;
class Painter {
public:
Painter() { };
public:
Painter(){};
Painter(const Painter&) = delete;
Painter(Painter&&) = delete;
Painter(const Painter&) = delete;
Painter(Painter&&) = delete;
int draw_char(const Point p, const Style& style, const char c);
int draw_char(const Point p, const Style& style, const char c);
int draw_string(Point p, const Font& font, const Color foreground,
const Color background, const std::string& text);
int draw_string(Point p, const Style& style, const std::string& text);
int draw_string(Point p, const Font& font, const Color foreground, const Color background, const std::string& text);
int draw_string(Point p, const Style& style, const std::string& text);
void draw_bitmap(const Point p, const Bitmap& bitmap, const Color background, const Color foreground);
void draw_bitmap(const Point p, const Bitmap& bitmap, const Color background, const Color foreground);
void draw_rectangle(const Rect r, const Color c);
void fill_rectangle(const Rect r, const Color c);
void fill_rectangle_unrolled8(const Rect r, const Color c);
void draw_rectangle(const Rect r, const Color c);
void fill_rectangle(const Rect r, const Color c);
void fill_rectangle_unrolled8(const Rect r, const Color c);
void paint_widget_tree(Widget* const w);
void draw_hline(Point p, int width, const Color c);
void draw_vline(Point p, int height, const Color c);
private:
void paint_widget(Widget* const w);
void paint_widget_tree(Widget* const w);
void draw_hline(Point p, int width, const Color c);
void draw_vline(Point p, int height, const Color c);
private:
void paint_widget(Widget* const w);
};
} /* namespace ui */
#endif/*__UI_PAINTER_H__*/
#endif /*__UI_PAINTER_H__*/