Go to file
2019-11-19 11:56:18 +01:00
.ci ~fixed all clang-tidy erros 2019-11-13 15:42:04 +01:00
src + multiple process entries per event type 2019-11-19 11:56:18 +01:00
test + everything namespaced 2019-11-13 13:37:49 +01:00
.clang-tidy ~ remove trailing type declaration check 2019-11-14 13:30:32 +01:00
.gitignore + Catch2 as Unit Test Framework 2019-10-16 15:11:16 +02:00
.gitlab-ci.yml ~ CI: clang_tidy step now contains catch2 & fltk 2019-11-12 11:11:13 +00:00
CHANGELOG.md ~ updated changelog for 0.2.0 2019-11-07 17:44:06 +01:00
CMakeLists.txt Merge branch 'dev' of ssh://gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/library into dev 2019-11-13 15:42:17 +01:00
LICENSE + Catch2 as Unit Test Framework 2019-10-16 15:11:16 +02:00
README.md better README 2019-10-28 18:41:41 +00:00

vKVM Library

This library allows for easy interaction with the graphical user interface of the vKVM project.

Features

  • set pixel color
  • respond to keyboard/mouse events
  • get/set text to be drawn

Installation

Use the installation script provided in the Scripts repository to install the full package.

Installing a single component is currently not supported.

Include

Include this library with

set(LIB_PATH "${CMAKE_SOURCE_DIR}/../relative_path_to_library_folder")

include_directories(${LIB_PATH}/include)
add_executable(your_client ${SOURCES} ${HEADERS})

target_link_libraries(your_client ${LIB_PATH}/lib/liblibrary.a)

in your CMakeList.

Usage

#include <vkvm.h>

int main(int argc, char* argv[]) {
    if(argc != 1) return -1;
    int pid = std::stoi(argv[0]);
    initialize(pid);

    setPixel(10, 10, Color::black);
    setPixel(10, 20, Color::red);
}