Center text in buttons in the demo and gallery

This adds horizontal_alignment/vertical_alignment properties, along with
width/height to Text.

This still uses a hard-coded enumeration in the compiler, which is meant
to go away in favor of general enum support.
This commit is contained in:
Simon Hausmann 2020-08-07 08:47:28 +02:00
parent 7ad693da60
commit aecf6a8878
15 changed files with 219 additions and 8 deletions

View file

@ -32,6 +32,8 @@ using internal::ItemTreeNode;
using ComponentRef = VRef<ComponentVTable>;
using ItemVisitorRefMut = VRefMut<internal::ItemVisitorVTable>;
using internal::EasingCurve;
using internal::TextHorizontalAlignment;
using internal::TextVerticalAlignment;
using internal::WindowProperties;
struct ComponentWindow
@ -158,6 +160,9 @@ Flickable::~Flickable()
sixtyfps_flickable_data_free(&data);
}
template <int Major, int Minor, int Patch> struct VersionCheckHelper {};
template<int Major, int Minor, int Patch>
struct VersionCheckHelper
{
};
} // namespace sixtyfps