57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
100 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
102 class PCL_CLASS Control;
153 using item_alignment = Align::value_type;
204 return !IsVertical();
229 return IndexOf( s ) >= 0;
237 return IndexOf( c ) >= 0;
292 void Add(
Control& c,
int stretchFactor = 0, item_alignment align = Align::Default );
315 AddSpacing( size,
true );
326 AddSpacing( size,
false );
376 void Insert(
int index,
Control& c,
int stretchFactor = 0, item_alignment align = Align::Default );
399 InsertSpacing( index, size,
true );
410 InsertSpacing( index, size,
false );
481 int Margin(
bool autoScaling =
true )
const;
546 return RoundInt( DisplayPixelRatio()*size );
557 return RoundInt( size/DisplayPixelRatio() );
566 void* CloneHandle()
const override;
568 friend class Control;
Client-side interface to a PixInsight Control object.
Client-side interface to a PixInsight horizontal sizer.
~HorizontalSizer() override
Base class for PixInsight sizer objects.
int Margin(bool autoScaling=true) const
void SetStretchFactor(Sizer &s, int stretch)
void SetStretchFactor(Control &c, int stretch)
void InsertUnscaledSpacing(int index, int size)
void Insert(int index, Sizer &s, int stretchFactor=0)
double DisplayPixelRatio() const
void EnsureUnique() override
void SetMargin(int margin, bool autoScaling=true)
int IndexOf(const Control &c) const
void AddStretch(int stretchFactor=100)
void Insert(int index, Control &c, int stretchFactor=0, item_alignment align=Align::Default)
int Spacing(bool autoScaling=true) const
Control & ParentControl() const
bool Contains(const Control &c) const
bool IsHorizontal() const
void Add(Sizer &s, int stretchFactor=0)
int PhysicalPixelsToLogical(int size) const
int NumberOfItems() const
void SetAlignment(Control &c, item_alignment align)
void SetSpacing(int spacing, bool autoScaling=true)
void AddSpacing(int size, bool autoScaling=true)
void InsertScaledSpacing(int index, int size)
void AddUnscaledSpacing(int size)
void InsertSpacing(int index, int size, bool autoScaling=true)
void AddScaledSpacing(int size)
void InsertStretch(int index, int stretchFactor=100)
int LogicalPixelsToPhysical(int size) const
void SetAlignment(Sizer &s, item_alignment align)
Align::value_type item_alignment
int IndexOf(const Sizer &s) const
bool Contains(const Sizer &s) const
void Add(Control &c, int stretchFactor=0, item_alignment align=Align::Default)
Root base class for all user interface objects.
Client-side interface to a PixInsight vertical sizer.
~VerticalSizer() override
int RoundInt(T x) noexcept