diff options
Diffstat (limited to 'widget/include/EFLUtil.h')
-rwxr-xr-x | widget/include/EFLUtil.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/widget/include/EFLUtil.h b/widget/include/EFLUtil.h new file mode 100755 index 0000000..72fb218 --- /dev/null +++ b/widget/include/EFLUtil.h @@ -0,0 +1,61 @@ +/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.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.
+ */
+ +#pragma once + +#include <Elementary.h> + +namespace EFL { + void get_evas_geometry(Evas_Object *obj, const char *prefix); + + Evas_Object *create_gesture(Evas_Object *parent); + + Evas_Object *create_rect(Evas_Object *parent); + + Evas_Object *create_clipper(Evas_Object *parent); + + Evas_Object *create_layout(Evas_Object *parent, const char *edj, const char *group); + + Evas_Object *create_button(Evas_Object *parent, const char *style, const char *icon, const char *caption); + + void dump_obj(Evas_Object *obj, int lvl = 0); + + // Returned value Should be freed after using + char * current_render_method(Evas *e); + + Evas_Object *create_window(const char *title, int w, int h); + +}; + +namespace util { + typedef enum { + eImageCodec_JPEG, + eImageCodec_GIF, + eImageCodec_PNG, + eImageCodec_IMAGE, // tif.. other image files + eImageCodec_UNKNOWN, + } Image_Codec_Type; + + Image_Codec_Type + get_codec_type(const unsigned char *buffer, unsigned int size); + + Image_Codec_Type + get_codec_type(const char *filename); + + bool is_openGL_enabled(Evas *e); +}; + + |