Oops
This commit is contained in:
8
include/JUI/Widgets/ListBox.hpp
Normal file
8
include/JUI/Widgets/ListBox.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
//
|
||||
// Created by dawsh on 11/24/24.
|
||||
//
|
||||
|
||||
#ifndef LISTBOX_HPP
|
||||
#define LISTBOX_HPP
|
||||
|
||||
#endif //LISTBOX_HPP
|
@@ -13,6 +13,11 @@ namespace JUI {
|
||||
void Draw() override;
|
||||
[[nodiscard]] bool FitText() const { return fit_text; }
|
||||
void FitText(bool on) { fit_text = on; }
|
||||
|
||||
bool AutoFitSizeToText();
|
||||
void AutoFitSizeToText(bool resize);
|
||||
bool AutoFitTextToSize();
|
||||
void AutoFitTextToSize(bool resize);
|
||||
protected:
|
||||
void DrawInScissor() override;
|
||||
bool fit_text = false;
|
||||
|
@@ -276,7 +276,6 @@ namespace JUI {
|
||||
return absolute_position - anchor_offset;
|
||||
}
|
||||
|
||||
// TODO: implement padding shrinking abs_size
|
||||
Vector2 Widget::GetAbsoluteSize() const {
|
||||
|
||||
if (this->GetParent() == nullptr)
|
||||
@@ -291,7 +290,6 @@ namespace JUI {
|
||||
|
||||
Vector2 abs_size = child_size_px + (parent_abs_size * child_size_scale) - pad_size_reduction;
|
||||
|
||||
// TODO: Take into account constraints on widgets.
|
||||
return abs_size;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user