diff --git a/src/cpp/core/FlexLayout/flexitem.h b/src/cpp/core/FlexLayout/flexitem.h index 7d2e79a8f..f65e2155a 100644 --- a/src/cpp/core/FlexLayout/flexitem.h +++ b/src/cpp/core/FlexLayout/flexitem.h @@ -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. */ diff --git a/src/cpp/core/YogaWidget/nodestyle.h b/src/cpp/core/YogaWidget/nodestyle.h index 4c5fd154f..7b7c2a5a5 100644 --- a/src/cpp/core/YogaWidget/nodestyle.h +++ b/src/cpp/core/YogaWidget/nodestyle.h @@ -5,6 +5,14 @@ #include #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; diff --git a/src/cpp/core/YogaWidget/yogawidget.h b/src/cpp/core/YogaWidget/yogawidget.h index 462d4b20d..fce359f05 100644 --- a/src/cpp/core/YogaWidget/yogawidget.h +++ b/src/cpp/core/YogaWidget/yogawidget.h @@ -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