mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-20 20:28:42 -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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue