Documentation
¶
Index ¶
- type Attachments
- type Keymap
- type Renderer
- func (r *Renderer) DeleteHit(attachments []message.Attachment, deleting bool, width, x, y int) (int, bool)
- func (r *Renderer) Render(attachments []message.Attachment, deleting bool, width int) string
- func (r *Renderer) RenderComposer(attachments []message.Attachment, deleting bool, width int) string
- func (r *Renderer) SetStyles(normalStyle, deletingStyle, imageStyle, textStyle, skillStyle lipgloss.Style)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachments ¶
type Attachments struct {
// contains filtered or unexported fields
}
func New ¶
func New(renderer *Renderer, keyMap Keymap) *Attachments
func (*Attachments) HandleClick ¶
func (m *Attachments) HandleClick(x, y, width int) bool
func (*Attachments) List ¶
func (m *Attachments) List() []message.Attachment
func (*Attachments) Render ¶
func (m *Attachments) Render(width int) string
func (*Attachments) Renderer ¶
func (m *Attachments) Renderer() *Renderer
Renderer returns the attachment renderer so callers can update its styles in place.
func (*Attachments) Reset ¶
func (m *Attachments) Reset()
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func (*Renderer) RenderComposer ¶
Click to show internal directories.
Click to hide internal directories.