atk Reference Manual

Synopsis

public interface Text {
    public    signal void               text_attributes_changed   (  )  ;
    public    signal void               text_caret_moved          ( int                 location )  ;
    public    signal void               text_changed              ( int                 position,
                                                                    int                 length )  ;
    public    signal void               text_selection_changed    (  )  ;


    public    static TextAttribute      attribute_for_name        ( string              name ) ;
    public    static weak string        attribute_get_name        ( TextAttribute       attr ) ;
    public    static weak string        attribute_get_value       ( TextAttribute       attr,
                                                                    int                 index_ ) ;
    public    static TextAttribute      attribute_register        ( string              name ) ;
    public    static void               free_ranges               ( weak TextRange      ranges ) ;
    public    abstract bool             add_selection             ( int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak TextRange   get_bounded_ranges        ( TextRectangle       rect,
                                                                    CoordType           coord_type,
                                                                    TextClipType        x_clip_type,
                                                                    TextClipType        y_clip_type ) ;
    public    abstract int              get_caret_offset          (  ) ;
    public    abstract unichar          get_character_at_offset   ( int                 offset ) ;
    public    abstract int              get_character_count       (  ) ;
    public    abstract void             get_character_extents     ( int                 offset,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    CoordType           coords ) ;
    public    abstract weak AttributeSet  get_default_attributes    (  ) ;
    public    abstract int              get_n_selections          (  ) ;
    public    abstract int              get_offset_at_point       ( int                 x,
                                                                    int                 y,
                                                                    CoordType           coords ) ;
    public    abstract void             get_range_extents         ( int                 start_offset,
                                                                    int                 end_offset,
                                                                    CoordType           coord_type,
                                                                    TextRectangle       rect ) ;
    public    abstract weak AttributeSet  get_run_attributes        ( int                 offset,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak string      get_selection             ( int                 selection_num,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak string      get_text                  ( int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak string      get_text_after_offset     ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak string      get_text_at_offset        ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract weak string      get_text_before_offset    ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
    public    abstract bool             remove_selection          ( int                 selection_num ) ;
    public    abstract bool             set_caret_offset          ( int                 offset ) ;
    public    abstract bool             set_selection             ( int                 selection_num,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;
}

Description

Details

Signal Details

text_attributes_changed
    public    signal void               text_attributes_changed   (  )  ;		

text_caret_moved
    public    signal void               text_caret_moved          ( int                 location )  ;		

text_changed
    public    signal void               text_changed              ( int                 position,
                                                                    int                 length )  ;		

text_selection_changed
    public    signal void               text_selection_changed    (  )  ;		

Property Details

Method Details

attribute_for_name ()
    public    static TextAttribute      attribute_for_name        ( string              name ) ;		

attribute_get_name ()
    public    static weak string        attribute_get_name        ( TextAttribute       attr ) ;		

attribute_get_value ()
    public    static weak string        attribute_get_value       ( TextAttribute       attr,
                                                                    int                 index_ ) ;		

attribute_register ()
    public    static TextAttribute      attribute_register        ( string              name ) ;		

free_ranges ()
    public    static void               free_ranges               ( weak TextRange      ranges ) ;		

add_selection ()
    public    abstract bool             add_selection             ( int                 start_offset,
                                                                    int                 end_offset ) ;		

get_bounded_ranges ()
    public    abstract weak TextRange   get_bounded_ranges        ( TextRectangle       rect,
                                                                    CoordType           coord_type,
                                                                    TextClipType        x_clip_type,
                                                                    TextClipType        y_clip_type ) ;		

get_caret_offset ()
    public    abstract int              get_caret_offset          (  ) ;		

get_character_at_offset ()
    public    abstract unichar          get_character_at_offset   ( int                 offset ) ;		

get_character_count ()
    public    abstract int              get_character_count       (  ) ;		

get_character_extents ()
    public    abstract void             get_character_extents     ( int                 offset,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    CoordType           coords ) ;		

get_default_attributes ()
    public    abstract weak AttributeSet  get_default_attributes    (  ) ;		

get_n_selections ()
    public    abstract int              get_n_selections          (  ) ;		

get_offset_at_point ()
    public    abstract int              get_offset_at_point       ( int                 x,
                                                                    int                 y,
                                                                    CoordType           coords ) ;		

get_range_extents ()
    public    abstract void             get_range_extents         ( int                 start_offset,
                                                                    int                 end_offset,
                                                                    CoordType           coord_type,
                                                                    TextRectangle       rect ) ;		

get_run_attributes ()
    public    abstract weak AttributeSet  get_run_attributes        ( int                 offset,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		

get_selection ()
    public    abstract weak string      get_selection             ( int                 selection_num,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		

get_text ()
    public    abstract weak string      get_text                  ( int                 start_offset,
                                                                    int                 end_offset ) ;		

get_text_after_offset ()
    public    abstract weak string      get_text_after_offset     ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		

get_text_at_offset ()
    public    abstract weak string      get_text_at_offset        ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		

get_text_before_offset ()
    public    abstract weak string      get_text_before_offset    ( int                 offset,
                                                                    TextBoundary        boundary_type,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		

remove_selection ()
    public    abstract bool             remove_selection          ( int                 selection_num ) ;		

set_caret_offset ()
    public    abstract bool             set_caret_offset          ( int                 offset ) ;		

set_selection ()
    public    abstract bool             set_selection             ( int                 selection_num,
                                                                    int                 start_offset,
                                                                    int                 end_offset ) ;		


Created by Valadoc