Added more dev docs

This commit is contained in:
Atul R 2019-06-06 08:47:20 +02:00
parent e757f38eb5
commit 3b673b2ba3
3 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,7 @@
/*
FlexItem class is used to extend regular QWidget Classes to include Yoga/Flex Node in them.
In most cases you will use YogaWidget class instead of this one since it inherits from FlexItem.
*/

View File

@ -5,6 +5,14 @@
#include <unordered_map>
#include "deps/yoga/YGStyle.h"
/*
NodeStyle is a mapper class.
Its job is to provide maps between string values received via qt stylesheet and convert them to Yoga/Flex Node properties.
*/
struct NodeValueUnit{
YGUnit unit;
float value;

View File

@ -5,6 +5,11 @@
#include "nodestyle.h"
#include "src/cpp/core/FlexLayout/flexitem.h"
/*
YogaWidget class will be used to extend any regular Qt Widget class to give it Yoga Flex powers.
Basically if you extend a widget with this class you can then set yoga properties like justify content etc via qt stylesheet.
*/
/*
All Widgets for which you need to set yoga props via qstylesheet should
1. inherit from YogaWidget