Set target width

@param int|null $width
544440
public function setWidth($width)
    {
        $width = $this->convertUnit($width);
        $this->setAttributeDirectly('width', $width);

        if(\strpos($width, '%') !== false)
        {
            $this->setRelativeWidth($width);
        }

        return $this;
    }
784593
public function setSize($width, $height)
    {
        $this->width = $width;
        $this->height = $height;
        $this->ratioX = $width / $height;
        $this->ratioY = $height / $width;

        return $this;
    }
248085
public function set_tab_width($width) {
        $this->tab_width = intval($width);

        //Check if it fit's the constraints:
        if ($this->tab_width < 1) {
            //Return it to the default
            $this->tab_width = 8;
        }
    }
214802
public function fit_to_width($width)
    {
        $aspect_ratio = $this->height / $this->width;
        $height = $width * $aspect_ratio;

        return $this->resize($width, $height);
    }
937935
public function setFormWidth($width)
    {
        $command = new Command\Stored\SetFormWidthCommand($width);
        $this->getComposite()->addCommand($command);
        return $this;
    }
790985
public function setSize($width, $height)
    {
        $params = [
            'width' => intval($width),
            'height' => intval($height)
        ];
        $command = $this->driver->factoryCommand(
            'window/' . $this->windowHandle . '/size',
            WebDriver_Command::METHOD_POST,
            $params
        );
        return $this->driver->curl($command)['value'];
    }
960669
def setMinimumWidth(self, width):
        
        super(XView, self).setMinimumWidth(width)
        
        if ( not self.signalsBlocked() ):
            self.sizeConstraintChanged.emit()
545967
public void setContentWidth(int width)
    {
        int w = width;
        if (max_size.width != -1 && w > max_size.width)
            w = max_size.width;
        if (min_size.width != -1 && w < min_size.width)
            w = min_size.width;
        content.width = w;
    }
127606
public function setSoftEdgesSize($size)
    {
        if (!is_null($size)) {
            $this->activateObject();
            $softEdges['size'] = (string) $this->getExcelPointsWidth($size);
        }
    }
398632
public function getMetaImageResizeWidth($width = null)
    {
        if ($width) {
            return $width;
        }
        
        if ($width = $this->owner->ImageMetaResizeWidth) {
            return $width;
        }
        
        return $this->owner->getFieldFromParent('DefaultImageResizeWidth');
    }
347218
public function setWidth($width){
		if(\is_int($width)){
			$width=Wide::getConstants()["W".$width];
		}
		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
		if(isset($this->_container)){
			$this->_container->setEqualWidth(false);
		}
		return $this->addToPropertyCtrl("class", "wide",array("wide"));
	}
392918
public function setWidth($width)
    {
        if (is_int($width) === true) {
            $this->width = $width;
        } else {
            $msg = "The 'width' argument must be an integer, '" . gettype($width) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
282232
public function set_window_size( $width, $height )
	{
		$width = $this->replace_variables( $width );
		$height = $this->replace_variables( $height );

		$this->getSession()->getDriver()->resizeWindow( $width, $height, 'current' );
	}
681207
public function setWidths(array $widths, $fallback = false) {
		if ($fallback) {
			foreach ( $this->_widths as $index => $value ) {
			    $widths[$index] = $value;
			}
		}
		$this->_widths = $widths;
	}
510273
public function setWidth($ftTypeWidth)
    {
        $this->ftTypeWidth = null;
        if (is_numeric($ftTypeWidth)) {
            $v = (int) $ftTypeWidth;
            if ($v > 0) {
                $this->ftTypeWidth = $v;
            }
        }
    }
880102
public function addCol($width=NULL) {
		$colCount=$this->colCount() + 1;
		$this->setColsCount($colCount, true, $width);
		if ($this->hasOnlyCols($this->count()))
			return $this->content[$colCount - 1];
		return $this;
	}
24523
public function setWidth($value)
	{
		$this->width = intval($value);
		$this->right = null;
		return $this;
	}