Skip to content

SDL2 GUI Library v1.1.0

Compare
Choose a tag to compare
@adamajammary adamajammary released this 16 Sep 15:05
· 8 commits to main since this release
2be8d4d

libsdl2gui

A free cross-platform user interface library using SDL2

Copyright (C) 2021 Adam A. Jammary (Jammary Studio)

libsdl2gui is a free cross-platform user interface library using SDL2.

3rd Party Libraries

Library Version License
SDL2 2.28.2 zlib license
SDL2_image 2.6.3 zlib license
SDL2_ttf 2.20.2 zlib license
libXML2 2.11.5 MIT License

Changelog

  • Updated
    • README doc with more details on cross-platform builds
  • Fixed
    • Conflicting typedef names
    • LSG_GetTableRow does not include header
    • Scroll by offset after changing page
    • Reset page navigation when setting list/table content
    • Make sure menu is properly closed when selecting an item
    • Scroll direction is opposite on macOS
  • Improved
    • Menu selection/toggling
    • Dynamic font size handling
    • Menu labels
    • Make sure menu is rendered last (above all other UI)
    • SetPage only calls list component, needs to be separate calls to list and table.
    • Pagination label
    • Increase max rows per page
    • Disable child components when disabling a parent
    • Component highlight on hover
    • Sub-menu navigation
    • Support for cross-platform build
  • Added
    • Public API endpoints for getting component position and size
    • Public API endpoints for showing row borders and getting multiple files/folders
    • Public API endpoints LSG_GetText, LSG_SetMenuItemValue, LSG_SetSliderValue and LSG_SetVisible
    • Event triggers for click, double-click and right-click on panels
    • Public API endpoint for getting slider value
    • Public API endpoints LSG_RemoveMenuItem and LSG_SaveFile
    • Public API endpoints LSG_GetSelectedRow and LSG_SelectRow
    • Public API endpoints LSG_GetSortColumn, LSG_GetSortOrder, LSG_GetScrollHorizontal, LSG_GetScrollVertical, LSG_IsVisible, LSG_ScrollHorizontal and LSG:ScrollVertical
    • Pagination for lists and tables
    • Public API endpoints LSG_GetColorTheme, LSG_GetPage and LSG_SetPage
    • Public API endpoint to scroll to the bottom
    • Public API endpoint to get the last page
    • Public API endpoint to select a row by offset
    • Event notifications for component scrolling and keyboard interaction
    • Public API endpoint LSG_GetBackgroundColor
    • Public API endpoint to select a button