osen / fl_flex Goto Github PK
View Code? Open in Web Editor NEWFLTK row / column sizer
License: Other
FLTK row / column sizer
License: Other
Stumbled across this when using Fl_Flex and a new project.
FL_Round_Buttons will automatically take care of the "radio button" logic [only one button in a set is 'on'] as long as the buttons are in the same Fl_Group.
As the Fl_Flex Row/Columns are derived from FL_Group, this means a set of Fl_Round_Buttons must all be in the same row/column for this automatic behavior to work. Otherwise, the programmer has to manage the button toggling themselves.
Hi!
I was looking at using FL_Flex, seems like good and simple code and quite useful!
It doesn't seem to have a license applied, would you consider applying a license perhaps applying the same FLTK license would be appropriate?
The need to add FL_Box "spacers" between items (e.g. FL_Flex::ROWs) is kinda awkward. Especially when populating a Fl_Flex::COLUMN. Having an auto-spacer setting (e.g. setSpacer(int val)
) might be useful. For a column it would add the requested vertical space between children; for a row it would add the requested horizontal space.
I'm liking this class! I nicely re-created a Tkinter GUI of mine pretty quickly:
Note the nice spacing between the Home/Prev/etc buttons. I achieved that by exposing Fl_Flex::margin and setting a value. Works well for a ROW but not so well for a COLUMN.
Warnings from Visual Studio building for 64-bit target:
FL_Flex.cpp(37,28): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(45,22): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(52,27): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(63,27): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(67,55): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(71,91): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(74,23): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(81,28): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(86,16): warning C4267: '-=': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(89,22): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(96,27): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(107,27): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(111,55): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(120,51): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
FL_Flex.cpp(123,23): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.