5da86886325d5bd27f7f2976f841394b44d7a2e5
[platform/core/uifw/libscl-ui-nui.git] / capi / include / cscl-ui-graphics-backend.h
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __SCL_GRAPHICS_BACKEND_H__
18 #define __SCL_GRAPHICS_BACKEND_H__
19
20 #include <sclui.h>
21
22 class CUIGraphicsBackendCallback : public ISCLUIGraphicsBackendCallback
23 {
24 public :
25     void on_draw_text(const SclFontInfo& font_info, const SclColor& color, const char *str, int pos_x, int pos_y, int w, int h,
26                       SCLLabelAlignment align, int padding_x, int padding_y, int inner_width, int inner_height, void* user_data);
27
28     void on_draw_image(const char *image_path, int dest_x, int dest_y, int dest_weight, int dest_height, int src_x, int src_y, int src_width, int src_height, void* user_data);
29
30     void on_draw_rectangle(int pos_x, int pos_y, int width, int height, bool fill, int fill_color_r, int fill_color_g, int fill_color_b, int fill_color_a, void* user_data);
31 };
32
33 #endif /* __SCL_GRAPHICS_BACKEND_H__ */