Added more dev docs
This commit is contained in:
parent
e757f38eb5
commit
3b673b2ba3
@ -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.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user