TBItemButton setLayout(int width, int widthFlags, int margin, int border) {
    if (width < 0) {
      width = 0;
    }
    if (margin < 0) {
      margin = 0;
    }
    if (border < 0) {
      border = 0;
    }

    int newLayout = width & NSTLibrary.LAYOUT_WIDTH_MASK;
    newLayout |= widthFlags;
    newLayout |= NSTLibrary.margin2mask((byte)margin);
    newLayout |= NSTLibrary.border2mask((byte)border);
    if (myLayoutBits != newLayout) {
      myLayoutBits = newLayout;
      updateOptions |= NSTLibrary.BUTTON_UPDATE_LAYOUT;
    }

    return this;
  }
TBItemButton setLayout(int width, int widthFlags, int margin, int border)