mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00
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:
parent
7ad693da60
commit
aecf6a8878
15 changed files with 219 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue