Offsets the menu relative to its original position based on the position of the content.

@param offsetPixels The number of pixels the content if offset.
169983
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
	private void offsetMenu(int offsetPixels) {
		 if (!mOffsetMenu || mSwipeBackViewSize == 0) {
			 return;
		 }

		 final int width = getWidth();
		 final int height = getHeight();

		 final int menuSize = mSwipeBackViewSize;
		 final int sign = (int) (mOffsetPixels / Math.abs(mOffsetPixels));
		 final float openRatio = Math.abs(mOffsetPixels) / menuSize;
		 final int offset = (int) (-0.25f * ((1.0f - openRatio) * menuSize) * sign);

		 switch (getPosition()) {
		 case LEFT: {
			 if (USE_TRANSLATIONS) {
				 if (offsetPixels > 0) {
					mSwipeBackContainer.setTranslationX(offset);
				 } else {
					mSwipeBackContainer.setTranslationX(-menuSize);
				 }

			 } else {
				mSwipeBackContainer.offsetLeftAndRight(offset
						- mSwipeBackContainer.getLeft());
				mSwipeBackContainer.setVisibility(offsetPixels == 0 ? INVISIBLE
						: VISIBLE);
			 }
			 break;
		 }

		 case RIGHT: {
			 if (USE_TRANSLATIONS) {
				 if (offsetPixels != 0) {
					mSwipeBackContainer.setTranslationX(offset);
				 } else {
					mSwipeBackContainer.setTranslationX(menuSize);
				 }

			 } else {
				final int oldOffset = mSwipeBackContainer.getRight() - width;
				 final int offsetBy = offset - oldOffset;
				mSwipeBackContainer.offsetLeftAndRight(offsetBy);
				mSwipeBackContainer.setVisibility(offsetPixels == 0 ? INVISIBLE
						: VISIBLE);
			 }
			 break;
		 }

		 case TOP: {
			 if (USE_TRANSLATIONS) {
				 if (offsetPixels > 0) {
					mSwipeBackContainer.setTranslationY(offset);
				 } else {
					mSwipeBackContainer.setTranslationY(-menuSize);
				 }

			 } else {
				mSwipeBackContainer.offsetTopAndBottom(offset
						- mSwipeBackContainer.getTop());
				mSwipeBackContainer.setVisibility(offsetPixels == 0 ? INVISIBLE
						: VISIBLE);
			 }
			 break;
		 }

		 case BOTTOM: {
			 if (USE_TRANSLATIONS) {
				 if (offsetPixels != 0) {
					mSwipeBackContainer.setTranslationY(offset);
				 } else {
					mSwipeBackContainer.setTranslationY(menuSize);
				 }

			 } else {
				final int oldOffset = mSwipeBackContainer.getBottom() - height;
				 final int offsetBy = offset - oldOffset;
				mSwipeBackContainer.offsetTopAndBottom(offsetBy);
				mSwipeBackContainer.setVisibility(offsetPixels == 0 ? INVISIBLE
						: VISIBLE);
			 }
			 break;
		 }
		 }

	 }
1362212
public void setIconPos(IconPos pos) {
        if (pos == null) {
            JQMCommon.setIconPos(this, pos);
        } else {
            IconPos oldPos = getIconPos();
            JQMCommon.setIconPos(this, pos);
            for (int i = 0; i < buttons.size(); i++) {
                JQMButton btn = buttons.get(i);
                IconPos p = btn.getIconPos();
                if (p == null || oldPos == null || p.equals(oldPos)) btn.setIconPos(pos);
            }
        }
    }
1345025
def set_offset( self, offset ):
        """"""
        assert offset in range( len( self.buffer ) )
        self.pos = offset
        self._fill_buffer()
10147
function setOffsetToIndex(startIndex, offset, baseline) {
            const loc = sourceCode.getLocFromIndex(startIndex)
            setOffsetToLoc(loc, offset, baseline)
        }
619690
public void set(Rect src) {
        this.left = src.left;
        this.top = src.top;
        this.right = src.right;
        this.bottom = src.bottom;
    }
283845
function setOffset(elem, offset) {
  // set position first, in-case top/left are set even on static elem
  if (css(elem, 'position') === 'static') {
    elem.style.position = 'relative';
  }

  var old = getOffset(elem);
  var ret = {};
  var current = undefined;
  var key = undefined;

  for (key in offset) {
    if (offset.hasOwnProperty(key)) {
      current = parseFloat(css(elem, key)) || 0;
      ret[key] = current + offset[key] - old[key];
    }
  }
  css(elem, ret);
}
712669
public void set(int x, int y) {
    int offset = y * rowSize + (x / 32);
    bits[offset] |= 1 << (x & 0x1f);
  }
956044
protected void checkOffset(long offset) {
    if (offset(offset) < this.offset) {
      throw new IndexOutOfBoundsException();
    } else if (limit == -1) {
      if (offset > maxCapacity)
        throw new IndexOutOfBoundsException();
    } else {
      if (offset > limit)
        throw new IndexOutOfBoundsException();
    }
  }
603846
protected void findOnePixels(GrowQueue_I32 ones) {
		for (int y = 0; y < binary.height; y++) {
			int index = binary.startIndex + y* binary.stride;
			for (int x = 0; x < binary.width; x++, index++) {
				if( binary.data[index] != 0 ) {
					ones.add(index);
				}
			}
		}
	}
797474
def horz_offset(self, offset):
        
        if offset == 0.0:
            self._remove_manualLayout()
            return
        manualLayout = self.get_or_add_manualLayout()
        manualLayout.horz_offset = offset
153628
def get_offset
      platform = ChromedriverScreenshot::Platforms.platform
      offset_x = @x - platform.window_x
      offset_y = @y - platform.window_y
      [offset_x, offset_y]
    end
387390
public void setCanvasFilterBitmaps(boolean filterBitmaps) {
    if (filterBitmaps) AndroidCanvasState.PAINT_FLAGS |= Paint.FILTER_BITMAP_FLAG;
    else AndroidCanvasState.PAINT_FLAGS &= ~Paint.FILTER_BITMAP_FLAG;
  }
1282113
function(options) {
        this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,
                                             OpenLayers.Control.PanZoom.Y);
        OpenLayers.Control.prototype.initialize.apply(this, arguments);
    }
1174984
def setPixmaps(self, pixmaps):
        
        self.clear()
        scene = self.scene()
        
        for pmap in pixmaps:
            scene.addItem(XImageItem(pmap))
        
        self.recalculate()
1277773
public void setPixels(int view , List<Point2D_F64> pixelsInView ) {
		if( pixelsInView.size() != pixels.numCols )
			throw new IllegalArgumentException("Pixel count must be constant and match "+pixels.numCols);

		int row = view*2;
		for (int i = 0; i < pixelsInView.size(); i++) {
			Point2D_F64 p = pixelsInView.get(i);
			pixels.set(row,i,p.x);
			pixels.set(row+1,i,p.y);
			pixelScale = Math.max(Math.abs(p.x),Math.abs(p.y));
		}
	}
935170
function (offset, bounds) {
		if (!bounds) { return offset; }

		var viewBounds = this.getPixelBounds(),
		    newBounds = new L.Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));

		return offset.add(this._getBoundsOffset(newBounds, bounds));
	}
1018197
public void setPadding(int left, int top, int right, int bottom) {
        if ((left | top | right | bottom) == 0) {
            mState.mPadding = null;
        } else {
            if (mState.mPadding == null) {
                mState.mPadding = new Rect();
            }
            mState.mPadding.set(left, top, right, bottom);
        }
        invalidateSelf();
    }