HISE Logo Forum
    • Categories
    • Register
    • Login

    Show and Tell: Grid based layout system

    Scheduled Pinned Locked Moved Scripting
    layoutgui
    2 Posts 2 Posters 144 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by d.healey

      Just wanted to share something I'm working on. It was briefly discussed last month here.

      It's a grid based layout system, inspired by html and other layout languages. The idea is you define your components once in a JSON type format, pass it to the layout engine, and it will do the rest. It can layout components in a vertical or horizontal stack, or use a flexible grid.

      If no dimensions are passed components will stretch to fill the available space. Dimensions can be passed either as numbers or percentages relative to the parent/column/row.

      By default components are centred horizontally and vertically within each grid cell but you can specify their alignment (top/bottom/left/right). For stacks components butt against each other, I have plans to add some alignment options here as well though as well as margins/gutters.

      If you want to add multiple controls you can define one control and specify a number of clones, and they will be created and positioned automatically.

      I think it will make it easier for me to transfer layouts between projects as well as quickly build complex projects. I have a lot more functionality planned.

      Peek 2024-11-14 00-39.gif

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      VirtualVirginV 1 Reply Last reply Reply Quote 11
      • VirtualVirginV
        VirtualVirgin @d.healey
        last edited by VirtualVirgin

        @d-healey

        Three thumbs up!
        Building matrices is on my todo list for next week, so this will come in handy!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        23

        Online

        1.7k

        Users

        11.8k

        Topics

        102.4k

        Posts