WebKitDOMGTK+ Reference Manual: WebKitDOMDOMSelection

## WebKitDOMDOMSelection WebKitDOMDOMSelection |

## Synopsis

                        WebKitDOMDOMSelection;
    void                webkit_dom_dom_selection_collapse   (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong index,
                                                             GError **error);
    void                webkit_dom_dom_selection_collapse_to_end
                                                            (WebKitDOMDOMSelection *self,
                                                             GError **error);
    void                webkit_dom_dom_selection_collapse_to_start
                                                            (WebKitDOMDOMSelection *self,
                                                             GError **error);
    void                webkit_dom_dom_selection_delete_from_document
                                                            (WebKitDOMDOMSelection *self);
    gboolean            webkit_dom_dom_selection_contains_node
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             gboolean allowPartial);
    void                webkit_dom_dom_selection_select_all_children
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             GError **error);
    void                webkit_dom_dom_selection_extend     (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong offset,
                                                             GError **error);
    WebKitDOMRange *    webkit_dom_dom_selection_get_range_at
                                                            (WebKitDOMDOMSelection *self,
                                                             glong index,
                                                             GError **error);
    void                webkit_dom_dom_selection_remove_all_ranges
                                                            (WebKitDOMDOMSelection *self);
    void                webkit_dom_dom_selection_add_range  (WebKitDOMDOMSelection *self,
                                                             WebKitDOMRange *range);
    void                webkit_dom_dom_selection_modify     (WebKitDOMDOMSelection *self,
                                                             const gchar *alter,
                                                             const gchar *direction,
                                                             const gchar *granularity);
    void                webkit_dom_dom_selection_set_base_and_extent
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *baseNode,
                                                             glong baseOffset,
                                                             WebKitDOMNode *extentNode,
                                                             glong extentOffset,
                                                             GError **error);
    void                webkit_dom_dom_selection_set_position
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong offset,
                                                             GError **error);
    void                webkit_dom_dom_selection_empty      (WebKitDOMDOMSelection *self);
    WebKitDOMNode *     webkit_dom_dom_selection_get_anchor_node
                                                            (WebKitDOMDOMSelection *self);
    glong               webkit_dom_dom_selection_get_anchor_offset
                                                            (WebKitDOMDOMSelection *self);
    WebKitDOMNode *     webkit_dom_dom_selection_get_focus_node
                                                            (WebKitDOMDOMSelection *self);
    glong               webkit_dom_dom_selection_get_focus_offset
                                                            (WebKitDOMDOMSelection *self);
    gboolean            webkit_dom_dom_selection_get_is_collapsed
                                                            (WebKitDOMDOMSelection *self);
    glong               webkit_dom_dom_selection_get_range_count
                                                            (WebKitDOMDOMSelection *self);
    WebKitDOMNode *     webkit_dom_dom_selection_get_base_node
                                                            (WebKitDOMDOMSelection *self);
    glong               webkit_dom_dom_selection_get_base_offset
                                                            (WebKitDOMDOMSelection *self);
    WebKitDOMNode *     webkit_dom_dom_selection_get_extent_node
                                                            (WebKitDOMDOMSelection *self);
    glong               webkit_dom_dom_selection_get_extent_offset
                                                            (WebKitDOMDOMSelection *self);

## Object Hierarchy

      GObject
       +----WebKitDOMObject
             +----WebKitDOMDOMSelection

## Properties

      "anchor-node"              WebKitDOMNode*        : Read
      "anchor-offset"            glong                 : Read
      "base-node"                WebKitDOMNode*        : Read
      "base-offset"              glong                 : Read
      "extent-node"              WebKitDOMNode*        : Read
      "extent-offset"            glong                 : Read
      "focus-node"               WebKitDOMNode*        : Read
      "focus-offset"             glong                 : Read
      "is-collapsed"             gboolean              : Read
      "range-count"              glong                 : Read
      "type"                     gchar*                : Read

## Description

## Details

### WebKitDOMDOMSelection

    typedef struct _WebKitDOMDOMSelection WebKitDOMDOMSelection;

### webkit_dom_dom_selection_collapse ()

    void                webkit_dom_dom_selection_collapse   (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong index,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`node` : | A WebKitDOMNode
`index` : | A glong
`error` : | GError

### webkit_dom_dom_selection_collapse_to_end ()

    void                webkit_dom_dom_selection_collapse_to_end
                                                            (WebKitDOMDOMSelection *self,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`error` : | GError

### webkit_dom_dom_selection_collapse_to_start ()

    void                webkit_dom_dom_selection_collapse_to_start
                                                            (WebKitDOMDOMSelection *self,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`error` : | GError

### webkit_dom_dom_selection_delete_from_document ()

    void                webkit_dom_dom_selection_delete_from_document
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection

### webkit_dom_dom_selection_contains_node ()

    gboolean            webkit_dom_dom_selection_contains_node
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             gboolean allowPartial);

`self` : | A WebKitDOMDOMSelection
`node` : | A WebKitDOMNode
`allowPartial` : | A gboolean
Returns : | A gboolean

### webkit_dom_dom_selection_select_all_children ()

    void                webkit_dom_dom_selection_select_all_children
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`node` : | A WebKitDOMNode
`error` : | GError

### webkit_dom_dom_selection_extend ()

    void                webkit_dom_dom_selection_extend     (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong offset,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`node` : | A WebKitDOMNode
`offset` : | A glong
`error` : | GError

### webkit_dom_dom_selection_get_range_at ()

    WebKitDOMRange *    webkit_dom_dom_selection_get_range_at
                                                            (WebKitDOMDOMSelection *self,
                                                             glong index,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`index` : | A glong
`error` : | GError
Returns : | A WebKitDOMRange. [transfer none]

### webkit_dom_dom_selection_remove_all_ranges ()

    void                webkit_dom_dom_selection_remove_all_ranges
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection

### webkit_dom_dom_selection_add_range ()

    void                webkit_dom_dom_selection_add_range  (WebKitDOMDOMSelection *self,
                                                             WebKitDOMRange *range);

`self` : | A WebKitDOMDOMSelection
`range` : | A WebKitDOMRange

### webkit_dom_dom_selection_modify ()

    void                webkit_dom_dom_selection_modify     (WebKitDOMDOMSelection *self,
                                                             const gchar *alter,
                                                             const gchar *direction,
                                                             const gchar *granularity);

`self` : | A WebKitDOMDOMSelection
`alter` : | A gchar
`direction` : | A gchar
`granularity` : | A gchar

### webkit_dom_dom_selection_set_base_and_extent ()

    void                webkit_dom_dom_selection_set_base_and_extent
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *baseNode,
                                                             glong baseOffset,
                                                             WebKitDOMNode *extentNode,
                                                             glong extentOffset,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`baseNode` : | A WebKitDOMNode
`baseOffset` : | A glong
`extentNode` : | A WebKitDOMNode
`extentOffset` : | A glong
`error` : | GError

### webkit_dom_dom_selection_set_position ()

    void                webkit_dom_dom_selection_set_position
                                                            (WebKitDOMDOMSelection *self,
                                                             WebKitDOMNode *node,
                                                             glong offset,
                                                             GError **error);

`self` : | A WebKitDOMDOMSelection
`node` : | A WebKitDOMNode
`offset` : | A glong
`error` : | GError

### webkit_dom_dom_selection_empty ()

    void                webkit_dom_dom_selection_empty      (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection

### webkit_dom_dom_selection_get_anchor_node ()

    WebKitDOMNode *     webkit_dom_dom_selection_get_anchor_node
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_dom_selection_get_anchor_offset ()

    glong               webkit_dom_dom_selection_get_anchor_offset
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A glong

### webkit_dom_dom_selection_get_focus_node ()

    WebKitDOMNode *     webkit_dom_dom_selection_get_focus_node
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_dom_selection_get_focus_offset ()

    glong               webkit_dom_dom_selection_get_focus_offset
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A glong

### webkit_dom_dom_selection_get_is_collapsed ()

    gboolean            webkit_dom_dom_selection_get_is_collapsed
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A gboolean

### webkit_dom_dom_selection_get_range_count ()

    glong               webkit_dom_dom_selection_get_range_count
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A glong

### webkit_dom_dom_selection_get_base_node ()

    WebKitDOMNode *     webkit_dom_dom_selection_get_base_node
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_dom_selection_get_base_offset ()

    glong               webkit_dom_dom_selection_get_base_offset
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A glong

### webkit_dom_dom_selection_get_extent_node ()

    WebKitDOMNode *     webkit_dom_dom_selection_get_extent_node
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_dom_selection_get_extent_offset ()

    glong               webkit_dom_dom_selection_get_extent_offset
                                                            (WebKitDOMDOMSelection *self);

`self` : | A WebKitDOMDOMSelection
Returns : | A glong

## Property Details

### The `"anchor-node"` property

      "anchor-node"              WebKitDOMNode*        : Read

read-only WebKitDOMNode* DOMSelection:anchor-node.

### The `"anchor-offset"` property

      "anchor-offset"            glong                 : Read

read-only glong DOMSelection:anchor-offset.

Default value: 0

### The `"base-node"` property

      "base-node"                WebKitDOMNode*        : Read

read-only WebKitDOMNode* DOMSelection:base-node.

### The `"base-offset"` property

      "base-offset"              glong                 : Read

read-only glong DOMSelection:base-offset.

Default value: 0

### The `"extent-node"` property

      "extent-node"              WebKitDOMNode*        : Read

read-only WebKitDOMNode* DOMSelection:extent-node.

### The `"extent-offset"` property

      "extent-offset"            glong                 : Read

read-only glong DOMSelection:extent-offset.

Default value: 0

### The `"focus-node"` property

      "focus-node"               WebKitDOMNode*        : Read

read-only WebKitDOMNode* DOMSelection:focus-node.

### The `"focus-offset"` property

      "focus-offset"             glong                 : Read

read-only glong DOMSelection:focus-offset.

Default value: 0

### The `"is-collapsed"` property

      "is-collapsed"             gboolean              : Read

read-only gboolean DOMSelection:is-collapsed.

Default value: FALSE

### The `"range-count"` property

      "range-count"              glong                 : Read

read-only glong DOMSelection:range-count.

Default value: 0

### The `"type"` property

      "type"                     gchar*                : Read

read-only gchar* DOMSelection:type.

Default value: ""