22 #ifndef BLADERUNNER_UI_IMAGE_PICKER_H 23 #define BLADERUNNER_UI_IMAGE_PICKER_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/str.h" 35 class BladeRunnerEngine;
38 typedef void UIImagePickerCallback(
int,
void *);
45 const Shape *shapeHovered;
46 const Shape *shapeDown;
54 int _hoveredImageIndex;
55 int _pressedImageIndex;
56 uint32 _hoverStartTimestamp;
60 UIImagePickerCallback *_mouseInCallback;
61 UIImagePickerCallback *_mouseOutCallback;
62 UIImagePickerCallback *_mouseDownCallback;
63 UIImagePickerCallback *_mouseUpCallback;
71 bool defineImage(
int i,
Common::Rect rect,
const Shape *shapeUp,
const Shape *shapeHovered,
const Shape *shapeDown,
const char *tooltip);
73 bool setImageTop(
int i,
int top);
74 bool setImageLeft(
int i,
int left);
75 bool setImageWidth(
int i, int16 width);
76 bool setImageShapeUp(
int i,
const Shape *shapeUp);
77 bool setImageShapeHovered(
int i,
const Shape *shapeHovered);
78 bool setImageShapeDown(
int i,
const Shape *shapeDown);
79 bool setImageTooltip(
int i,
const char *tooltip);
81 int getImageTop(
int i);
82 int getImageLeft(
int i);
83 int getImageWidth(
int i);
85 bool resetActiveImage(
int i);
87 void activate(UIImagePickerCallback *mouseInCallback,
88 UIImagePickerCallback *mouseOutCallback,
89 UIImagePickerCallback *mouseDownCallback,
90 UIImagePickerCallback *mouseUpCallback,
98 bool handleMouseAction(
int x,
int y,
bool down,
bool up,
bool ignore =
false);
100 void resetImage(
int i);
101 bool hasHoveredImage();
Definition: formatinfo.h:28
Definition: ui_image_picker.h:40
Definition: bladerunner.h:113
Definition: movie_decoder.h:32