diff options
Diffstat (limited to 'inc/common/conf.h')
-rwxr-xr-x | inc/common/conf.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/inc/common/conf.h b/inc/common/conf.h new file mode 100755 index 0000000..1d346b4 --- /dev/null +++ b/inc/common/conf.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.org/license/ + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __HOME_CONF_H__ +#define __HOME_CONF_H__ + +#include <app.h> + +extern double _get_resolution_scale_h(); +extern double _get_resolution_scale_w(); +extern int _get_window_h(); +extern int _get_window_w(); + +#define WINDOW_H (_get_window_h()) +#define WINDOW_W (_get_window_w()) +#define WINDOW_CENTER_X (WINDOW_W/2) +#define WINDOW_CENTER_Y (WINDOW_H/2) + +#define PAGE_W WINDOW_W +#define PAGE_H WINDOW_H + +#define OUTSIDE_X (-(WINDOW_W + WINDOW_W)) +#define OUTSIDE_Y (-(WINDOW_H + WINDOW_H)) + +#define SCALE_H (_get_resolution_scale_h()) +#define SCALE_W (_get_resolution_scale_w()) + +void conf_set_resolution(int w, int h); +bool conf_is_supported_resolution(int w, int h); + +#endif |