mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-31 02:29:38 -04:00
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:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue