2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
17 * @file PdRenderBuffer.h
18 * @author Yunchan Cho (yunchan.cho@samsung.com)
20 #ifndef PD_RENDER_BUFFER_H
21 #define PD_RENDER_BUFFER_H
24 #include <provider_buffer.h>
25 #include "IRenderBuffer.h"
26 #include "RenderBuffer.h"
28 #define EXPORT_CLASS __attribute__ ((visibility("default"))
30 class EXPORT_CLASS PdRenderBuffer: public RenderBuffer {
33 TOUCH_EVENT_UNRECOGNIZED = -1,
39 static IRenderBufferPtr create(
40 std::string boxId, std::string instanceId,
41 int width, int height)
43 return IRenderBufferPtr(new PdRenderBuffer(boxId, instanceId, width, height));
48 void didHandleTouchEvent(
49 TouchType type, double timestamp, double x, double y);
51 // RenderBuffer Implementation
52 int getWidth() { return m_width; };
53 int getHeight() { return m_height; };
54 void setWidth(int width) { m_width = width; };
55 void setHeight(int height) { m_height = height; };
56 BufferInfoPtr acquireBuffer();
60 static int handleTouchEventCallback(
61 BufferInfoPtr bufferInfo,
69 std::string boxId, std::string instanceId,
70 int width, int height);
74 std::string m_instanceId;
79 #endif // PD_RENDER_BUFFER_H