feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCROLL_CONTAINER_H
|
||||
#define SCROLL_CONTAINER_H
|
||||
#pragma once
|
||||
|
||||
#include "container.h"
|
||||
|
||||
|
|
@ -63,12 +62,15 @@ private:
|
|||
bool drag_touching = false;
|
||||
bool drag_touching_deaccel = false;
|
||||
bool beyond_deadzone = false;
|
||||
bool scroll_on_drag_hover = false;
|
||||
|
||||
ScrollMode horizontal_scroll_mode = SCROLL_MODE_AUTO;
|
||||
ScrollMode vertical_scroll_mode = SCROLL_MODE_AUTO;
|
||||
|
||||
int deadzone = 0;
|
||||
bool follow_focus = false;
|
||||
int scroll_border = 20;
|
||||
int scroll_speed = 12;
|
||||
|
||||
struct ThemeCache {
|
||||
Ref<StyleBox> panel_style;
|
||||
|
|
@ -82,6 +84,7 @@ private:
|
|||
|
||||
bool draw_focus_border = false;
|
||||
bool focus_border_is_drawn = false;
|
||||
bool child_has_focus();
|
||||
|
||||
protected:
|
||||
Size2 get_minimum_size() const override;
|
||||
|
|
@ -96,9 +99,14 @@ protected:
|
|||
void _update_scrollbar_position();
|
||||
void _scroll_moved(float);
|
||||
|
||||
void _accessibility_action_scroll_set(const Variant &p_data);
|
||||
void _accessibility_action_scroll_up(const Variant &p_data);
|
||||
void _accessibility_action_scroll_down(const Variant &p_data);
|
||||
void _accessibility_action_scroll_left(const Variant &p_data);
|
||||
void _accessibility_action_scroll_right(const Variant &p_data);
|
||||
|
||||
public:
|
||||
virtual void gui_input(const Ref<InputEvent> &p_gui_input) override;
|
||||
bool child_has_focus();
|
||||
|
||||
void set_h_scroll(int p_pos);
|
||||
int get_h_scroll() const;
|
||||
|
|
@ -124,6 +132,8 @@ public:
|
|||
bool is_following_focus() const;
|
||||
void set_follow_focus(bool p_follow);
|
||||
|
||||
void set_scroll_on_drag_hover(bool p_scroll);
|
||||
|
||||
HScrollBar *get_h_scroll_bar();
|
||||
VScrollBar *get_v_scroll_bar();
|
||||
void ensure_control_visible(Control *p_control);
|
||||
|
|
@ -137,5 +147,3 @@ public:
|
|||
};
|
||||
|
||||
VARIANT_ENUM_CAST(ScrollContainer::ScrollMode);
|
||||
|
||||
#endif // SCROLL_CONTAINER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue