4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://floralicense.org/license/
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef _PREVIEW_COORDS_H_INCLUDED_
21 #define _PREVIEW_COORDS_H_INCLUDED_
23 #include <previewgen.h>
24 #include <paper_size.h>
27 #define PAGE_SIDE_SHOW_COEFF 0.1
28 #define MIN_PAGE_SPACE_COEFF 0.06
31 struct preview_page_req {
32 //struct paper_size_pts paper_size;
33 struct size_pts paper_size;
34 struct size_px available_size_px;
35 //struct size_pts border_size;
36 struct size_px shadow_offset;
40 //struct size_pts *parts;
42 //int n_up2; /* power of 2 for n-up */
43 //int is_borders; /* TODO: borders size */
44 //int is_original_zoom;
45 //int page; /* number of real page */
48 struct preview_page_px {
49 struct size_px full_size;
50 struct size_px paper_size;
51 struct size_px area_size;
52 struct size_px area_offset;
58 /* request for page with it's near parts */
59 /*struct preview_settings_req {
60 struct preview_page_req page_req;
63 struct preview_settings_px {
64 struct preview_page_px page_px;
68 struct size_px full_size;
71 int get_preview_page_settings(const struct preview_page_req *req,
72 struct preview_page_px *res);
73 int get_preview_settings(const struct preview_page_req *req,
74 struct preview_settings_px *res);
76 #endif /* _PREVIEW_COORDS_H_INCLUDED_ */