20#ifndef LIBREPCB_EDITOR_UIHELPERS_H
21#define LIBREPCB_EDITOR_UIHELPERS_H
51static_assert(
sizeof(ui::Int64) == 8);
53static_assert(
sizeof(Angle) ==
sizeof(
int));
55qint64
s2l(
const ui::Int64& v)
noexcept;
57ui::Int64
l2s(
const Length& v)
noexcept;
58Length
s2length(
const ui::Int64& v)
noexcept;
59std::optional<UnsignedLength>
s2ulength(
const ui::Int64& v)
noexcept;
60std::optional<PositiveLength>
s2plength(
const ui::Int64& v)
noexcept;
62int l2s(
const Angle& v)
noexcept;
68ui::LengthUnit
l2s(
const LengthUnit& v)
noexcept;
69LengthUnit
s2l(ui::LengthUnit v)
noexcept;
71slint::cbindgen_private::TextHorizontalAlignment
l2s(
const HAlign& v)
noexcept;
72HAlign
s2l(slint::cbindgen_private::TextHorizontalAlignment v)
noexcept;
74slint::cbindgen_private::TextVerticalAlignment
l2s(
const VAlign& v)
noexcept;
75VAlign
s2l(slint::cbindgen_private::TextVerticalAlignment v)
noexcept;
79ui::EditorCommand
l2s(
const EditorCommand& cmd, ui::EditorCommand in)
noexcept;
81ui::FeatureState
toFs(
bool enabled)
noexcept;
Severity
Message severity type (higher number = higher severity)
Definition rulecheckmessage.h:50
GridStyle
Definition theme.h:49
static ui::WireMode l2s(BoardEditorState_DrawTrace::WireMode v) noexcept
Definition board2dtab.cpp:91
std::optional< PositiveLength > s2plength(const ui::Int64 &v) noexcept
Definition uihelpers.cpp:61
static BoardEditorState_DrawTrace::WireMode s2l(ui::WireMode v) noexcept
Definition board2dtab.cpp:107
ui::FeatureState toFs(bool enabled) noexcept
Definition uihelpers.cpp:215
Angle s2angle(int v) noexcept
Definition uihelpers.cpp:70
Length s2length(const ui::Int64 &v) noexcept
Definition uihelpers.cpp:52
std::optional< UnsignedLength > s2ulength(const ui::Int64 &v) noexcept
Definition uihelpers.cpp:56
Definition occmodel.cpp:77
qint64 LengthBase_t
This type is the ONLY base type to store all lengths (always in nanometers)!
Definition length.h:61