Implement UICodeEditor::isScrollable so it can have a parent scrollable element.

This commit is contained in:
Martín Lucas Golini
2025-03-02 13:24:10 -03:00
parent 2f2f9349f7
commit 762b740102
5 changed files with 18 additions and 9 deletions

View File

@@ -683,9 +683,11 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
Sizef getMaxScroll() const;
void setScrollX( const Float& val, bool emmitEvent = true );
virtual bool isScrollable() const;
void setScrollY( const Float& val, bool emmitEvent = true );
bool setScrollX( const Float& val, bool emmitEvent = true );
bool setScrollY( const Float& val, bool emmitEvent = true );
Vector2f getScreenStart() const;

View File

@@ -15,7 +15,7 @@ class EE_API UIMenu : public UIWidget {
public:
static UIMenu* New();
static void findBestMenuPos( Vector2f& position, UIMenu* menu, UIMenu* parent = NULL,
static void findBestMenuPos( Vector2f& position, UIWidget* menu, UIMenu* parent = NULL,
UIMenuSubMenu* subMenu = NULL );
UIMenu();