util

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropShadow added in v0.4.0

func DropShadow(x, y, radius float64, alpha int) *widgets.QGraphicsDropShadowEffect

DropShadow drops a shadow

func ExpandTildeToHomeDirectory added in v0.4.7

func ExpandTildeToHomeDirectory(path string) (string, error)

ExpandTildeToHomeDirectory is a function that expand '~' to absolute home directory path

func IsTrue

func IsTrue(d interface{}) bool

IsTrue determines the truth of the value of interface{}

func IsZero

func IsZero(d interface{}) bool

IsZero determines if the value of interface{} is zero

func NewHFlowLayout

func NewHFlowLayout(spacing int, padding int, paddingTop int, rightIdex int, width int) *widgets.QLayout

NewHFlowLayout is a horizontal flow layout. See https://doc.qt.io/qt-5.9/qtwidgets-layouts-flowlayout-example.html

func NewVFlowLayout

func NewVFlowLayout(spacing int, padding int, paddingTop int, rightIdex int, width int) *widgets.QLayout

NewVFlowLayout is a vertical flow layout. See https://doc.qt.io/qt-5.9/qtwidgets-layouts-flowlayout-example.html

func PrepareRunProc

func PrepareRunProc(cmd *exec.Cmd)

func ReflectToFloat added in v0.4.0

func ReflectToFloat(iface interface{}) float64

ReflectToFloat converts interface{} to float64

func ReflectToInt

func ReflectToInt(iface interface{}) int

ReflectToInt converts interface{} to int

func SplitVimscript added in v0.4.0

func SplitVimscript(s string) string

SplitVimscript splits Vimscript read as a character string with line breaks and converts it to a list format character string

Types

This section is empty.

Jump to

Keyboard shortcuts

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