Home | History | Annotate | Download | only in core

Lines Matching refs:Element

44     class Element {
47 //!< This element makes the clip empty (regardless of previous elements).
49 //!< This element combines a rect with the current clip using a set operation
51 //!< This element combines a round-rect with the current clip using a set operation
53 //!< This element combines a path with the current clip using a set operation
60 Element() {
65 Element(const Element&);
67 Element(const SkRect& rect, SkClipOp op, bool doAA) {
71 Element(const SkRRect& rrect, SkClipOp op, bool doAA) {
75 Element(const SkPath& path, SkClipOp op, bool doAA) {
79 ~Element() {
87 bool operator== (const Element& element) const;
88 bool operator!= (const Element& element) const { return !(*this == element); }
90 //!< Call to get the type of the clip element.
93 //!< Call to get the save count associated with this clip element.
108 //!< Call if getType() is not kEmpty to get the set operation used to combine this element.
111 //!< Call to get the element as a path, regardless of its type.
114 //!< Call if getType() is not kPath to get the element as a round rect.
121 //!< Inverts the fill of the clip shape. Note that a kEmpty element remains kEmpty.
124 //!< Sets the set operation represented by the element.
128 ID corresponds to the set of clip elements up to and including this element within the
129 stack not to the element itself. That is the same clip path in different stacks will
135 * Gets the bounds of the clip element, either the rect or path bounds. (Whether the shape
200 * Dumps the element to SkDebugf. This is intended for Skia development debugging
209 * the element is destroyed because their key is based on this element's gen ID.
222 int fSaveCount; // save count of stack when this element was added.
240 // When element is applied to the previous elements in the stack is the result known to be
248 Element(int saveCount) {
253 Element(int saveCount, const SkRRect& rrect, SkClipOp op, bool doAA) {
257 Element(int saveCount, const SkRect& rect, SkClipOp op, bool doAA) {
261 Element(int saveCount, const SkPath& path, SkClipOp op, bool doAA) {
298 // All Element methods below are only used within SkClipStack.cpp
305 /** Determines possible finite bounds for the Element given the previous element of the
307 void updateBoundAndGenID(const Element* prior);
465 * Return the clip element for this iterator. If next()/prev() returns NULL, then the
468 const Element* next();
469 const Element* prev();
472 * Moves the iterator to the topmost element with the specified RegionOp and returns that
473 * element. If no clip element with that op is found, the first element is returned.
475 const Element* skipToTopmost(SkClipOp op);
556 void pushElement(const Element& element);