iwindow

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SELECTED_TEXT_COLOR = 238
	SELECTED_BG_COLOR   = 160
	MATCHED_TEXT_COLOR  = 200
	SEPARATOR           = "----------"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WindowInfoStruct

type WindowInfoStruct swindow.WindowInfo

func NewWindowInfo

func NewWindowInfo() *WindowInfoStruct

* コンストラクタ作成

func (*WindowInfoStruct) RenderCursor

func (myself *WindowInfoStruct) RenderCursor(cursorPosX int)

* @description カーソルを描画する * @param cursorPosX カーソルの位置

func (*WindowInfoStruct) RenderOptionStack

func (myself *WindowInfoStruct) RenderOptionStack(commands []string, options []string)

* @description 選択しているオプション一覧を描画する * @param command 入力コマンド * @param stackOptions 選択しているオプション

func (*WindowInfoStruct) RenderPageNumber

func (myself *WindowInfoStruct) RenderPageNumber(page int, maxPage int, query string)

* @description ページ番号を描画する * @param page ページ番号 * @param maxPage 最大ページ件数 * @param query クエリ

func (*WindowInfoStruct) RenderQuery

func (myself *WindowInfoStruct) RenderQuery(query string)

* @description 入力しているクエリを描画する * @param query クエリ

func (*WindowInfoStruct) RenderResult

func (myself *WindowInfoStruct) RenderResult(pageNum int, nextPageNum int, selectedPos int, list *imodel.ManDataObjectStruct, query string)

* @description 検索結果を表示する * @param pageNum ページの件数 * @param nextPageNum 次ページの件数 * @param selectedPos プションの選択位置 * @param list 抽出結果 * @param query クエリ

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL