Property | Type | Description | |
---|---|---|---|
$bg | string | ||
$contentWidth | integer | ||
$fg | string | ||
$margin | integer | ||
$padding | integer | ||
$terminal | PhpSchool\CliMenu\Terminal\TerminalInterface | ||
$width | integer |
Method | Description | |
---|---|---|
__construct ( PhpSchool\CliMenu\Terminal\TerminalInterface $terminal = null ) | Initialise style | |
getAvailableColours ( ) : array | ||
getBg ( ) : string | ||
getContentWidth ( ) : integer | ||
getDefaultStyleValues ( ) : array | ||
getDisabledItemText ( string $text ) : string | ||
getDisplaysExtra ( ) : boolean | ||
getFg ( ) : string | ||
getItemExtra ( ) : string | ||
getMargin ( ) : integer | ||
getMarker ( boolean $selected ) : string | Get the correct marker for the item | |
getPadding ( ) : integer | ||
getRightHandPadding ( $contentLength ) : integer | Get padding for right had side of content | |
getSelectedMarker ( ) : string | ||
getSelectedSetCode ( ) : string | Get the colour code set for Bg and Fg | |
getSelectedUnsetCode ( ) : string | Get the colour unset code for Bg and Fg | |
getTitleSeparator ( ) : string | ||
getUnselectedMarker ( ) : string | ||
getUnselectedSetCode ( ) : string | Get the inverted colour code | |
getUnselectedUnsetCode ( ) : string | Get the inverted colour unset code | |
getWidth ( ) : integer | ||
setBg ( string $bg ) : |
||
setDisplaysExtra ( boolean $displaysExtra ) | ||
setFg ( string $fg ) : |
||
setItemExtra ( string $itemExtra ) | ||
setMargin ( integer $margin ) : |
||
setPadding ( integer $padding ) : |
||
setSelectedMarker ( string $marker ) | ||
setTitleSeparator ( string $actionSeparator ) | ||
setUnselectedMarker ( string $marker ) | ||
setWidth ( integer $width ) : |
Method | Description | |
---|---|---|
calculateContentWidth ( ) | Calculate the contents width |
public __construct ( PhpSchool\CliMenu\Terminal\TerminalInterface $terminal = null ) | ||
$terminal | PhpSchool\CliMenu\Terminal\TerminalInterface |
protected calculateContentWidth ( ) |
public static getAvailableColours ( ) : array | ||
return | array |
public static getDefaultStyleValues ( ) : array | ||
return | array |
public getDisabledItemText ( string $text ) : string | ||
$text | string | |
return | string |
public getRightHandPadding ( $contentLength ) : integer | ||
$contentLength | ||
return | integer |
public getSelectedSetCode ( ) : string | ||
return | string |
public getSelectedUnsetCode ( ) : string | ||
return | string |
public getUnselectedSetCode ( ) : string | ||
return | string |
public getUnselectedUnsetCode ( ) : string | ||
return | string |
public setDisplaysExtra ( boolean $displaysExtra ) | ||
$displaysExtra | boolean |
public setPadding ( integer $padding ) : |
||
$padding | integer | |
return |
public setTitleSeparator ( string $actionSeparator ) | ||
$actionSeparator | string |
protected TerminalInterface,PhpSchool\CliMenu\Terminal $terminal | ||
return | PhpSchool\CliMenu\Terminal\TerminalInterface |