rectframe

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RectFrame

type RectFrame struct {
	*impress.Frame
	// contains filtered or unexported fields
}

RectFrame contains a frame and its rectangle

func New

func New(
	framer interface {
		NewFrame(rect image.Rectangle) *impress.Frame
	},
	rect image.Rectangle,
) *RectFrame

New creates a new frame

func (*RectFrame) InnerRect

func (f *RectFrame) InnerRect() image.Rectangle

InnerRect returns the coordinates of the inner rectangle

func (*RectFrame) NewRectFrame

func (f *RectFrame) NewRectFrame(rect image.Rectangle) *RectFrame

NewRectFrame creates a child frame

func (*RectFrame) Rect

func (f *RectFrame) Rect() image.Rectangle

Rect returns the frame coordinates

func (*RectFrame) Size

func (f *RectFrame) Size(rect image.Rectangle)

Size changes the size and position of the frame

Jump to

Keyboard shortcuts

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