You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Julian Hinxlage 397982e59a Merge branch 'dev' into 'master' 1 year ago
.ci + pixelwerte getter/setter 1 year ago
src reset shared memory if reset() is called 1 year ago
test removed keyboard buffer unit test 1 year ago
.clang-tidy + starting with unit tests for pixel area 1 year ago
.gitignore + Catch2 as Unit Test Framework 1 year ago
.gitlab-ci.yml ~use clang instead of g++ 1 year ago
CHANGELOG.md ~ updated changelog for 0.2.0 1 year ago
CMakeLists.txt add for MACOS 1 year ago
LICENSE + Catch2 as Unit Test Framework 1 year ago
README.md better README 1 year ago

README.md

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);
}