lines-are-beautiful  0.0
A C++ file API for the reMarkable e-ink tablet
Classes | Namespaces | Enumerations | Functions | Variables
Line.hpp File Reference
#include "Point.hpp"
#include <cstdint>
#include <list>

Go to the source code of this file.

Classes

struct  rmlab::Line
 

Namespaces

 rmlab::Brushes
 
 rmlab::Colors
 
 rmlab::BaseSizes
 

Enumerations

enum  rmlab::Brushes::Brushes {
  rmlab::Brushes::pen1 = 2u, rmlab::Brushes::pen2 = 3u, rmlab::Brushes::fineliner = 4u, rmlab::Brushes::pencil_sharp = 7u,
  rmlab::Brushes::pencil_tilt = 1u, rmlab::Brushes::brush = 0u, rmlab::Brushes::highlighter = 5u, rmlab::Brushes::rubber = 6u,
  rmlab::Brushes::unknown_brush = 7u, rmlab::Brushes::rubber_area = 8u, rmlab::Brushes::erase_all = 9u, rmlab::Brushes::selection_brush1 = 10u,
  rmlab::Brushes::selection_brush2 = 11u, rmlab::Brushes::fine_line1 = 12u, fine_line2 = 13u, fine_line3 = 14u
}
 
enum  rmlab::Colors::Colors { rmlab::Colors::black = 0u, rmlab::Colors::grey = 1u, rmlab::Colors::white = 2u }
 

Functions

Line rmlab::make_line (int32_t brush_type=1, int32_t color=0, int32_t unknown_line_attribute=0, float brush_base_size=2.125, std::list< Point > points=std::list< Point >{})
 

Variables

constexpr float rmlab::BaseSizes::small = 1.875
 
constexpr float rmlab::BaseSizes::mid = 2.0
 
constexpr float rmlab::BaseSizes::large = 2.125
 

Detailed Description

Definition of lines and of the magic numbers that encode their attributes.