aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-20 07:06:06 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-20 07:06:06 +0100
commit4aec31515ff6f61f41dfd66551a3fce44f243535 (patch)
tree01c8cfd5b26c386a8f19d0f4772dff765618e2ef /include
parent62bbf0daacdd110509f8166e9a1bf162ecb23138 (diff)
More work on touch (behind QM_ENABLE_TOUCH=1 environment variable), save thumbnails with their size so using a different scaling will update thumbnails to the same scale
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index ac5853d..869ce0b 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -249,6 +249,7 @@ namespace QuickMedia {
sf::Vector2i thumbnail_max_size;
sf::Color line_separator_color;
BodyItemRenderCallback body_item_render_callback;
+ std::function<void(BodyItem*)> body_item_select_callback;
sf::Shader *thumbnail_mask_shader;
AttachSide attach_side = AttachSide::TOP;
private:
@@ -280,12 +281,19 @@ namespace QuickMedia {
bool items_cut_off = false;
float offset_to_top = 0.0f;
float offset_to_bottom = 0.0f;
+ bool experimental_use_touch = false;
bool mouse_state_set = false;
bool mouse_left_pressed = false;
+ bool mouse_left_clicked = false;
+ sf::Vector2f mouse_click_pos;
+ sf::Vector2f mouse_release_pos;
+ double mouse_press_pixels_moved_abs;
sf::Vector2f mouse_pos;
sf::Vector2f prev_mouse_pos;
sf::Vector2i mouse_pos_raw;
sf::Vector2f mouse_scroll_accel;
+ sf::Vector2f body_pos;
+ sf::Vector2f body_size;
float selected_item_height = 0.0f;
float selected_scrolled = 0.0f;
//float scroll_y = 0.0f;