displayLayout and Rendering TUI library |
git clone git://git.dimitrijedobrota.com/display.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
commit | 64b49553e59fba971978a8013525b7b3c5b38c5a |
parent | 0cb1feca33b58d8358f70672dde123e633ea5451 |
author | Dimitrije Dobrota < mail@dimitrijedobrota.com > |
date | Fri, 6 Jun 2025 17:04:19 +0200 |
Reflaced changes in based
M | CMakeLists.txt | | | + - |
M | example/example.cpp | | | ++ --- |
M | source/window_pivot.cpp | | | ++ -- |
M | vcpkg.json | | | + - |
4 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/ CMakeLists.txt b/ CMakeLists.txt
@@ -4,7 +4,7 @@
include(cmake/prelude.cmake)
project(
display
VERSION 0.3.0
VERSION 0.2.1
DESCRIPTION "TUI library"
HOMEPAGE_URL "git://git.dimitrijedobrota.com/display.git"
LANGUAGES CXX
diff --git a/ example/example.cpp b/ example/example.cpp
@@ -1,6 +1,7 @@
#include <iostream>
#include <alec/alec.hpp>
#include <based/types/literals.hpp>
#include "display/display.hpp"
#include "display/layout_rigid.hpp"
@@ -9,8 +10,6 @@
namespace
{
using namespace based::literals; // NOLINT(*namespace*)
using namespace display; // NOLINT(*namespace*)
using namespace based::literals; // NOLINT(*namespace*)
@@ -25,7 +24,7 @@
public:
void render() const override
{
static constexpr based::u8 inc = 0_u8;
static constexpr based::u8 mod = 256_u8;
static constexpr based::u8 mod = 255_u8;
static constexpr based::u8 color_green = 0_u8;
static constexpr based::u8 color_blue = 0_u8;
static based::u8 color_red = 0_u8;
diff --git a/ source/window_pivot.cpp b/ source/window_pivot.cpp
@@ -17,7 +17,7 @@
plc_t WindowPivot::place(plc_t aplc, piv_t piv, dim_t dim)
using display::add_lim, display::sub_lim;
switch (piv.piv_x()) {
switch (piv.piv_x()) { // NOLINT(*switch*)
case piv_t::x::left():
start.width = 0_w;
end.width = add_lim(start.width, wth, awth);
@@ -32,7 +32,7 @@
plc_t WindowPivot::place(plc_t aplc, piv_t piv, dim_t dim)
break;
}
switch (piv.piv_y()) {
switch (piv.piv_y()) { // NOLINT(*switch*)
case piv_t::y::top():
start.height = 0_h;
end.height = add_lim(start.height, hgt, ahth);
diff --git a/ vcpkg.json b/ vcpkg.json
@@ -1,6 +1,6 @@
{
"name": "display",
"version-semver": "0.2.0",
"version-semver": "0.2.1",
"dependencies": [
{
"name": "alec",