Documentation ¶
Index ¶
- Constants
- func FileEqual(filename1, filename2 string) bool
- func GetCurrentPath() string
- func LogErrors() bool
- func NewError(message string) error
- func PanicOnError() bool
- func PathOrFileIsExist(pathOrFile string) (bool, error)
- func ReplaceFileSuffix(filename, newSuffix string) string
- func SetLogErrors(v bool)
- func SetPanicOnError(v bool)
- type ArrowStyle
- type Color
- type ColorPool
- type ControlBase
- type Error
- type Font
- type Handler
- type IBrush
- type ICanvas
- type IControlBase
- type IGraphic
- type IHandler
- type IImage
- type IObject
- type IPen
- type LineGraphic
- type LineStyle
- type LineType
- type Object
- func (this *Object) BaseObjectClassName() string
- func (this *Object) GetHandler() IHandler
- func (this *Object) GetId() int
- func (this *Object) GetName() string
- func (this *Object) GetObjectClass() string
- func (this *Object) GetRect() Rectangle
- func (this *Object) IsClass(name string) bool
- func (this *Object) IsThisObject(id int, name string) bool
- func (this *Object) LoadAttributesInfo() bool
- func (this *Object) LoadFromXml(decoder xml.Decoder, start *xml.StartElement, loadSubControl bool) bool
- func (this *Object) OnBaseMessage(id, msg int, wParam, lParam int) int
- func (this *Object) OnControlUpdate(rect *Rectangle, isUpdate bool, controlBase IControlBase) int
- func (this *Object) OnInit() bool
- func (this *Object) RegisterHandler(handler IHandler) bool
- func (this *Object) SetAttribute(name string, value string, isLoading bool) int
- func (this *Object) SetHandler(handler IHandler)
- func (this *Object) SetName(name string)
- func (this *Object) SetRect(rect *Rectangle)
- type ObjectAttributeInfo
- type PenStyle
- type Point
- type RectangStyle
- type Rectangle
- type RectangleGraphic
- type Size
- type System
- func (this *System) GetCurrentLanguage() int
- func (this *System) GetExePath() string
- func (this *System) GetLanguage() string
- func (this *System) GetRootPath() string
- func (this *System) GetSkinPath() string
- func (this *System) GetXmlPath() string
- func (this *System) SetCurrentLanguage(languaeId int)
- func (this *System) SetRootPath(rootPath string)
- type Text
Constants ¶
View Source
const ( FONT_STYLE_NORMAL = 0x00 FONT_STYLE_BOLD = 0x01 FONT_STYLE_ITALIC = 0x02 FONT_STYLE_UNDER_LINE = 0x04 FONT_STYLE_STRIKE_OUT = 0x08 )
View Source
const ( OBJ_ATTR_TYPE_INT = 0 OBJ_ATTR_TYPE_BOOL = 1 OBJ_ATTR_TYPE_UINT = 2 )
View Source
const ( PEN_TYPE_COSMETIC = 0 PEN_TYPE_GEOMETRIC = 1 )
Pen types
View Source
const ( PEN_SOLID = 0 PEN_DASH = 1 PEN_DOT = 2 PEN_DASH_DOT = 3 PEN_DASH_DOT_DOT = 4 PEN_NULL = 5 )
Pen styles
View Source
const ( PEN_CAP_ROUND = 0 PEN_CAP_SQUARE = 1 PEN_CAP_FLAT = 2 )
Pen cap styles
View Source
const ( PEN_JOIN_ROUND = 0 PEN_JOIN_BEVEL = 1 PEN_JOIN_MITER = 2 )
Pen join styles
View Source
const ( LANGUAGE_CHINESE_ENGLISH = 0x0409 LANGUAGE_CHINESE_SIMPLE = 0x0804 LANGUAGE_CHINESE_TW = 0x0404 LANGUAGE_CHINESE_HK = 0x0C04 LANGUAGE_CHINESE_SGP = 0x1004 )
Variables ¶
This section is empty.
Functions ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func PanicOnError ¶
func PanicOnError() bool
func PathOrFileIsExist ¶
func ReplaceFileSuffix ¶
func SetLogErrors ¶
func SetLogErrors(v bool)
func SetPanicOnError ¶
func SetPanicOnError(v bool)
Types ¶
type ArrowStyle ¶
type ArrowStyle struct {
// contains filtered or unexported fields
}
type ColorPool ¶
type ColorPool struct {
// contains filtered or unexported fields
}
func NewColorPool ¶
func NewColorPool() *ColorPool
type ControlBase ¶
type ControlBase struct {
// contains filtered or unexported fields
}
func (*ControlBase) SetVisible ¶
func (this *ControlBase) SetVisible(visible bool)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetControlById ¶
func (this *Handler) GetControlById(id int) IControlBase
func (*Handler) GetControlByName ¶
func (this *Handler) GetControlByName(name string) IControlBase
func (*Handler) SetVisible ¶
type ICanvas ¶
type ICanvas interface { DrawLine(pen IPen, from, to Point) error DrawRectangle(pen IPen, rect Rectangle) error FillRectangle(brush IBrush, rect Rectangle) error DrawEllipse(pen IPen, rect Rectangle) error FillEllipse(brush IBrush, rect Rectangle) error DrawCircle(pen IPen, center Point, radius int) error FillCircle(brush IBrush, center Point, radius int) error //DrawImage(image Image, location Point) error //PaintImage(image Image, f func() error) error Dispose() }
type IControlBase ¶
type IControlBase interface { IObject }
type IObject ¶
type IObject interface { GetId() int GetName() string SetName(name string) IsClass(name string) bool IsThisObject(id int, name string) bool GetObjectClass() string BaseObjectClassName() string RegisterHandler(handler IHandler) bool SetHandler(handler IHandler) GetHandler() IHandler OnBaseMessage(id, msg int, wParam, lParam int) int OnControlUpdate(rect *Rectangle, isUpdate bool, controlBase IControlBase) int SetAttribute(name string, value string, isLoading bool) int LoadAttributesInfo() bool LoadFromXml(decoder xml.Decoder, start *xml.StartElement, loadSubControl bool) bool OnInit() bool SetRect(rect *Rectangle) GetRect() Rectangle }
type LineGraphic ¶
type LineGraphic struct {
// contains filtered or unexported fields
}
func (*LineGraphic) Add ¶
func (this *LineGraphic) Add(child IGraphic) error
func (*LineGraphic) Draw ¶
func (this *LineGraphic) Draw(canvas ICanvas) error
func (*LineGraphic) Level ¶
func (this *LineGraphic) Level(child IGraphic) int
func (*LineGraphic) Parent ¶
func (this *LineGraphic) Parent() IGraphic
func (*LineGraphic) Remove ¶
func (this *LineGraphic) Remove(child IGraphic) error
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) BaseObjectClassName ¶
func (*Object) GetHandler ¶
func (*Object) GetObjectClass ¶
func (*Object) LoadAttributesInfo ¶
func (*Object) LoadFromXml ¶
func (*Object) OnBaseMessage ¶
func (*Object) OnControlUpdate ¶
func (this *Object) OnControlUpdate(rect *Rectangle, isUpdate bool, controlBase IControlBase) int
func (*Object) RegisterHandler ¶
func (*Object) SetAttribute ¶
func (*Object) SetHandler ¶
type ObjectAttributeInfo ¶
type ObjectAttributeInfo struct {
// contains filtered or unexported fields
}
type RectangStyle ¶
type RectangleGraphic ¶
type RectangleGraphic struct { Style RectangStyle // contains filtered or unexported fields }
func (*RectangleGraphic) Add ¶
func (this *RectangleGraphic) Add(child IGraphic) error
func (*RectangleGraphic) Draw ¶
func (this *RectangleGraphic) Draw(canvas ICanvas) error
func (*RectangleGraphic) Level ¶
func (this *RectangleGraphic) Level(child IGraphic) int
func (*RectangleGraphic) Parent ¶
func (this *RectangleGraphic) Parent() IGraphic
func (*RectangleGraphic) Remove ¶
func (this *RectangleGraphic) Remove(child IGraphic) error
type System ¶
type System struct {
// contains filtered or unexported fields
}
var SystemInstace *System
func (*System) GetCurrentLanguage ¶
func (*System) GetExePath ¶
func (*System) GetLanguage ¶
func (*System) GetRootPath ¶
func (*System) GetSkinPath ¶
func (*System) GetXmlPath ¶
func (*System) SetCurrentLanguage ¶
func (*System) SetRootPath ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.