* gcc -o evas-events evas-events.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warning.
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
d.resize_timer = ecore_timer_add(2, _resize_cb, NULL);
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);
* gcc -o evas-images evas-images.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
evas_object_show(d.img2);
}
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);
* gcc -o evas-images2 evas-images2.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warnings
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
evas_object_resize(d.proxy_img, WIDTH / 2, HEIGHT / 2);
evas_object_show(d.proxy_img);
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);
* gcc -o evas-images3 evas-images3.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
int
main(void)
{
- // unsigned int i;
- // unsigned int pixels[(WIDTH / 4) * (HEIGHT / 4)];
-
if (!ecore_evas_init())
return EXIT_FAILURE;
evas_object_move(d.logo1, WIDTH / 2, 0);
evas_object_show(d.logo1);
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);
* gcc -o evas-images4 evas-images4.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
d.bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, NULL);
}
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);
* gcc -o evas-object-manipulation-eo evas-object-manipulation-eo.c `pkg-config --libs --cflags ecore evas ecore-evas eo`
* @endverbatim
*/
-//TODO: Fix error and warning.
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
+#define EFL_EO_API_SUPPORT
+#define EFL_BETA_API_SUPPORT
#endif
#include <Efl.h>
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
static const char *commands = \
"commands are:\n"
* 'canvas' keeps reference to 'image'.
* So it's possible to decrement refcount, and 'image' object
* will be deleted automatically by parent.*/
- eo_unref(d.img);
eo_do(d.img, evas_obj_image_filled_set(EINA_TRUE),
efl_file_set(img_path, NULL),
* rectangle) - it won't change clippees' colors, then (multiplying
* by 255) */
d.clipper = eo_add(EVAS_RECTANGLE_CLASS, d.canvas);
- eo_unref(d.clipper);
eo_do(d.clipper,
evas_obj_position_set( WIDTH / 4, HEIGHT / 4),
* gcc -o evas-smart-object evas-smart-object.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
-//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
if (strcmp(ev->key, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ puts(commands);
return;
}
evas_object_event_callback_add(
d.bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, NULL);
- fprintf(stdout, commands);
+ puts(commands);
ecore_main_loop_begin();
ecore_evas_free(d.ee);