BoxRadius

Table of contents

Defines radii of rounds the corners of an element's outer border edge

type BoxRadius struct {
    TopLeftX, TopLeftY, TopRightX, TopRightY, BottomLeftX, BottomLeftY, BottomRightX, BottomRightY SizeUnit
}
Member Type Description
TopLeftX SizeUnit x-radius of the top left corner
TopLeftY SizeUnit y-radius of the top left corner
TopRightX SizeUnit x-radius of the top right corner
TopRightY SizeUnit y-radius of the top right corner
BottomLeftX SizeUnit x-radius of the bottom left corner
BottomLeftY SizeUnit y-radius of the bottom left corner
BottomRightX SizeUnit x-radius of the bottom right corner
BottomRightY SizeUnit y-radius of the bottom right corner
func GetRadius(view View, subviewID ...string) BoxRadius

Returns the BoxRadius structure of the subview. If the second argument (subviewID) is not specified or is an empty string then a BoxRadius of the first argument (view) is returned