datepicker

package
v0.0.0-...-65cf59d Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlackColor = color.NRGBA{R: 0, G: 0, B: 0, A: 255}
View Source
var BlackTextColor = color.NRGBA{R: 28, G: 28, B: 28, A: 255}
View Source
var DarkGrayColor = color.NRGBA{R: 34, G: 40, B: 50, A: 255}
View Source
var DarkRedColor = color.NRGBA{R: 171, G: 36, B: 33, A: 255}
View Source
var DateIcon []byte
View Source
var FlagDpDate bool
View Source
var GrayBackground = color.NRGBA{R: 230, G: 230, B: 235, A: 255}
View Source
var GrayCardBackground = color.NRGBA{R: 240, G: 240, B: 240, A: 255}
View Source
var GrayColor = color.NRGBA{R: 128, G: 128, B: 128, A: 255}
View Source
var GrayShadow_high = color.NRGBA{R: 0, G: 0, B: 0, A: 50}
View Source
var GrayShadow_low = color.NRGBA{R: 0, G: 0, B: 0, A: 10}
View Source
var GrayShadow_med = color.NRGBA{R: 0, G: 0, B: 0, A: 30}
View Source
var GrayTextColor = color.NRGBA{R: 84, G: 100, B: 125, A: 255}
View Source
var GreenColor = color.NRGBA{R: 0, G: 255, B: 0, A: 180}
View Source
var LGrayColor = color.NRGBA{R: 238, G: 238, B: 238, A: 255}
View Source
var MGrayColor = color.NRGBA{R: 220, G: 220, B: 220, A: 255}
View Source
var OverlayGray = color.NRGBA{R: 238, G: 238, B: 238, A: 50}
View Source
var RedColor = color.NRGBA{R: 255, G: 0, B: 0, A: 255}
View Source
var Transparent = color.NRGBA{R: 0, G: 0, B: 0, A: 0}
View Source
var WhiteColor = color.NRGBA{R: 255, G: 255, B: 255, A: 255}

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

func DateSpacedLayout

func DateSpacedLayout(gtx C, th *mt, name string, totalspaceX int, totalspaceY int) D

type DatePicker

type DatePicker struct {
	Date      time.Time
	IsOpen    bool
	Openbtn   widget.Clickable
	PrevBtn   widget.Clickable
	NextBtn   widget.Clickable
	Days      [31]widget.Clickable
	MonthBtn  widget.Clickable
	YearBtn   widget.Clickable
	Months    [12]widget.Clickable
	Years     [20]widget.Clickable
	ViewMode  string // "date", "month", or "year"
	YearRange int    // Starting year for the year picker
	TodayBtn  widget.Clickable
	Editor    *widget.Editor
}

func (*DatePicker) Layout

func (dp *DatePicker) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳