4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.1 (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 _PAPER_SIZE_H_INCLUDED_
21 #define _PAPER_SIZE_H_INCLUDED_
23 //#include <previewgen.h>
35 struct paper_size_pts {
40 void switch_size_pts_coords(struct size_pts *s);
41 void switch_size_px_coords(struct size_px *s);
42 void add_size_pts(const struct size_pts *from, struct size_pts *to);
43 void neg_size_pts(struct size_pts *s);
45 int get_paper_size_pts(const char *name, struct paper_size_pts *s);
46 int pts_size2px(const struct size_pts *s_pts,
47 const struct size_px *border_s_px,
50 #endif /* _PAPER_SIZE_H_INCLUDED_ */