cairo Reference Manual

Synopsis

public class Context {
    public                              Context                   ( Surface             target ) ;


    public    Status                    status                    (  ) ;
    public    void                      save                      (  ) ;
    public    void                      restore                   (  ) ;
    public    weak Surface              get_target                (  ) ;
    public    void                      push_group                (  ) ;
    public    void                      push_group_with_content   ( Content             content ) ;
    public    Pattern                   pop_group                 (  ) ;
    public    void                      pop_group_to_source       (  ) ;
    public    weak Surface              get_group_target          (  ) ;
    public    void                      set_source_rgb            ( double              red,
                                                                    double              green,
                                                                    double              blue ) ;
    public    void                      set_source_rgba           ( double              red,
                                                                    double              green,
                                                                    double              blue,
                                                                    double              alpha ) ;
    public    void                      set_source                ( Pattern             source ) ;
    public    void                      set_source_surface        ( Surface             surface,
                                                                    double              x,
                                                                    double              y ) ;
    public    weak Pattern              get_source                (  ) ;
    public    void                      set_matrix                ( Matrix              matrix ) ;
    public    void                      get_matrix                ( Matrix              matrix ) ;
    public    void                      set_antialias             ( Antialias           antialias ) ;
    public    Antialias                 get_antialias             (  ) ;
    public    void                      set_dash                  ( double?[]           dashes,
                                                                    double              offset ) ;
    public    void                      set_fill_rule             ( FillRule            fill_rule ) ;
    public    FillRule                  get_fill_rule             (  ) ;
    public    void                      set_line_cap              ( LineCap             line_cap ) ;
    public    LineCap                   get_line_cap              (  ) ;
    public    void                      set_line_join             ( LineJoin            line_join ) ;
    public    LineJoin                  get_line_join             (  ) ;
    public    void                      set_line_width            ( double              width ) ;
    public    double                    get_line_width            (  ) ;
    public    void                      set_miter_limit           ( double              limit ) ;
    public    double                    get_miter_limit           (  ) ;
    public    void                      set_operator              ( Operator            op ) ;
    public    Operator                  get_operator              (  ) ;
    public    void                      set_tolerance             ( double              tolerance ) ;
    public    double                    get_tolerance             (  ) ;
    public    void                      clip                      (  ) ;
    public    void                      clip_preserve             (  ) ;
    public    void                      reset_clip                (  ) ;
    public    void                      fill                      (  ) ;
    public    void                      fill_preserve             (  ) ;
    public    void                      fill_extents              ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2 ) ;
    public    bool                      in_fill                   ( double              x,
                                                                    double              y ) ;
    public    void                      mask                      ( Pattern             pattern ) ;
    public    void                      mask_surface              ( Surface             surface,
                                                                    double              surface_x,
                                                                    double              surface_y ) ;
    public    void                      paint                     (  ) ;
    public    void                      paint_with_alpha          ( double              alpha ) ;
    public    void                      stroke                    (  ) ;
    public    void                      stroke_preserve           (  ) ;
    public    void                      stroke_extents            ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2 ) ;
    public    bool                      in_stroke                 ( double              x,
                                                                    double              y ) ;
    public    void                      copy_page                 (  ) ;
    public    void                      show_page                 (  ) ;
    public    Path                      copy_path                 (  ) ;
    public    Path                      copy_path_flat            (  ) ;
    public    void                      append_path               ( Path                path ) ;
    public    void                      get_current_point         ( double              x,
                                                                    double              y ) ;
    public    void                      new_path                  (  ) ;
    public    void                      new_sub_path              (  ) ;
    public    void                      close_path                (  ) ;
    public    void                      arc                       ( double              xc,
                                                                    double              yc,
                                                                    double              radius,
                                                                    double              angle1,
                                                                    double              angle2 ) ;
    public    void                      arc_negative              ( double              xc,
                                                                    double              yc,
                                                                    double              radius,
                                                                    double              angle1,
                                                                    double              angle2 ) ;
    public    void                      curve_to                  ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2,
                                                                    double              x3,
                                                                    double              y3 ) ;
    public    void                      line_to                   ( double              x,
                                                                    double              y ) ;
    public    void                      move_to                   ( double              x,
                                                                    double              y ) ;
    public    void                      rectangle                 ( double              x,
                                                                    double              y,
                                                                    double              width,
                                                                    double              height ) ;
    public    void                      glyph_path                ( Glyph[]             glyphs ) ;
    public    void                      text_path                 ( string              utf8 ) ;
    public    void                      rel_curve_to              ( double              dx1,
                                                                    double              dy1,
                                                                    double              dx2,
                                                                    double              dy2,
                                                                    double              dx3,
                                                                    double              dy3 ) ;
    public    void                      rel_line_to               ( double              dx,
                                                                    double              dy ) ;
    public    void                      rel_move_to               ( double              dx,
                                                                    double              dy ) ;
    public    void                      translate                 ( double              tx,
                                                                    double              ty ) ;
    public    void                      scale                     ( double              sx,
                                                                    double              sy ) ;
    public    void                      rotate                    ( double              angle ) ;
    public    void                      transform                 ( Matrix              matrix ) ;
    public    void                      identity_matrix           (  ) ;
    public    void                      user_to_device            ( double              x,
                                                                    double              y ) ;
    public    void                      user_to_device_distance   ( double              dx,
                                                                    double              dy ) ;
    public    void                      device_to_user            ( double              x,
                                                                    double              y ) ;
    public    void                      device_to_user_distance   ( double              dx,
                                                                    double              dy ) ;
    public    void                      select_font_face          ( string              family,
                                                                    FontSlant           slant,
                                                                    FontWeight          weight ) ;
    public    void                      set_font_size             ( double              size ) ;
    public    void                      set_font_matrix           ( Matrix              matrix ) ;
    public    void                      get_font_matrix           ( Matrix              matrix ) ;
    public    void                      set_font_options          ( FontOptions         options ) ;
    public    void                      get_font_options          ( FontOptions         options ) ;
    public    void                      show_text                 ( string              utf8 ) ;
    public    void                      show_glyphs               ( Glyph[]             glyphs ) ;
    public    weak FontFace             get_font_face             (  ) ;
    public    void                      font_extents              ( FontExtents         extents ) ;
    public    void                      set_font_face             ( FontFace            font_face ) ;
    public    void                      set_scaled_font           ( ScaledFont          font ) ;
    public    void                      text_extents              ( string              utf8,
                                                                    TextExtents         extents ) ;
    public    void                      glyph_extents             ( Glyph[]             glyphs,
                                                                    TextExtents         extents ) ;
}

Context Description

Details

Constructor Details

Context ()
    public                              Context                   ( Surface             target ) ;		

Field Details

Signal Details

Property Details

Method Details

status ()
    public    Status                    status                    (  ) ;		

save ()
    public    void                      save                      (  ) ;		

restore ()
    public    void                      restore                   (  ) ;		

get_target ()
    public    weak Surface              get_target                (  ) ;		

push_group ()
    public    void                      push_group                (  ) ;		

push_group_with_content ()
    public    void                      push_group_with_content   ( Content             content ) ;		

pop_group ()
    public    Pattern                   pop_group                 (  ) ;		

pop_group_to_source ()
    public    void                      pop_group_to_source       (  ) ;		

get_group_target ()
    public    weak Surface              get_group_target          (  ) ;		

set_source_rgb ()
    public    void                      set_source_rgb            ( double              red,
                                                                    double              green,
                                                                    double              blue ) ;		

set_source_rgba ()
    public    void                      set_source_rgba           ( double              red,
                                                                    double              green,
                                                                    double              blue,
                                                                    double              alpha ) ;		

set_source ()
    public    void                      set_source                ( Pattern             source ) ;		

set_source_surface ()
    public    void                      set_source_surface        ( Surface             surface,
                                                                    double              x,
                                                                    double              y ) ;		

get_source ()
    public    weak Pattern              get_source                (  ) ;		

set_matrix ()
    public    void                      set_matrix                ( Matrix              matrix ) ;		

get_matrix ()
    public    void                      get_matrix                ( Matrix              matrix ) ;		

set_antialias ()
    public    void                      set_antialias             ( Antialias           antialias ) ;		

get_antialias ()
    public    Antialias                 get_antialias             (  ) ;		

set_dash ()
    public    void                      set_dash                  ( double?[]           dashes,
                                                                    double              offset ) ;		

set_fill_rule ()
    public    void                      set_fill_rule             ( FillRule            fill_rule ) ;		

get_fill_rule ()
    public    FillRule                  get_fill_rule             (  ) ;		

set_line_cap ()
    public    void                      set_line_cap              ( LineCap             line_cap ) ;		

get_line_cap ()
    public    LineCap                   get_line_cap              (  ) ;		

set_line_join ()
    public    void                      set_line_join             ( LineJoin            line_join ) ;		

get_line_join ()
    public    LineJoin                  get_line_join             (  ) ;		

set_line_width ()
    public    void                      set_line_width            ( double              width ) ;		

get_line_width ()
    public    double                    get_line_width            (  ) ;		

set_miter_limit ()
    public    void                      set_miter_limit           ( double              limit ) ;		

get_miter_limit ()
    public    double                    get_miter_limit           (  ) ;		

set_operator ()
    public    void                      set_operator              ( Operator            op ) ;		

get_operator ()
    public    Operator                  get_operator              (  ) ;		

set_tolerance ()
    public    void                      set_tolerance             ( double              tolerance ) ;		

get_tolerance ()
    public    double                    get_tolerance             (  ) ;		

clip ()
    public    void                      clip                      (  ) ;		

clip_preserve ()
    public    void                      clip_preserve             (  ) ;		

reset_clip ()
    public    void                      reset_clip                (  ) ;		

fill ()
    public    void                      fill                      (  ) ;		

fill_preserve ()
    public    void                      fill_preserve             (  ) ;		

fill_extents ()
    public    void                      fill_extents              ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2 ) ;		

in_fill ()
    public    bool                      in_fill                   ( double              x,
                                                                    double              y ) ;		

mask ()
    public    void                      mask                      ( Pattern             pattern ) ;		

mask_surface ()
    public    void                      mask_surface              ( Surface             surface,
                                                                    double              surface_x,
                                                                    double              surface_y ) ;		

paint ()
    public    void                      paint                     (  ) ;		

paint_with_alpha ()
    public    void                      paint_with_alpha          ( double              alpha ) ;		

stroke ()
    public    void                      stroke                    (  ) ;		

stroke_preserve ()
    public    void                      stroke_preserve           (  ) ;		

stroke_extents ()
    public    void                      stroke_extents            ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2 ) ;		

in_stroke ()
    public    bool                      in_stroke                 ( double              x,
                                                                    double              y ) ;		

copy_page ()
    public    void                      copy_page                 (  ) ;		

show_page ()
    public    void                      show_page                 (  ) ;		

copy_path ()
    public    Path                      copy_path                 (  ) ;		

copy_path_flat ()
    public    Path                      copy_path_flat            (  ) ;		

append_path ()
    public    void                      append_path               ( Path                path ) ;		

get_current_point ()
    public    void                      get_current_point         ( double              x,
                                                                    double              y ) ;		

new_path ()
    public    void                      new_path                  (  ) ;		

new_sub_path ()
    public    void                      new_sub_path              (  ) ;		

close_path ()
    public    void                      close_path                (  ) ;		

arc ()
    public    void                      arc                       ( double              xc,
                                                                    double              yc,
                                                                    double              radius,
                                                                    double              angle1,
                                                                    double              angle2 ) ;		

arc_negative ()
    public    void                      arc_negative              ( double              xc,
                                                                    double              yc,
                                                                    double              radius,
                                                                    double              angle1,
                                                                    double              angle2 ) ;		

curve_to ()
    public    void                      curve_to                  ( double              x1,
                                                                    double              y1,
                                                                    double              x2,
                                                                    double              y2,
                                                                    double              x3,
                                                                    double              y3 ) ;		

line_to ()
    public    void                      line_to                   ( double              x,
                                                                    double              y ) ;		

move_to ()
    public    void                      move_to                   ( double              x,
                                                                    double              y ) ;		

rectangle ()
    public    void                      rectangle                 ( double              x,
                                                                    double              y,
                                                                    double              width,
                                                                    double              height ) ;		

glyph_path ()
    public    void                      glyph_path                ( Glyph[]             glyphs ) ;		

text_path ()
    public    void                      text_path                 ( string              utf8 ) ;		

rel_curve_to ()
    public    void                      rel_curve_to              ( double              dx1,
                                                                    double              dy1,
                                                                    double              dx2,
                                                                    double              dy2,
                                                                    double              dx3,
                                                                    double              dy3 ) ;		

rel_line_to ()
    public    void                      rel_line_to               ( double              dx,
                                                                    double              dy ) ;		

rel_move_to ()
    public    void                      rel_move_to               ( double              dx,
                                                                    double              dy ) ;		

translate ()
    public    void                      translate                 ( double              tx,
                                                                    double              ty ) ;		

scale ()
    public    void                      scale                     ( double              sx,
                                                                    double              sy ) ;		

rotate ()
    public    void                      rotate                    ( double              angle ) ;		

transform ()
    public    void                      transform                 ( Matrix              matrix ) ;		

identity_matrix ()
    public    void                      identity_matrix           (  ) ;		

user_to_device ()
    public    void                      user_to_device            ( double              x,
                                                                    double              y ) ;		

user_to_device_distance ()
    public    void                      user_to_device_distance   ( double              dx,
                                                                    double              dy ) ;		

device_to_user ()
    public    void                      device_to_user            ( double              x,
                                                                    double              y ) ;		

device_to_user_distance ()
    public    void                      device_to_user_distance   ( double              dx,
                                                                    double              dy ) ;		

select_font_face ()
    public    void                      select_font_face          ( string              family,
                                                                    FontSlant           slant,
                                                                    FontWeight          weight ) ;		

set_font_size ()
    public    void                      set_font_size             ( double              size ) ;		

set_font_matrix ()
    public    void                      set_font_matrix           ( Matrix              matrix ) ;		

get_font_matrix ()
    public    void                      get_font_matrix           ( Matrix              matrix ) ;		

set_font_options ()
    public    void                      set_font_options          ( FontOptions         options ) ;		

get_font_options ()
    public    void                      get_font_options          ( FontOptions         options ) ;		

show_text ()
    public    void                      show_text                 ( string              utf8 ) ;		

show_glyphs ()
    public    void                      show_glyphs               ( Glyph[]             glyphs ) ;		

get_font_face ()
    public    weak FontFace             get_font_face             (  ) ;		

font_extents ()
    public    void                      font_extents              ( FontExtents         extents ) ;		

set_font_face ()
    public    void                      set_font_face             ( FontFace            font_face ) ;		

set_scaled_font ()
    public    void                      set_scaled_font           ( ScaledFont          font ) ;		

text_extents ()
    public    void                      text_extents              ( string              utf8,
                                                                    TextExtents         extents ) ;		

glyph_extents ()
    public    void                      glyph_extents             ( Glyph[]             glyphs,
                                                                    TextExtents         extents ) ;		


Created by Valadoc