Documentation ¶
Index ¶
- func AddImageProvider(id string, ip *ImageProvider) error
- func AddImportPath(path string)
- func Exec(url string) (retCode int, err error)
- func ExecExit(url string)
- func InitListModel(m interface{})
- func Must(err error)
- func Quit()
- func RunMain(f func())
- func SetApplicationName(name string)
- func SetApplicationVersion(version string)
- func SetContextProperty(name string, v interface{}) (err error)
- func SetIconThemeName(name string)
- func SetIconThemeSearchPaths(searchPaths ...string)
- func SetOrganizationName(name string)
- func SetSearchPaths(prefix string, searchPaths []string)
- type AspectRatioMode
- type Image
- func (img *Image) Copy(dst *Image, x, y, width, height int)
- func (img *Image) Free()
- func (img *Image) Height() (height int)
- func (img *Image) IsEmpty() (empty bool)
- func (img *Image) LoadFromData(data []byte) error
- func (img *Image) LoadFromFile(filename string) error
- func (img *Image) LoadFromGoImage(gimg image.Image) error
- func (img *Image) Reset()
- func (img *Image) SetTo(other *Image)
- func (img *Image) Width() (width int)
- type ImageItem
- type ImageProvider
- type ImageProviderCallback
- type ListModel
- func (lm *ListModel) Insert(row, count int, dataModifier func())
- func (lm *ListModel) Move(row, count, dstRow int, dataModifier func())
- func (lm *ListModel) Reload(row, count int, dataModifier func())
- func (lm *ListModel) Remove(row, count int, dataModifier func())
- func (lm *ListModel) Reset(dataModifier func())
- type ListModelHandler
- type Object
- type TransformationMode
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImageProvider ¶
func AddImageProvider(id string, ip *ImageProvider) error
AddImageProvider adds the image provider to the app engine for the given id.
func AddImportPath ¶ added in v0.0.4
func AddImportPath(path string)
AddImportPath adds the given import path to the app engine. Hint: Must be called within main thread.
func Exec ¶
Exec load the root QML file located at url, executes the application and returns the exit code. This method is blocking. Hint: Must be called within main thread.
func ExecExit ¶
func ExecExit(url string)
ExecExit load the root QML file located at url, executes the app, prints errors and exits the application with the specific exit code.
func InitListModel ¶
func InitListModel(m interface{})
func Must ¶
func Must(err error)
Must exits the application with a fatal log if the error is present.
func SetApplicationName ¶
func SetApplicationName(name string)
func SetApplicationVersion ¶ added in v0.0.15
func SetApplicationVersion(version string)
func SetContextProperty ¶
func SetIconThemeName ¶ added in v0.0.13
func SetIconThemeName(name string)
SetIconThemeName sets the current icon theme to name.
func SetIconThemeSearchPaths ¶ added in v0.0.13
func SetIconThemeSearchPaths(searchPaths ...string)
SetIconThemeSearchPaths sets the search paths for icon themes to paths.
func SetOrganizationName ¶
func SetOrganizationName(name string)
func SetSearchPaths ¶ added in v0.0.5
SetSearchPaths sets or replaces Qt's search paths for file names with the prefix prefix to searchPaths. To specify a prefix for a file name, prepend the prefix followed by a single colon (e.g., "images:undo.png", "xmldocs:books.xml"). prefix can only contain letters or numbers (e.g., it cannot contain a colon, nor a slash). Qt uses this search path to locate files with a known prefix. The search path entries are tested in order, starting with the first entry.
Types ¶
type AspectRatioMode ¶
type AspectRatioMode int
const ( IgnoreAspectRatio AspectRatioMode = C.GML_IGNORE_ASPECT_RATIO KeepAspectRatio AspectRatioMode = C.GML_KEEP_ASPECT_RATIO KeepAspectRatioByExpanding AspectRatioMode = C.GML_KEEP_ASPECT_RATIO_BY_EXPANDING )
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) LoadFromData ¶
func (*Image) LoadFromFile ¶
type ImageItem ¶
type ImageItem struct {
// contains filtered or unexported fields
}
func NewImageItem ¶
func (*ImageItem) Release ¶
func (i *ImageItem) Release()
Release this image item. Don't use it anymore after this call, because memory is freed.
func (*ImageItem) ResetImage ¶
func (i *ImageItem) ResetImage()
type ImageProvider ¶
type ImageProvider struct {
// contains filtered or unexported fields
}
func NewImageProvider ¶
func NewImageProvider( aspectRatioMode AspectRatioMode, transformMode TransformationMode, callback ImageProviderCallback, ) *ImageProvider
func (*ImageProvider) Free ¶
func (ip *ImageProvider) Free()
type ImageProviderCallback ¶
type ListModelHandler ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) GmlObject_GoPointer ¶
func (*Object) GmlObject_Pointer ¶
func (*Object) GmlObject_SetGoPointer ¶
func (*Object) GmlObject_SetPointer ¶
type TransformationMode ¶
type TransformationMode int
const ( FastTransformation TransformationMode = C.GML_FAST_TRANSFORMATION SmoothTransformation TransformationMode = C.GML_SMOOTH_TRANSFORMATION )
type Variant ¶
type Variant struct {
// contains filtered or unexported fields
}
TODO: think about adding a ticker routine calling gc... Hint: consider freeing a variant if not required anymore
to release memory as fast as possible. The go garbage collector does not know about the C++ data and might not trigger a gc cycle to release memory. Consider this if you store bigger data values into a variant.
func NewVariantFromPointer ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
json
json-iterator (https://github.com/json-iterator/go) seems to be even faster than easyjson (https://github.com/mailru/easyjson) and does not require code generation, but is in fact a 100% drop-in replacement for encoding/json.
|
json-iterator (https://github.com/json-iterator/go) seems to be even faster than easyjson (https://github.com/mailru/easyjson) and does not require code generation, but is in fact a 100% drop-in replacement for encoding/json. |
Package pointer is based on: https://github.com/desertbit/go-pointer
|
Package pointer is based on: https://github.com/desertbit/go-pointer |