Blame docs/reference/html/classCairo_1_1RadialGradient.html

Packit 908522
Packit 908522
<html xmlns="http://www.w3.org/1999/xhtml">
Packit 908522
<head>
Packit 908522
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
Packit 908522
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
Packit 908522
<meta name="generator" content="Doxygen 1.8.9.1"/>
Packit 908522
<title>cairomm: Cairo::RadialGradient Class Reference</title>
Packit 908522
<link href="tabs.css" rel="stylesheet" type="text/css"/>
Packit 908522
<script type="text/javascript" src="jquery.js"></script>
Packit 908522
<script type="text/javascript" src="dynsections.js"></script>
Packit 908522
<link href="doxygen.css" rel="stylesheet" type="text/css" />
Packit 908522
</head>
Packit 908522
<body>
Packit 908522
Packit 908522
Packit 908522
Packit 908522
 
Packit 908522
 
Packit 908522
  
Packit 908522
   
cairomm
Packit 908522
    1.0
Packit 908522
   
Packit 908522
  
Packit 908522
 
Packit 908522
 
Packit 908522
Packit 908522
Packit 908522
Packit 908522
Packit 908522
  
Packit 908522
    
    Packit 908522
          
  • Main Page
  • Packit 908522
          
  • Related Pages
  • Packit 908522
          
  • Namespaces
  • Packit 908522
          
  • Classes
  • Packit 908522
          
  • Examples
  • Packit 908522
        
    Packit 908522
      
    Packit 908522
      
    Packit 908522
        
      Packit 908522
            
    • Class List
    • Packit 908522
            
    • Class Hierarchy
    • Packit 908522
            
    • Class Members
    • Packit 908522
          
      Packit 908522
        
      Packit 908522
      Packit 908522
        
        Packit 908522
      • Cairo
      • RadialGradient
      • Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
          
        Packit 908522
        Public Member Functions |
        Packit 908522
        Static Public Member Functions |
        Packit 908522
        Protected Member Functions |
        Packit 908522
        List of all members  
        Packit 908522
          
        Packit 908522
        Cairo::RadialGradient Class Reference
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Inheritance diagram for Cairo::RadialGradient:
        Packit 908522
        Packit 908522
        Inheritance graph
        Packit 908522
        <map name="Cairo_1_1RadialGradient_inherit__map" id="Cairo_1_1RadialGradient_inherit__map">
        Packit 908522
        <area shape="rect" id="node2" href="classCairo_1_1Gradient.html" title="Cairo::Gradient" alt="" coords="24,80,143,107"/><area shape="rect" id="node3" href="classCairo_1_1Pattern.html" title="Cairo::Pattern is the paint with which cairo draws. " alt="" coords="29,5,138,32"/></map>
        Packit 908522
        <center>[legend]</center>
        Packit 908522
        Packit 908522

        Packit 908522
        Public Member Functions
        Packit 908522
         RadialGradient (cairo_pattern_t*cobject, bool has_reference=false)
        Packit 908522
         Create a C++ wrapper for the C instance.  More...
        Packit 908522
         
        Packit 908522
        void get_radial_circles (double& x0, double& y0, double& r0, double& x1, double& y1, double& r1) const 
        Packit 908522
         Gets the gradient endpoint circles for a radial gradient, each specified as a center coordinate and a radius.  More...
        Packit 908522
         
        Packit 908522
        virtual ~RadialGradient ()
        Packit 908522
         
        Packit 908522
        - Public Member Functions inherited from Cairo::Gradient
        Packit 908522
         Gradient (cairo_pattern_t*cobject, bool has_reference=false)
        Packit 908522
         Create a C++ wrapper for the C instance.  More...
        Packit 908522
         
        Packit 908522
        virtual ~Gradient ()
        Packit 908522
         
        Packit 908522
        void add_color_stop_rgb (double offset, double red, double green, double blue)
        Packit 908522
         Adds an opaque color stop to a gradient pattern.  More...
        Packit 908522
         
        Packit 908522
        void add_color_stop_rgba (double offset, double red, double green, double blue, double alpha)
        Packit 908522
         Adds a translucent color stop to a gradient pattern.  More...
        Packit 908522
         
        Packit 908522
        std::vector< ColorStopget_color_stops () const 
        Packit 908522
         Gets the color stops and offsets for this Gradient.  More...
        Packit 908522
         
        Packit 908522
        - Public Member Functions inherited from Cairo::Pattern
        Packit 908522
         Pattern (cairo_pattern_t*cobject, bool has_reference=false)
        Packit 908522
         Create a C++ wrapper for the C instance.  More...
        Packit 908522
         
        Packit 908522
         Pattern (const Pattern&)=delete
        Packit 908522
         
        Packit 908522
        Patternoperator= (const Pattern&)=delete
        Packit 908522
         
        Packit 908522
        virtual ~Pattern ()
        Packit 908522
         
        Packit 908522
        void set_matrix (const Matrix& matrix)
        Packit 908522
         Sets the pattern's transformation matrix to .  More...
        Packit 908522
         
        Packit 908522
        void get_matrix (Matrix& matrix) const 
        Packit 908522
         Returns the pattern's transformation matrix.  More...
        Packit 908522
         
        Packit 908522
        Matrix get_matrix () const 
        Packit 908522
         Returns the pattern's transformation matrix.  More...
        Packit 908522
         
        Packit 908522
        void set_matrix (const cairo_matrix_t& matrix)
        Packit 908522
         
        Packit 908522
        void get_matrix (cairo_matrix_t& matrix) const 
        Packit 908522
         
        Packit 908522
        PatternType get_type () const 
        Packit 908522
         Returns the type of the pattern.  More...
        Packit 908522
         
        Packit 908522
        void set_extend (Extend extend)
        Packit 908522
         Sets the mode to be used for drawing outside the area of a pattern.  More...
        Packit 908522
         
        Packit 908522
        Extend get_extend () const 
        Packit 908522
         Gets the current extend mode See Cairo::Extend for details on the semantics of each extend strategy.  More...
        Packit 908522
         
        Packit 908522
        cobjectcobj ()
        Packit 908522
         
        Packit 908522
        const cobjectcobj () const 
        Packit 908522
         
        Packit 908522
        void reference () const 
        Packit 908522
         
        Packit 908522
        void unreference () const 
        Packit 908522
         
        Packit 908522
        Packit 908522

        Packit 908522
        Static Public Member Functions
        Packit 908522
        static RefPtr< RadialGradientcreate (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1)
        Packit 908522
         Creates a new radial gradient #cairo_pattern_t between the two circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1).  More...
        Packit 908522
         
        Packit 908522
        Packit 908522

        Packit 908522
        Protected Member Functions
        Packit 908522
         RadialGradient (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1)
        Packit 908522
         
        Packit 908522
        - Protected Member Functions inherited from Cairo::Gradient
        Packit 908522
         Gradient ()
        Packit 908522
         
        Packit 908522
        - Protected Member Functions inherited from Cairo::Pattern
        Packit 908522
         Pattern ()
        Packit 908522
         
        Packit 908522
        Packit 908522

        Packit 908522
        Additional Inherited Members
        Packit 908522
        - Public Types inherited from Cairo::Pattern
        Packit 908522
        typedef cairo_pattern_t cobject
        Packit 908522
         
        Packit 908522
        - Protected Attributes inherited from Cairo::Pattern
        Packit 908522
        cobjectm_cobject
        Packit 908522
         
        Packit 908522
        Packit 908522

        Constructor & Destructor Documentation

        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
          
        Packit 908522
          
        Packit 908522
              
        Packit 908522
                
        Packit 908522
                  Cairo::RadialGradient::RadialGradient 
        Packit 908522
                  (
        Packit 908522
                  double 
        Packit 908522
                  cx0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cy0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  radius0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cx1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cy1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  radius1 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  )
        Packit 908522
                  
        Packit 908522
                
        Packit 908522
              
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        protected  
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
          
        Packit 908522
          
        Packit 908522
              
        Packit 908522
                
        Packit 908522
                  Cairo::RadialGradient::RadialGradient 
        Packit 908522
                  (
        Packit 908522
                  cairo_pattern_t * 
        Packit 908522
                  cobject, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  bool 
        Packit 908522
                  has_reference = false 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  )
        Packit 908522
                  
        Packit 908522
                
        Packit 908522
              
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        explicit  
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522

        Create a C++ wrapper for the C instance.

        Packit 908522

        This C++ instance should then be given to a RefPtr.

        Parameters
        Packit 908522
          
        Packit 908522
            cobjectThe C instance. 
        Packit 908522
            has_referenceWhether we already have a reference. Otherwise, the constructor will take an extra reference. 
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
          
        Packit 908522
          
        Packit 908522
              
        Packit 908522
                
        Packit 908522
                  virtual Cairo::RadialGradient::~RadialGradient 
        Packit 908522
                  (
        Packit 908522
                  )
        Packit 908522
                  
        Packit 908522
                
        Packit 908522
              
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        virtual  
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522

        Member Function Documentation

        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
          
        Packit 908522
          
        Packit 908522
              
        Packit 908522
                
        Packit 908522
                  static RefPtr<RadialGradient> Cairo::RadialGradient::create 
        Packit 908522
                  (
        Packit 908522
                  double 
        Packit 908522
                  cx0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cy0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  radius0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cx1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  cy1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double 
        Packit 908522
                  radius1 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  )
        Packit 908522
                  
        Packit 908522
                
        Packit 908522
              
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        static  
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522

        Creates a new radial gradient #cairo_pattern_t between the two circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1).

        Packit 908522

        Before using the gradient pattern, a number of color stops should be defined using Cairo::Gradient::add_color_stop_rgb() or Cairo::Gradient::add_color_stop_rgba().

        Packit 908522
        Note
        The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed with Cairo::Pattern::set_matrix().
        Packit 908522
        Parameters
        Packit 908522
          
        Packit 908522
            cx0x coordinate for the center of the start circle 
        Packit 908522
            cy0y coordinate for the center of the start circle 
        Packit 908522
            radius0radius of the start circle 
        Packit 908522
            cx1x coordinate for the center of the end circle 
        Packit 908522
            cy1y coordinate for the center of the end circle 
        Packit 908522
            radius1radius of the end circle 
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522
              
        Packit 908522
                
        Packit 908522
                  void Cairo::RadialGradient::get_radial_circles 
        Packit 908522
                  (
        Packit 908522
                  double & 
        Packit 908522
                  x0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double & 
        Packit 908522
                  y0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double & 
        Packit 908522
                  r0, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double & 
        Packit 908522
                  x1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double & 
        Packit 908522
                  y1, 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  
        Packit 908522
                  double & 
        Packit 908522
                  r1 
        Packit 908522
                
        Packit 908522
                
        Packit 908522
                  
        Packit 908522
                  )
        Packit 908522
                   const
        Packit 908522
                
        Packit 908522
              
        Packit 908522
        Packit 908522
        Packit 908522

        Gets the gradient endpoint circles for a radial gradient, each specified as a center coordinate and a radius.

        Packit 908522
        Parameters
        Packit 908522
          
        Packit 908522
            x0return value for the x coordinate of the center of the first (inner) circle 
        Packit 908522
            y0return value for the y coordinate of the center of the first (inner) circle 
        Packit 908522
            r0return value for the radius of the first (inner) circle 
        Packit 908522
            x1return value for the x coordinate of the center of the second (outer) circle 
        Packit 908522
            y1return value for the y coordinate of the center of the second (outer) circle 
        Packit 908522
            r1return value for the radius of the second (outer) circle
        Packit 908522
          
        Packit 908522
          
        Packit 908522
        Packit 908522
        Since
        1.4
        Packit 908522
        Packit 908522
        Packit 908522
        Packit 908522

        The documentation for this class was generated from the following file:
          Packit 908522
        • cairomm/pattern.h
        • Packit 908522
          Packit 908522
          Packit 908522
          Packit 908522

          <address class="footer"><small>
          Packit 908522
          Generated on Mon Sep 21 2015 21:56:36 for cairomm by  
          Packit 908522
          doxygen
          Packit 908522
           1.8.9.1
          Packit 908522
          </small></address>
          Packit 908522
          </body>
          Packit 908522
          </html>