created a long long unit for MLOContentSize
Change-Id: I41910058088161119d3cae8ca625d456652d890f
This commit is contained in:
committed by
Jan Holesovsky
parent
745517c12e
commit
2c27c563ef
@@ -90,6 +90,19 @@ typedef CGRect MLORect;
|
|||||||
typedef basegfx::B2IBox MLORect;
|
typedef basegfx::B2IBox MLORect;
|
||||||
#endif
|
#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,
|
void touch_ui_selection_start(MLOSelectionKind kind,
|
||||||
const void *documentHandle,
|
const void *documentHandle,
|
||||||
MLORect *rectangles,
|
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_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);
|
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);
|
void touch_lo_mouse_drag(int x, int y, MLOMouseButtonState state);
|
||||||
|
|
||||||
// Move the start of the selection to (x,y)
|
// Move the start of the selection to (x,y)
|
||||||
|
@@ -1815,6 +1815,15 @@ void touch_lo_draw_tile(void * context, int contextWidth, int contextHeight, int
|
|||||||
}
|
}
|
||||||
Application::ReleaseSolarMutex();
|
Application::ReleaseSolarMutex();
|
||||||
}
|
}
|
||||||
|
extern "C"
|
||||||
|
MLOContentSize touch_lo_get_content_size()
|
||||||
|
{
|
||||||
|
SwWrtShell *pViewShell = GetActiveWrtShell();
|
||||||
|
if (pViewShell)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return MLOContentSizeMake(0,0);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" void touch_ui_selection_none() {}
|
extern "C" void touch_ui_selection_none() {}
|
||||||
|
@@ -414,17 +414,6 @@ touch_lo_copy_buffer(const void * source, size_t sourceWidth, size_t sourceHeigh
|
|||||||
CGImageRelease(sourceImage);
|
CGImageRelease(sourceImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
|
||||||
CGSize touch_lo_get_content_size()
|
|
||||||
{
|
|
||||||
CGSize contentSize = CGSizeMake(0,0);
|
|
||||||
SalFrame *pFocus = IosSalInstance::getInstance()->getFocusFrame();
|
|
||||||
if (pFocus)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
return contentSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
void touch_lo_render_windows(void *context, int minX, int minY, int width, int height)
|
void touch_lo_render_windows(void *context, int minX, int minY, int width, int height)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user