summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPtyl Dragon <ptyl@cloudon.com>2013-10-29 18:12:00 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:51:56 +0100
commit2c27c563efcdace98e37da1dbc4824df7267ceaa (patch)
tree191ce45ea9574ddad7d5a607bafa691ef42af145 /include
parent745517c12eaf032580fccb06c37da186ba6487d1 (diff)
created a long long unit for MLOContentSize
Change-Id: I41910058088161119d3cae8ca625d456652d890f
Diffstat (limited to 'include')
-rw-r--r--include/touch/touch.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/touch/touch.h b/include/touch/touch.h
index 0041038ba934..6fba7bd9b737 100644
--- a/include/touch/touch.h
+++ b/include/touch/touch.h
@@ -90,6 +90,19 @@ typedef CGRect MLORect;
typedef basegfx::B2IBox MLORect;
#endif
+typedef long long MLOContentSizeDimension;
+struct MLOContentSize {
+ MLOContentSizeDimension width;
+ MLOContentSizeDimension height;
+};
+typedef struct MLOContentSize MLOContentSize;
+
+CG_INLINE MLOContentSize
+MLOContentSizeMake(MLOContentSizeDimension width, MLOContentSizeDimension height)
+{
+ MLOContentSize size; size.width = width; size.height = height; return size;
+}
+
void touch_ui_selection_start(MLOSelectionKind kind,
const void *documentHandle,
MLORect *rectangles,
@@ -132,7 +145,7 @@ context, contextHeight, contextWidth specify where to draw.
*/
void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, int tilePosX, int tilePosY, int tileWidth, int tileHeight);
void touch_lo_copy_buffer(const void * source, size_t sourceWidth, size_t sourceHeight, size_t sourceBytesPerRow, void * target, size_t targetWidth, size_t targetHeight);
-CGSize touch_lo_get_content_size();
+MLOContentSize touch_lo_get_content_size();
void touch_lo_mouse_drag(int x, int y, MLOMouseButtonState state);
// Move the start of the selection to (x,y)