Tk Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

canvas::tag - Easier management of the tags on canvas items or item groups

Table Of Contents

SYNOPSIS

package require Tcl 8.5
package require Tk 8.5
package require canvas::tag ?0.1?

::canvas::tag append canvas tagOrId tag...
::canvas::tag prepend canvas tagOrId tag...
::canvas::tag append canvas tagOrId index tag...
::canvas::tag remove canvas tagOrId tag...
::canvas::tag match canvas tagOrId pattern

DESCRIPTION

This package provides utility commands for easier management of the tag lists associated with canvas items or item groups.

The problem with the existing canvas API is that a tag list can only be set as a whole, making adding and removing of tags from such lists relatively complex operations reading the current tag list, modifying it, and then writing the changed list back.

The commands provided by this package hide all this complexity from the user.

API

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category canvas of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

KEYWORDS

append tag, canvas, insert tag, remove tag, tags