/src/wrappers/cairo/library/cairo_radial_pattern.e
Specman e | 59 lines | 26 code | 10 blank | 23 comment | 2 complexity | 525a92c0ad00b3c80810cc5254e8e0b0 MD5 | raw file
1note 2 description: "." 3 copyright: "[ 4 Copyright (C) 2007-2017: Paolo Redaelli, Cairo team 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public License 8 as published by the Free Software Foundation; either version 2.1 of 9 the License, or (at your option) any later version. 10 11 This library is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Lesser General Public License for more details. 15 16 You should have received a copy of the GNU Lesser General Public 17 License along with this library; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 02110-1301 USA 20 ]" 21 22class CAIRO_RADIAL_PATTERN 23 24inherit CAIRO_GRADIENT_PATTERN 25 26create {ANY} make, from_external_pointer 27 28feature {} -- Creation 29 make (cx0,cy0,radius0,cx1,cy1,radius1: REAL) 30 -- Creates a new radial gradient cairo_pattern_t between 31 -- the two circles defined by (x0, y0, c0) and (x1, y1, 32 -- c0). Before using the gradient pattern, a number of 33 -- color stops should be defined using `add_color_stop_rgb' 34 -- or `add_color_stop_rgba'. 35 36 -- Note: The coordinates here are in pattern space. For a new 37 -- pattern, pattern space is identical to user space, but the 38 -- relationship between the spaces can be changed with 39 -- `set_matrix'. 40 41 -- cx0 : x coordinate for the center of the start circle 42 -- cy0 : y coordinate for the center of the start circle 43 -- radius0 : radius of the start cirle 44 -- cx1 : x coordinate for the center of the end circle 45 -- cy1 : y coordinate for the center of the end circle 46 -- radius1 : radius of the end cirle 47 do 48 from_external_pointer(cairo_pattern_create_radial(cx0,cy0,radius0,cx1,cy1,radius1)) 49 -- cairo_pattern_create_radial returns the newly created 50 -- cairo_pattern_t if succesful, or an error pattern in case 51 -- of no memory. The caller owns the returned object and 52 -- should call cairo_pattern_destroy() when finished with 53 -- it. This function will always return a valid pointer, but 54 -- if an error occurred the pattern status will be set to an 55 -- error. To inspect the status of a pattern use 56 -- cairo_pattern_status(). 57 end 58 59end -- class CAIRO_RADIAL_PATTERN