border

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border

func Border(w *impress.Window, rect image.Rectangle, foreground color.Color)

Border draws a rectangle border in specied window. Rect is a border coordinates, foreground is a border line color

func ComplexBorder added in v0.1.3

func ComplexBorder(w *impress.Window, rect image.Rectangle, lightColor color.Color, darkColor color.Color, borderWidth int)

ComplexBorder draws a rectangle border in specied window. Rect is a border coordinates, lightColor and darkColor are border segment colors, borderWidth is a border width

func InnerRect

func InnerRect(rect image.Rectangle) image.Rectangle

InnerRect returns coordinates of an inner space rectangle inside a border

Types

This section is empty.

Jump to

Keyboard shortcuts

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