enesim  0.0.23.1
Drawinglibrary
enesim_renderer_mask02.c

Example usage of a mask property on a renderer

enesim_renderer_mask02.png
#include "enesim_example_renderer.h"

Enesim_Renderer * enesim_example_renderer_renderer_get(Enesim_Example_Renderer_Options *options EINA_UNUSED)
{
    Enesim_Renderer *m, *r;

    m = enesim_renderer_checker_new();
    enesim_renderer_checker_odd_color_set(m, 0x00000000);
    enesim_renderer_checker_even_color_set(m, 0xffff0000);
    enesim_renderer_checker_width_set(m, 5);
    enesim_renderer_checker_height_set(m, 5);

    r = enesim_renderer_circle_new();
    enesim_renderer_circle_center_set(r, 128, 128);
    enesim_renderer_circle_radius_set(r, 64);

    enesim_renderer_shape_stroke_color_set(r, 0xffff0000);
    enesim_renderer_shape_stroke_weight_set(r, 5);
    enesim_renderer_shape_fill_color_set(r, 0x55550000);
    enesim_renderer_shape_draw_mode_set(r, ENESIM_RENDERER_SHAPE_DRAW_MODE_STROKE_FILL);

    enesim_renderer_mask_set(m, r);
    return m;
}
 All Data Structures Variables