2 * Copyright 2013 Samsung Electronics Co., Ltd
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.
19 static CWindow *Find(enum target_type type, const char *id);
20 static CWindow *Create(enum target_type type, const char *id, int w, int h);
22 static void *s_AllocateCanvas(void *data, int size);
23 static void s_ReleaseCanvas(void *data, void *canvas);
24 static void s_PostRender(void *data, Evas *e, void *event_info);
25 static int s_BufferEventHandler(struct livebox_buffer *buffer, enum buffer_event event, double timestamp, double x, double y, void *data);
28 int Resize(int w, int h);
30 void SetBuffer(struct livebox_buffer *pBuffer) { m_pBuffer = pBuffer; }
31 enum target_type Type(void) { return m_vType; }
32 int Width(void) { return m_nWidth; }
33 int Height(void) { return m_nHeight; }
34 struct livebox_buffer *Buffer(void) { return m_pBuffer; }
35 Evas_Object *Object(void) { return m_pObject; }
36 const char *Id(void) { return m_sID; }
37 Evas *EvasObject(void) { return m_pEvas; }
40 CWindow(enum target_type type, int width, int height);
41 virtual ~CWindow(void);
43 enum target_type m_vType;
47 struct livebox_buffer *m_pBuffer;
49 Ecore_Evas *m_pEcoreEvas;
51 Evas_Object *m_pObject;
55 static Eina_List *s_pList;