summaryrefslogblamecommitdiff
path: root/src/lib/ector/ector_renderer_shape.c
blob: 5e421c86b84ea0432439e05c26d2cc3629e16fac (plain) (tree)
1
2
3
4
5
6
7
8
9








                          

                                           




                                                                     
                             


                             
                                                         









                                                                            
                                    


                             
                                                                









                                                                              
                                      


                             
                                                                  




                                                                              



                                                                          


                                         


 
                                    
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <Eina.h>
#include <Ector.h>

#include "ector_private.h"

#define MY_CLASS ECTOR_RENDERER_SHAPE_MIXIN

static void
_ector_renderer_shape_fill_set(Eo *obj EINA_UNUSED,
                                       Ector_Renderer_Shape_Data *pd,
                                       const Ector_Renderer *r)
{
   efl_replace(&pd->fill, r);
}

static const Ector_Renderer *
_ector_renderer_shape_fill_get(const Eo *obj EINA_UNUSED,
                                       Ector_Renderer_Shape_Data *pd)
{
   return pd->fill;
}

static void
_ector_renderer_shape_stroke_fill_set(Eo *obj EINA_UNUSED,
                                              Ector_Renderer_Shape_Data *pd,
                                              const Ector_Renderer *r)
{
   efl_replace(&pd->stroke.fill, r);
}

static const Ector_Renderer *
_ector_renderer_shape_stroke_fill_get(const Eo *obj EINA_UNUSED,
                                              Ector_Renderer_Shape_Data *pd)
{
   return pd->stroke.fill;
}

static void
_ector_renderer_shape_stroke_marker_set(Eo *obj EINA_UNUSED,
                                                Ector_Renderer_Shape_Data *pd,
                                                const Ector_Renderer *r)
{
   efl_replace(&pd->stroke.marker, r);
}

static const Ector_Renderer *
_ector_renderer_shape_stroke_marker_get(const Eo *obj EINA_UNUSED,
                                                Ector_Renderer_Shape_Data *pd)
{
   return pd->stroke.marker;
}

static void
_ector_renderer_shape_efl_object_invalidate(Eo *obj EINA_UNUSED,
                                            Ector_Renderer_Shape_Data *pd)
{
   efl_replace(&pd->fill, NULL);
   efl_replace(&pd->stroke.fill, NULL);
   efl_replace(&pd->stroke.marker, NULL);
}


#include "ector_renderer_shape.eo.c"