set the icon offset for X as dp

@return The current IconicsDrawable for chaining.
345818
@NonNull
    public IconicsDrawable iconOffsetXDp(@Dimension(unit = DP) int sizeDp) {
        return iconOffsetXPx(Utils.convertDpToPx(mContext, sizeDp));
    }
877741
public static void styleEditable(@NonNull Context ctx,
                                     @Nullable HashMap<String, ITypeface> fonts,
                                     @NonNull Editable textSpanned,
                                     @Nullable List<CharacterStyle> styles,
                                     @Nullable HashMap<String, List<CharacterStyle>> stylesFor) {
        fonts = init(ctx, fonts);

        //find all icons which should be replaced with the iconFont
        List<StyleContainer> styleContainers = IconicsUtils.findIconsFromEditable(textSpanned, fonts);

        //set all the icons and styles
        IconicsUtils.applyStyles(ctx, textSpanned, styleContainers, styles, stylesFor);
    }
312588
@NonNull
    public IconicsDrawable shadowPx(
            @Dimension(unit = PX) float radius,
            @Dimension(unit = PX) float dx,
            @Dimension(unit = PX) float dy,
            @ColorInt int color) {
        mShadowRadius = radius;
        mShadowDx = dx;
        mShadowDy = dy;
        mShadowColor = color;

        mIconBrush.getPaint().setShadowLayer(radius, dx, dy, color);
        invalidateSelf();
        return this;
    }
20032
public static StateListDrawable getIconStateList(Drawable icon, Drawable selectedIcon) {
        StateListDrawable iconStateListDrawable = new StateListDrawable();
        iconStateListDrawable.addState(new int[]{android.R.attr.state_selected}, selectedIcon);
        iconStateListDrawable.addState(new int[]{}, icon);
        return iconStateListDrawable;
    }
736479
@NonNull
    public IconicsDrawable roundedCornersRyRes(@DimenRes int sizeResId) {
        return roundedCornersRyPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
1098736
@Override
	public void setIconForButton(IconLocationType iconForButton)
	{
		if (null != iconForButton)
		{
			myUserInterfaceAction.setIconForButton(iconForButton);
			ImageIcon _icon = retrieveIcon(getIconForButton());
			putValue(Action.LARGE_ICON_KEY, _icon);
		}
	}
1016683
@NonNull
    public IconicsDrawable colorRes(@ColorRes int colorResId) {
        return color(ContextCompat.getColor(mContext, colorResId));
    }
170799
public UIImage setIcon(GuiIcon icon)
	{
		this.itemStack = null;
		this.icon = icon;
		setForeground(ICON_RENDER);
		return this;
	}
728578
@NonNull
    public IconicsDrawable roundedCornersRxPx(@Dimension(unit = PX) int sizePx) {
        mRoundedCornerRx = sizePx;

        invalidateSelf();
        return this;
    }
311250
@NonNull
    public IconicsDrawable sizeRes(@DimenRes int sizeResId) {
        return sizePx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
480364
public void updateIcon(long identifier, ImageHolder image) {
        IDrawerItem drawerItem = getDrawerItem(identifier);
        if (drawerItem instanceof Iconable) {
            Iconable pdi = (Iconable) drawerItem;
            pdi.withIcon(image);
            updateItem((IDrawerItem) pdi);
        }
    }
62355
@NonNull
    public IconicsDrawable backgroundColor(@NonNull ColorStateList colors) {
        if (colors != null) {
            boolean isInvalidate = false;

            if (mRoundedCornerRx == -1) {
                mRoundedCornerRx = 0;
                isInvalidate = true;
            }
            if (mRoundedCornerRy == -1) {
                mRoundedCornerRy = 0;
                isInvalidate = true;
            }

            mBackgroundBrush.setColors(colors);
            if (mBackgroundBrush.applyState(getState())) {
                isInvalidate = true;
            }

            if (isInvalidate) {
                invalidateSelf();
            }
        }
        return this;
    }
1094887
public void setIcon(Drawable drawable){
        mIcon.setImageDrawable(drawable);
        mIcon.setVisibility(View.VISIBLE);
    }
847194
@NonNull
    public IconicsDrawable contourWidthRes(@DimenRes int sizeResId) {
        return contourWidthPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
1369636
@NonNull
    public IconicsDrawable roundedCornersRes(@DimenRes int sizeResId) {
        return roundedCornersPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
701531
@NonNull
    public IconicsDrawable iconText(@NonNull String icon, @Nullable Typeface typeface) {
        mPlainIcon = icon;
        mIcon = null;
        mIconBrush.getPaint().setTypeface(typeface == null ? Typeface.DEFAULT : typeface);

        invalidateSelf();
        return this;
    }
611420
@Override
	public Icon getIcon(IBlockAccess world, BlockPos pos, IBlockState state, EnumFacing facing)
	{
		if (!initialized)
			initializeIcons();
		int connections = getConnections(world, pos, facing);
		return icons[connections];
	}