FabGL
ESP32 Display Controller and Graphics Library
fabutils.h File Reference

This file contains some utility classes and functions. More...

#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include <driver/adc.h>
#include <esp_system.h>
#include "sdmmc_cmd.h"
#include "soc/frc_timer_reg.h"
Include dependency graph for fabutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CoreUsage
 This class helps to choice a core for intensive processing tasks. More...
 
struct  CurrentVideoMode
 This class helps to know which is the current video output (VGA or Composite) More...
 
struct  DirItem
 FileBrowser item specificator. More...
 
class  FileBrowser
 FileBrowser allows basic file system operations (dir, mkdir, remove and rename) More...
 
struct  MouseButtons
 Describes mouse buttons status. More...
 
struct  MouseStatus
 Describes mouse absolute position, scroll wheel delta and buttons status. More...
 
struct  Point
 Represents the coordinate of a point. More...
 
struct  Rect
 Represents a rectangle. More...
 
struct  Size
 Represents a bidimensional size. More...
 
struct  VirtualKeyItem
 A struct which contains a virtual key, key state and associated scan code. More...
 

Enumerations

enum class  ChipPackage { }
 This enum defines ESP32 module types (packages) More...
 
enum class  DriveType { None , SPIFFS , SDCard }
 This enum defines drive types (SPIFFS or SD Card) More...
 
enum class  VideoMode {
  None , VGA , CVBS , I2C ,
  SPI
}
 Specifies a video mode. More...
 
enum  VirtualKey {
  VK_NONE , VK_SPACE , VK_0 , VK_1 ,
  VK_2 , VK_3 , VK_4 , VK_5 ,
  VK_6 , VK_7 , VK_8 , VK_9 ,
  VK_KP_0 , VK_KP_1 , VK_KP_2 , VK_KP_3 ,
  VK_KP_4 , VK_KP_5 , VK_KP_6 , VK_KP_7 ,
  VK_KP_8 , VK_KP_9 , VK_a , VK_b ,
  VK_c , VK_d , VK_e , VK_f ,
  VK_g , VK_h , VK_i , VK_j ,
  VK_k , VK_l , VK_m , VK_n ,
  VK_o , VK_p , VK_q , VK_r ,
  VK_s , VK_t , VK_u , VK_v ,
  VK_w , VK_x , VK_y , VK_z ,
  VK_A , VK_B , VK_C , VK_D ,
  VK_E , VK_F , VK_G , VK_H ,
  VK_I , VK_J , VK_K , VK_L ,
  VK_M , VK_N , VK_O , VK_P ,
  VK_Q , VK_R , VK_S , VK_T ,
  VK_U , VK_V , VK_W , VK_X ,
  VK_Y , VK_Z , VK_GRAVEACCENT , VK_ACUTEACCENT ,
  VK_QUOTE , VK_QUOTEDBL , VK_EQUALS , VK_MINUS ,
  VK_KP_MINUS , VK_PLUS , VK_KP_PLUS , VK_KP_MULTIPLY ,
  VK_ASTERISK , VK_BACKSLASH , VK_KP_DIVIDE , VK_SLASH ,
  VK_KP_PERIOD , VK_PERIOD , VK_COLON , VK_COMMA ,
  VK_SEMICOLON , VK_AMPERSAND , VK_VERTICALBAR , VK_HASH ,
  VK_AT , VK_CARET , VK_DOLLAR , VK_POUND ,
  VK_EURO , VK_PERCENT , VK_EXCLAIM , VK_QUESTION ,
  VK_LEFTBRACE , VK_RIGHTBRACE , VK_LEFTBRACKET , VK_RIGHTBRACKET ,
  VK_LEFTPAREN , VK_RIGHTPAREN , VK_LESS , VK_GREATER ,
  VK_UNDERSCORE , VK_DEGREE , VK_SECTION , VK_TILDE ,
  VK_NEGATION , VK_LSHIFT , VK_RSHIFT , VK_LALT ,
  VK_RALT , VK_LCTRL , VK_RCTRL , VK_LGUI ,
  VK_RGUI , VK_ESCAPE , VK_PRINTSCREEN , VK_SYSREQ ,
  VK_INSERT , VK_KP_INSERT , VK_DELETE , VK_KP_DELETE ,
  VK_BACKSPACE , VK_HOME , VK_KP_HOME , VK_END ,
  VK_KP_END , VK_PAUSE , VK_BREAK , VK_SCROLLLOCK ,
  VK_NUMLOCK , VK_CAPSLOCK , VK_TAB , VK_RETURN ,
  VK_KP_ENTER , VK_APPLICATION , VK_PAGEUP , VK_KP_PAGEUP ,
  VK_PAGEDOWN , VK_KP_PAGEDOWN , VK_UP , VK_KP_UP ,
  VK_DOWN , VK_KP_DOWN , VK_LEFT , VK_KP_LEFT ,
  VK_RIGHT , VK_KP_RIGHT , VK_KP_CENTER , VK_F1 ,
  VK_F2 , VK_F3 , VK_F4 , VK_F5 ,
  VK_F6 , VK_F7 , VK_F8 , VK_F9 ,
  VK_F10 , VK_F11 , VK_F12 , VK_GRAVE_a ,
  VK_GRAVE_e , VK_GRAVE_i , VK_GRAVE_o , VK_GRAVE_u ,
  VK_GRAVE_y , VK_ACUTE_a , VK_ACUTE_e , VK_ACUTE_i ,
  VK_ACUTE_o , VK_ACUTE_u , VK_ACUTE_y , VK_GRAVE_A ,
  VK_GRAVE_E , VK_GRAVE_I , VK_GRAVE_O , VK_GRAVE_U ,
  VK_GRAVE_Y , VK_ACUTE_A , VK_ACUTE_E , VK_ACUTE_I ,
  VK_ACUTE_O , VK_ACUTE_U , VK_ACUTE_Y , VK_UMLAUT_a ,
  VK_UMLAUT_e , VK_UMLAUT_i , VK_UMLAUT_o , VK_UMLAUT_u ,
  VK_UMLAUT_y , VK_UMLAUT_A , VK_UMLAUT_E , VK_UMLAUT_I ,
  VK_UMLAUT_O , VK_UMLAUT_U , VK_UMLAUT_Y , VK_CARET_a ,
  VK_CARET_e , VK_CARET_i , VK_CARET_o , VK_CARET_u ,
  VK_CARET_y , VK_CARET_A , VK_CARET_E , VK_CARET_I ,
  VK_CARET_O , VK_CARET_U , VK_CARET_Y , VK_CEDILLA_c ,
  VK_CEDILLA_C , VK_TILDE_a , VK_TILDE_o , VK_TILDE_n ,
  VK_TILDE_A , VK_TILDE_O , VK_TILDE_N , VK_UPPER_a ,
  VK_ESZETT , VK_EXCLAIM_INV , VK_QUESTION_INV , VK_INTERPUNCT ,
  VK_DIAERESIS , VK_SQUARE , VK_CURRENCY , VK_MU ,
  VK_aelig , VK_oslash , VK_aring , VK_AELIG ,
  VK_OSLASH , VK_ARING , VK_YEN , VK_MUHENKAN ,
  VK_HENKAN , VK_KATAKANA_HIRAGANA_ROMAJI , VK_HANKAKU_ZENKAKU_KANJI , VK_SHIFT_0 ,
  VK_ASCII , VK_LAST
}
 Represents each possible real or derived (SHIFT + real) key. More...
 

Functions

void replacePathSep (char *path, char newSep)
 Replaces path separators. More...
 

Variables

int16_t height
 
int16_t width
 
int16_t X
 
int16_t X1
 
int16_t X2
 
int16_t Y
 
int16_t Y1
 
int16_t Y2
 

Detailed Description

This file contains some utility classes and functions.

Definition in file fabutils.h.