{"id":13341341,"url":"https://github.com/guhwanbae/rxwayland","last_synced_at":"2025-03-11T21:30:37.418Z","repository":{"id":43095056,"uuid":"277862295","full_name":"guhwanbae/rxwayland","owner":"guhwanbae","description":"C++ Reactive Extensions(RxCpp) adaptor for libwayland","archived":false,"fork":false,"pushed_at":"2022-03-18T16:23:40.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-30T21:01:54.579Z","etag":null,"topics":["cpp","libweston","rx","rxcpp","wayland","wayland-library","weston"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guhwanbae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-07T16:03:13.000Z","updated_at":"2022-06-25T20:59:57.000Z","dependencies_parsed_at":"2022-08-19T14:41:35.100Z","dependency_job_id":null,"html_url":"https://github.com/guhwanbae/rxwayland","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guhwanbae%2Frxwayland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guhwanbae%2Frxwayland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guhwanbae%2Frxwayland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guhwanbae%2Frxwayland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guhwanbae","download_url":"https://codeload.github.com/guhwanbae/rxwayland/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221249545,"owners_count":16784960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","libweston","rx","rxcpp","wayland","wayland-library","weston"],"created_at":"2024-07-29T19:25:24.381Z","updated_at":"2024-10-23T23:31:00.964Z","avatar_url":"https://github.com/guhwanbae.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxWayland\nRxWayland is an adaptor to allow that rxcpp run_loop schedules rx events on the wayland event loop.\n\n# Example\n```cpp\n#include \u003cchrono\u003e\n\n#include \"rxwayland/console.hpp\"\n#include \"rxwayland/run_loop.hpp\"\n\nint main() {\n  auto loop = wl_event_loop_create();\n  rxwayland::run_loop rl{loop};\n\n  auto start = std::chrono::steady_clock::now() + std::chrono::microseconds(16);\n  auto period = std::chrono::milliseconds(16);\n  rxcpp::observable\u003c\u003e::interval(start, period)\n      .take(60)\n      .subscribe([](long v) { rxwayland::console::out(\"on_next(): {}\\n\", v); },\n                 []() { rxwayland::console::out(\"on_completed()\\n\"); });\n\n  rxwayland::console::out(\"run wayland event loop\\n\");\n  while (wl_event_loop_dispatch(loop, -1) != -1) {\n  }\n\n  return 0;\n}\n```\n\n# Building and Installing\n```sh\nmkdir build\ncd build\ncmake .. # (Optional) -DCMAKE_INSTALL_PREFIX=/opt/my-storage\n```\n# Usage with CMake\n```cmake\nfind_package(PkgConfig REQUIRED)\npkg_check_modules(RXWAYLAND REQUIRED rxwayland)\ntarget_include_directories(${PROJECT_NAME} PUBLIC ${RXWAYLAND_INCLUDE_DIRS})\ntarget_link_libraries(${PROJECT_NAME} PUBLIC ${RXWAYLAND_LIBRARIES})\n```\n\n# Requirement\n* [RxCpp](https://github.com/Reactive-Extensions/RxCpp)\n* [Wayland](https://gitlab.freedesktop.org/wayland/wayland)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguhwanbae%2Frxwayland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguhwanbae%2Frxwayland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguhwanbae%2Frxwayland/lists"}