Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
6154c578fThis file is pinned to the selected release. Download the original to open it in your design tool.
/* matrixEditor.h
*
* Main file's header containing definitions and library calls
*
* Copyright 2018 (C) Taz8du29
* Refer to LICENSE.md for more infos about copyright
*/
#ifndef _MATRIXEDITOR_H_
#define _MATRIXEDITOR_H_
/* DEPENDENCIES */
// Standard libraries
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <cstdlib>
// FLTK libraries
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Tile.H>
#include <FL/Fl_PNG_Image.H>
#include <FL/Fl_Text_Buffer.H>
/* DATA STRUCTURES */
struct Pos {
uint16_t x;
uint16_t y;
};
struct Colors {
uint8_t bg;
uint8_t text;
uint8_t select;
};
/* CONSTANTS */
const Colors MenuColors { 0x45, 0xE5, 0x95 };
const Colors LogsColors { 0x45, 0xE5, 0x95 };
/* CLASSES */
class Application;
class Menu;
class Matrix;
class Led;
class LoggerField;
/* CLASS "Application" */
class Application : public Fl_Double_Window {
public:
Application(void);
// Children
Menu* topMenu;
Matrix* ledMatrix;
LoggerField* logField;
private:
const char* label = "matrixEditor";
Fl_Image* ico = new Fl_PNG_Image("images/icon_48x48.png");
};
/* OTHER FILES FOR THIS PROJECT */
#include "loggerField.h"
#include "matrix.h"
#include "menuEntries.h"
/* C++ PROGRAM */
#include "matrixEditor.cpp"
#endif /* !_MATRIXEDITOR_H_ */