Documentation
¶
Overview ¶
gumi.go define GUMI interface GUMI is elements of GUI Every elements can render(graphic), affect(event), update(information) must implements this interface
Index ¶
- Variables
- func ListStringStyleData() []string
- func TextComplete(s string, r rune) string
- func WorkingPipe(pipe *Pipe, works ...RecursiveJob) error
- func WorkingPipeSynchronized(pipe *Pipe, works ...RecursiveJob) error
- type Bounder
- type CircleShape
- type Clicker
- type ComplexShape
- type DefaultManager
- type DoRender
- type Document
- type Editer
- type Event
- type EventCursor
- type EventKeyPress
- type EventKeyRelease
- type EventKind
- type EventResize
- type EventRuneComplete
- type EventRuneEdit
- type EventScroll
- type EventStyle
- type EventTick
- type Focuser
- type GUMI
- type GUMIKey
- type Handler
- type Information
- type MLGBuilder
- type MLGResourceLocation
- type MLGResourceMemory
- type MLGResourceStore
- type Meta
- type ParentBounder
- type ParentDoRender
- type ParentGUMI
- type Pipe
- type Pipeline
- type PostRender
- type PreFocuser
- type PreRawHandler
- type RawHandler
- type RectShape
- type RecursiveJob
- type Resizer
- type Resource
- type Screen
- type Scroller
- type Shaper
- type Sizer
- type Space
- type SpaceSupport
- type Style
- type StyleData
- type StyleDatatype
- type Styler
- type SupportTag
- type TagArg
- type TextDeleteActor
- type Ticker
- type ValueManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrorRequestSchema = errors.Resize("Schema error") ErrorNotNil = errors.New("Not allow nil to this") ErrorNameConflict = errors.New("Name conflict") ErrorParsingFail = errors.New("Parsing failure") ErrorCantParse = errors.New("Can't parse value") ErrorNotControlable = errors.New("Can't control value name") ErrorNotFound = errors.New("Can't find") ErrorViolation = errors.New("Rule Violate") ErrorInvalidValue = errors.New("needRender value") )
View Source
var (
CriticalUnknownBehavior = errors.New("Unknown behavior")
)
Functions ¶
func ListStringStyleData ¶
func ListStringStyleData() []string
func TextComplete ¶
func WorkingPipe ¶
func WorkingPipe(pipe *Pipe, works ...RecursiveJob) error
func WorkingPipeSynchronized ¶
func WorkingPipeSynchronized(pipe *Pipe, works ...RecursiveJob) error
Types ¶
type CircleShape ¶
func NewCircleShape ¶
func NewCircleShape(center image.Point, radius int) *CircleShape
type ComplexShape ¶
type ComplexShape struct {
// contains filtered or unexported fields
}
func NewComplexShape ¶
func NewComplexShape(shapers ...Shaper) *ComplexShape
func (*ComplexShape) Append ¶
func (s *ComplexShape) Append(shapers ...Shaper)
func (*ComplexShape) Clear ¶
func (s *ComplexShape) Clear()
type DefaultManager ¶
type EventCursor ¶
func (EventCursor) Kind ¶
func (EventCursor) Kind() EventKind
type EventKeyPress ¶
type EventKeyPress struct {
Key GUMIKey
}
func (EventKeyPress) Kind ¶
func (EventKeyPress) Kind() EventKind
type EventKeyRelease ¶
type EventKeyRelease struct {
Key GUMIKey
}
func (EventKeyRelease) Kind ¶
func (EventKeyRelease) Kind() EventKind
type EventResize ¶
func (EventResize) Kind ¶
func (EventResize) Kind() EventKind
type EventRuneComplete ¶
type EventRuneComplete struct {
Rune rune
}
func (EventRuneComplete) Kind ¶
func (EventRuneComplete) Kind() EventKind
type EventRuneEdit ¶
type EventRuneEdit struct {
Rune rune
}
func (EventRuneEdit) Kind ¶
func (EventRuneEdit) Kind() EventKind
type EventScroll ¶
func (EventScroll) Kind ¶
func (EventScroll) Kind() EventKind
type EventStyle ¶
type EventStyle struct {
StyleData StyleData
}
func (EventStyle) Kind ¶
func (EventStyle) Kind() EventKind
type GUMI ¶
type GUMI interface { MaxChildrun() int Pipe() *Pipe fmt.Stringer // contains filtered or unexported methods }
GUMI is a collection of basic elements
type GUMIKey ¶
type GUMIKey uint8
const ( KEY_UNKNOWN GUMIKey = iota // Alphabet KEY_A GUMIKey = iota KEY_B GUMIKey = iota KEY_C GUMIKey = iota KEY_D GUMIKey = iota KEY_E GUMIKey = iota KEY_F GUMIKey = iota KEY_G GUMIKey = iota KEY_H GUMIKey = iota KEY_I GUMIKey = iota KEY_J GUMIKey = iota KEY_K GUMIKey = iota KEY_L GUMIKey = iota KEY_M GUMIKey = iota KEY_N GUMIKey = iota KEY_O GUMIKey = iota KEY_P GUMIKey = iota KEY_Q GUMIKey = iota KEY_R GUMIKey = iota KEY_S GUMIKey = iota KEY_T GUMIKey = iota KEY_U GUMIKey = iota KEY_V GUMIKey = iota KEY_W GUMIKey = iota KEY_X GUMIKey = iota KEY_Y GUMIKey = iota KEY_Z GUMIKey = iota // Number KEY_0 GUMIKey = iota KEY_1 GUMIKey = iota KEY_2 GUMIKey = iota KEY_3 GUMIKey = iota KEY_4 GUMIKey = iota KEY_5 GUMIKey = iota KEY_6 GUMIKey = iota KEY_7 GUMIKey = iota KEY_8 GUMIKey = iota KEY_9 GUMIKey = iota // Special KEY_BACKQUOTE GUMIKey = iota // ` KEY_APOSTROPHE GUMIKey = iota // ' KEY_LEFTBRACKET GUMIKey = iota // [ KEY_RIGHTBRACKET GUMIKey = iota // ] KEY_SEMICOLON GUMIKey = iota // ; KEY_MINUS GUMIKey = iota // - KEY_EQUAL GUMIKey = iota // = KEY_BACKSLASH GUMIKey = iota // \ KEY_SLASH GUMIKey = iota // / KEY_COMMA GUMIKey = iota // , KEY_PERIOD GUMIKey = iota // . // Function KEY_F1 GUMIKey = iota KEY_F2 GUMIKey = iota KEY_F3 GUMIKey = iota KEY_F4 GUMIKey = iota KEY_F5 GUMIKey = iota KEY_F6 GUMIKey = iota KEY_F7 GUMIKey = iota KEY_F8 GUMIKey = iota KEY_F9 GUMIKey = iota KEY_F10 GUMIKey = iota KEY_F11 GUMIKey = iota KEY_F12 GUMIKey = iota // Control KEY_ESCAPE GUMIKey = iota KEY_BACKSPACE GUMIKey = iota KEY_DELETE GUMIKey = iota KEY_SPACE GUMIKey = iota KEY_ENTER GUMIKey = iota KEY_SHIFT GUMIKey = iota // mac : Shift KEY_CONTROL GUMIKey = iota // mac : Command, Control KEY_ALT GUMIKey = iota // mac : Option KEY_TAB GUMIKey = iota // Arrow KEY_UP GUMIKey = iota KEY_DOWN GUMIKey = iota KEY_LEFT GUMIKey = iota KEY_RIGHT GUMIKey = iota // Mouse KEY_MOUSE1 GUMIKey = iota KEY_MOUSE2 GUMIKey = iota KEY_MOUSE3 GUMIKey = iota )
type Information ¶
type Information struct {
Dt int64
}
func DefaultInformation ¶
func DefaultInformation() *Information
type MLGBuilder ¶
type MLGBuilder struct { // setting data PrintComment bool Verbose bool IgnoreWarning bool // contains filtered or unexported fields }
func NewMLGBuilder ¶
func NewMLGBuilder(r io.Reader, space *Space) (*MLGBuilder, error)
func (*MLGBuilder) Build ¶
func (s *MLGBuilder) Build() (*Screen, error)
type MLGResourceLocation ¶
type MLGResourceLocation struct {
// contains filtered or unexported fields
}
func (*MLGResourceLocation) Data ¶
func (s *MLGResourceLocation) Data() gime.Value
func (*MLGResourceLocation) ID ¶
func (s *MLGResourceLocation) ID() string
func (*MLGResourceLocation) Mime ¶
func (s *MLGResourceLocation) Mime() string
type MLGResourceMemory ¶
type MLGResourceMemory struct {
// contains filtered or unexported fields
}
func (*MLGResourceMemory) Data ¶
func (s *MLGResourceMemory) Data() gime.Value
func (*MLGResourceMemory) ID ¶
func (s *MLGResourceMemory) ID() string
func (*MLGResourceMemory) Mime ¶
func (s *MLGResourceMemory) Mime() string
type MLGResourceStore ¶
type Meta ¶
type ParentBounder ¶
type ParentBounder struct {
// contains filtered or unexported fields
}
func (*ParentBounder) RelayBound ¶
func (s *ParentBounder) RelayBound() image.Rectangle
if need, override
type ParentDoRender ¶
type ParentDoRender struct { ParentBounder // contains filtered or unexported fields }
type ParentGUMI ¶
type ParentGUMI struct {
// contains filtered or unexported fields
}
func (*ParentGUMI) Pipe ¶
func (s *ParentGUMI) Pipe() *Pipe
func (*ParentGUMI) Pipeline ¶
func (s *ParentGUMI) Pipeline() *Pipeline
func (*ParentGUMI) Screen ¶
func (s *ParentGUMI) Screen() *Screen
type Pipe ¶
type Pipe struct { Pipeline *Pipeline Parent *Pipe Childrun []*Pipe // Elem GUMI // contains filtered or unexported fields }
func (*Pipe) ProximateChildrunSize ¶
func (*Pipe) ProximateParentBound ¶
type Pipeline ¶
type Pipeline struct { //Eventline *etc.Manager Screen *Screen Root *Pipe // contains filtered or unexported fields }
func NewPipeline ¶
func (*Pipeline) Rasterizer ¶
type PostRender ¶
type PostRender interface {
PostRender(rasterzier *giame.ContourQuary) []*giame.Contour
}
type RectShape ¶
func NewRectShape ¶
type RecursiveJob ¶
type Resource ¶
type Resource struct { *gime.URISupportMap Inners []MLGResourceStore }
func NewResource ¶
func NewResource() *Resource
func (*Resource) Resource ¶
func (s *Resource) Resource(path string) MLGResourceStore
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
func NewSpace ¶
func NewSpace(supports ...SpaceSupport) (*Space, error)
func (*Space) Find ¶
func (s *Space) Find(ns, name string) *SupportTag
type SpaceSupport ¶
type StyleData ¶
type StyleData uint32
[0:16] : Identifier [16:32] : Style Datatype
const ( STYLE_INVALID StyleData = iota // STYLE_Background StyleData = (iota << 16) | StyleData(TYPE_TEXTURE) // STYLE_LineWidth StyleData = (iota << 16) | StyleData(TYPE_INT) // STYLE_Font StyleData = (iota << 16) | StyleData(TYPE_FONT) STYLE_TextColor StyleData = (iota << 16) | StyleData(TYPE_COLOR) STYLE_TextHeight StyleData = (iota << 16) | StyleData(TYPE_INT) STYLE_TextAlign StyleData = (iota << 16) | StyleData(TYPE_ALIGN) )
func FromStringStyleData ¶
func (StyleData) Type ¶
func (s StyleData) Type() StyleDatatype
type StyleDatatype ¶
type StyleDatatype uint16
const ( TYPE_NIL StyleDatatype = iota TYPE_INT StyleDatatype = iota TYPE_FLOAT StyleDatatype = iota TYPE_STRING StyleDatatype = iota TYPE_SIZE StyleDatatype = iota TYPE_FIXEDSIZE StyleDatatype = iota TYPE_BLANK StyleDatatype = iota TYPE_ALIGN StyleDatatype = iota TYPE_AXIS StyleDatatype = iota TYPE_COLOR StyleDatatype = iota TYPE_FONT StyleDatatype = iota TYPE_TEXTURE StyleDatatype = iota )
func (StyleDatatype) Marshal ¶
func (s StyleDatatype) Marshal(value interface{}) (string, error)
func (StyleDatatype) Unmarshal ¶
func (s StyleDatatype) Unmarshal(value string) (interface{}, error)
func (StyleDatatype) Valid ¶
func (s StyleDatatype) Valid(value interface{}) bool
type SupportTag ¶
type TextDeleteActor ¶
type TextDeleteActor struct { Thershold float64 Interval float64 // contains filtered or unexported fields }
func NewTextDeleteActor ¶
func NewTextDeleteActor(Thershold float64, Interval float64) *TextDeleteActor
func (*TextDeleteActor) Animate ¶
func (s *TextDeleteActor) Animate(delta float64) bool
func (*TextDeleteActor) Pop ¶
func (s *TextDeleteActor) Pop() int
func (*TextDeleteActor) Reset ¶
func (s *TextDeleteActor) Reset()
func (*TextDeleteActor) Start ¶
func (s *TextDeleteActor) Start()
Source Files
¶
- Shape.go
- Style-Datatype.go
- Style-data-def.go
- Style-data.go
- Style.go
- errors.go
- etc-TextdeleteActor.go
- event.go
- event_Key.go
- event_Key_stringer.go
- generate.go
- gumi-screen-meta.go
- gumi-screen-resource.go
- gumi.go
- gumi_information.go
- gumi_screen.go
- inplement.go
- mlg-parser-document.go
- mlg-parser-meta.go
- mlg-parser-resource.go
- mlg-parser-screen.go
- mlg-parser.go
- mlg-space.go
- mlg-structure-stringer.go
- mlg-structure.go
- pipeline-event-cfHandler.go
- pipeline-event-imeHandler.go
- pipeline-event-scrollHandler.go
- pipeline-event-styleHandler.go
- pipeline-event-tickHandler.go
- pipeline-event.go
- pipeline-recursive.go
- pipeline-render-work.go
- pipeline-render.go
- pipeline_Pipe.go
- pipeline_Pipeline.go
- pool.go
- url.go
Click to show internal directories.
Click to hide internal directories.