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

@ -35,33 +35,32 @@
namespace ui {
class SpectrumInputImageView : public View {
public:
SpectrumInputImageView(NavigationView& nav);
~SpectrumInputImageView();
public:
SpectrumInputImageView(NavigationView& nav);
~SpectrumInputImageView();
void focus() override;
void paint(Painter&) override;
void focus() override;
void paint(Painter&) override;
uint16_t get_width();
uint16_t get_height();
std::vector<uint8_t> get_line(uint16_t);
uint16_t get_width();
uint16_t get_height();
std::vector<uint8_t> get_line(uint16_t);
std::function<void()> on_input_avaliable { };
std::function<void()> on_input_avaliable{};
private:
bool painted {false};
std::string file {""};
uint16_t width {0};
uint16_t height {0};
uint8_t type {0};
uint32_t data_start {0};
Button button_load_image {
{ 0 * 8, 11 * 16 - 4, 30 * 8, 28 },
"Load Image ..."
};
bool drawBMP_scaled(const ui::Rect r, const std::string file);
private:
bool painted{false};
std::string file{""};
uint16_t width{0};
uint16_t height{0};
uint8_t type{0};
uint32_t data_start{0};
Button button_load_image{
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
"Load Image ..."};
bool drawBMP_scaled(const ui::Rect r, const std::string file);
};
}
} // namespace ui