{"id":25604719,"url":"https://github.com/hyouteki/voyage","last_synced_at":"2025-04-13T09:53:11.244Z","repository":{"id":238903418,"uuid":"797827145","full_name":"hyouteki/voyage","owner":"hyouteki","description":"Minimal C Immediate Mode GUI application framework made from scratch on top of Raylib ","archived":false,"fork":false,"pushed_at":"2024-08-01T12:45:56.000Z","size":3880,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T06:01:44.465Z","etag":null,"topics":["application-framework","c","gui","raylib"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyouteki.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-08T15:40:13.000Z","updated_at":"2024-09-18T15:33:52.000Z","dependencies_parsed_at":"2025-02-21T17:50:08.570Z","dependency_job_id":"305291ff-4028-4e01-b944-e1b2e0a8ff2d","html_url":"https://github.com/hyouteki/voyage","commit_stats":null,"previous_names":["hyouteki/voyage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2Fvoyage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2Fvoyage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2Fvoyage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2Fvoyage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyouteki","download_url":"https://codeload.github.com/hyouteki/voyage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695304,"owners_count":21146952,"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":["application-framework","c","gui","raylib"],"created_at":"2025-02-21T17:50:03.578Z","updated_at":"2025-04-13T09:53:11.225Z","avatar_url":"https://github.com/hyouteki.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Minimal GUI application framework made on top of Raylib.\n\n\u003cimage src=\"./resources/logo.png\" width=\"1000\"\u003e\n\nVoyage is a versatile framework that supports writing GUIs in both C and XML. This allows for flexible and efficient GUI development tailored to various needs.\n\n## Features\n\n- **Hybrid GUI Development**: Design your GUI using XML for layout and style, and enhance it with C for dynamic behavior.\n- **Customizable Components**: Easily create and customize buttons, labels, images, inputs, and more.\n- **Responsive Design**: Build adaptive interfaces that look great on different screen sizes.\n\n## Cross Platform Support\n\n| Platform | Status             | Notes                            |\n|----------|--------------------|----------------------------------|\n| Linux    | ✔️ Supported | Full functionality available     |\n| Windows  | ✔️ Supported | Full functionality available     |\n| Web      | ✖️ Planned   | Future support under development |\n\n\n## Demo\n\n\u003cimage src=\"./resources/demo1.png\" width=\"1000\"\u003e\n\n### GUI with C and XML\n``` xml\n\u003crow id=\"main\"\u003e\n  \u003ccolumn id=\"sidebar\" weight=\"1\" background=\"black\"\u003e\n    \u003cimage id=\"logo\" src=\"./resources/logo.png\"/\u003e\n    \u003cbutton id=\"menu-button-1\" text=\"Menu button 1\"/\u003e\n    \u003clabel id=\"menu-label\" text=\"Sample label with word wrap\"/\u003e\n  \u003c/column\u003e\n  \u003ccolumn id=\"canvas\" weight=\"3\" background=\"dark-brown\"\u003e\n    \u003cbutton id=\"button-canvas\" text=\"Button inside Canvas\"/\u003e\n    \u003cbutton id=\"fixed-button\" text=\"Fixed Button inside Canvas\" fixed=\"true\"/\u003e\n    \u003clabel id=\"lorem-heading\" foreground=\"light-green\" font-size=\"36\" text=\"Lorem Ipsum\"/\u003e\n    \u003clabel id=\"lorem\" text=\"This is Voyage Demo written with C and XML.\" font=\"./resources/PlayFair.ttf\"/\u003e\n    \u003clabel id=\"input-desc\" text=\"Type something in the bellow input field.\"/\u003e\n    \u003cinput id=\"input\"/\u003e\n    \u003cspace id=\"space\" height=\"100\"/\u003e\n    \u003clabel id=\"space-label\" text=\"There's 100 pixels worth of empty space above.\"/\u003e\n    \u003cquote id=\"quote\" text=\"This is a Quote.\"/\u003e\n  \u003c/column\u003e\n\u003c/row\u003e\n```\n``` c\n#include \"export.h\"\n\nvoid buttonOnClick() {\n    printf(\"Menu button clicked\\n\");\n}\n\nint main() {\n    Voyage_Setup(900, 720, 60, \"Voyage Demo\", FLAG_WINDOW_RESIZABLE);\n    Voyage_SetContentView(\"demo_xml_content_view.xml\");\n    \n    Button *menuButton = Voyage_GetElementById(\"menu-button-1\");\n    menuButton-\u003eonClick = \u0026buttonOnClick;\n    \n    Voyage_MainLoop();\n    \n    return 0;\n}\n```\n### GUI solely in C\n``` c\n#include \"export.h\"\n\nvoid buttonOnClick() {\n    printf(\"Menu button clicked\\n\");\n}\n\nint main() {\n    Voyage_Setup(900, 720, 60, \"Voyage Demo\", FLAG_WINDOW_RESIZABLE);\n    \n    Column sidebar = Column_Init(Vector2Dummy, Vector2Dummy, Voyage_Black);\n    Image image = LoadImage(\"./resources/logo.png\");\n    Column_Add(\u0026sidebar, \u0026ImageContainer_EleInit(\u0026image));\n    Column_Add(\u0026sidebar, \u0026Button_EleInit(\"Menu button 1\", \u0026buttonOnClick));\n    Column_Add(\u0026sidebar, \u0026Label_EleInit(\"Sample label with word wrap\"));\n\n    Column canvas = Column_Init(Vector2Dummy, Vector2Dummy, Voyage_DarkBrown);\n    Column_AddF(\u0026canvas, \u0026Button_EleInit(\"Fixed button inside canvas\", NULL));\n    Column_Add(\u0026canvas, \u0026Button_EleInit(\"Button inside canvas\", NULL));\n    Column_Add(\u0026canvas, \u0026Heading_EleInit(\"Lorem Ipsum\"));\n    Column_Add(\u0026canvas, \u0026Label_EleInit(\"This is Voyage Demo written with C.\"));\n    Column_Add(\u0026canvas, \u0026Label_EleInit(\"Type something in the bellow input field.\"));\n    Column_Add(\u0026canvas, \u0026Input_EleInit(\"\", NULL));\n    Column_Add(\u0026canvas, \u0026Space_EleInit(100));\n    Column_Add(\u0026canvas, \u0026Label_EleInit(\"There's 100 pixels worth of empty space above.\"));\n    Column_Add(\u0026canvas, \u0026Quote_EleInit(\"This is a quote.\"));\n\n    Row row = Row_Init(Vector2Dummy, Vector2Dummy, 2,\n                       (Column *[]){\u0026sidebar, \u0026canvas}, (u32 []){1, 3});\n    \n    while (!WindowShouldClose()) {\n        Row_Resize(\u0026row, Voyage_ScreenDimen);\n        Row_AttachListeners(\u0026row);\n\n        BeginDrawing();\n        ClearBackground(BLACK);\n        Row_Draw(row);\n        EndDrawing();\n    }\n    CloseWindow();\n    Row_Free(\u0026row);\n    \n    return 0;\n}\n```\n\n## Getting Started\nEnsure you have Raylib installed. Follow the [Raylib installation guide](https://github.com/raysan5/raylib/wiki) for your operating system.\t\u003cbr\u003e\nClone the source code using `git clone --recursive --depth=1 https://github.com/hyouteki/voyage`.\n\n### GNU/Linux\n``` bash\nchmod +x build.sh\n./build.sh\n```\n\n### Windows\n- Build and install [Raylib](https://github.com/raysan5/raylib/wiki/Working-on-Windows).\n- Open `w64devkit.exe` in `C:\\raylib\\w64devkit` then navigate to the **Voyage** dir and type the following.\n``` bash\nchmod +x build.sh\n./build.sh\n```\n\n## Dependencies\n- [Raylib - raysan5](https://github.com/raysan5/raylib)\n- [Cxmlp - hyouteki](https://github.com/hyouteki/cxmlp)\n- [Steel - hyouteki](https://github.com/hyouteki/steel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyouteki%2Fvoyage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyouteki%2Fvoyage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyouteki%2Fvoyage/lists"}