Bar element class.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | color_bg | Background color. |
||
| character(len=:), | public, | allocatable | :: | color_fg | Foreground color. |
||
| character(kind=len=:,UCS4), | public, | allocatable | :: | string | Element string. |
||
| character(len=:), | public, | allocatable | :: | style | Style. |
Operator =.
Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(element_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(element_object), | intent(in) | :: | rhs | Right hand side. |
Overload =.
Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(element_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(element_object), | intent(in) | :: | rhs | Right hand side. |
Destroy element.
Destroy element.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(element_object), | intent(inout) | :: | self | element. |
Initialize element.
Initialize element.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(element_object), | intent(inout) | :: | self | element. |
||
| class(*), | intent(in), | optional | :: | string | Element string. |
|
| character(len=*), | intent(in), | optional | :: | color_fg | Foreground color. |
|
| character(len=*), | intent(in), | optional | :: | color_bg | Background color. |
|
| character(len=*), | intent(in), | optional | :: | style | Style. |
Return formatted output of element.
Return formatted output of element.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(element_object), | intent(in) | :: | self | element. |
Formatted output.
type :: element_object
!< Bar element class.
character(len=:, kind=UCS4), allocatable :: string !< Element string.
character(len=:), allocatable :: color_fg !< Foreground color.
character(len=:), allocatable :: color_bg !< Background color.
character(len=:), allocatable :: style !< Style.
contains
! public methods
procedure, pass(self) :: destroy !< Destroy element.
procedure, pass(self) :: initialize !< Initialize element.
procedure, pass(self) :: output !< Return formatted output of element.
! public operators
generic :: assignment(=) => assign_element !< Overload `=`.
! private methods
procedure, pass(lhs), private :: assign_element !< Operator `=`.
endtype element_object