Documentation ¶
Overview ¶
Package cli provides language bindings for Java and Objective-C (Swift).
Index ¶
- Constants
- type CallbackHandler
- type Context
- type ExecDelegate
- type FrontendDelegate
- type FrontendWrap
- type GeometryPrimitiveData
- type ImagePrimitiveData
- type NativeFeatureDelegate
- type NativeFeatureDelegateWrap
- type PrimitiveRendererDelegate
- type PrimitiveRendererDelegateWrap
- func (p *PrimitiveRendererDelegateWrap) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (p *PrimitiveRendererDelegateWrap) OnRender(ctx *rendering.PrimitiveRenderingContext)
- func (p *PrimitiveRendererDelegateWrap) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (p *PrimitiveRendererDelegateWrap) OnStart()
- func (p *PrimitiveRendererDelegateWrap) OnStop()
- type PrimitiveRenderingContext
- type RendererDelegate
- type ResourceManagerDelegate
- type ResourceManagerImpl
- type TextPrimitiveData
- type Vector2
- type Vector3
- type Vector4
Constants ¶
const ( PrimitiveEmpty = int(rendering.PrimitiveEmpty) PrimitivePoint = int(rendering.PrimitivePoint) PrimitiveLine = int(rendering.PrimitiveLine) PrimitiveRectangle = int(rendering.PrimitiveRectangle) PrimitiveEllipse = int(rendering.PrimitiveEllipse) PrimitiveTriangle = int(rendering.PrimitiveTriangle) PrimitiveText = int(rendering.PrimitiveText) PrimitiveImage = int(rendering.PrimitiveImage) PrimitiveBezier = int(rendering.PrimitiveBezier) PrimitiveGlyph = int(rendering.PrimitiveGlyph) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackHandler ¶
type CallbackHandler struct {
// contains filtered or unexported fields
}
func NewCallbackHandler ¶
func NewCallbackHandler(handler frontend.CallbackHandler) *CallbackHandler
func (*CallbackHandler) HandleCallback ¶
func (h *CallbackHandler) HandleCallback(code int, data string)
type ExecDelegate ¶
type ExecDelegate struct {
// contains filtered or unexported fields
}
func NewExecDelegate ¶
func NewExecDelegate(delegate func()) *ExecDelegate
func (*ExecDelegate) Execute ¶
func (e *ExecDelegate) Execute()
type FrontendDelegate ¶
type FrontendDelegate interface { Init() Run() Reset() GetAppData() []byte CommencePanic(reason, msg string) GetContext() *Context SetCallback(handler *CallbackHandler) ExecuteOnMainThread(delegate *ExecDelegate) ExecuteOnRenderingThread(delegate *ExecDelegate) }
type FrontendWrap ¶
type FrontendWrap struct { }
type GeometryPrimitiveData ¶
type ImagePrimitiveData ¶
type NativeFeatureDelegate ¶
NativeFeatureDelegate is a redeclaration of frontend.FeatureDelegate to be exported into the CLI. Can be used to implement a feature in native code. The OnInvoke method takes in and returns string instead of interface{} (unlike the original interface) due to the gobind type restrictions.
type NativeFeatureDelegateWrap ¶
type NativeFeatureDelegateWrap struct {
// contains filtered or unexported fields
}
NativeFeatureDelegateWrap is a wrap around NativeFeatureDelegate implementing the frontend.FeatureDelegate, so native feature can be passed to the engine.
func NewNativeFeatureDelegateWrap ¶
func NewNativeFeatureDelegateWrap(delegate NativeFeatureDelegate) *NativeFeatureDelegateWrap
NewNativeFeatureDelegateWrap creates a new instance of the NativeFeatureDelegateWrap with the specified NativeFeatureDelegate.
func (*NativeFeatureDelegateWrap) OnInvoke ¶
func (f *NativeFeatureDelegateWrap) OnInvoke(data interface{}) interface{}
OnInvoke implements the frontend.FeatureDelegate interface.
type PrimitiveRendererDelegate ¶
type PrimitiveRendererDelegate interface { OnStart() OnSetPrimitive(ctx *PrimitiveRenderingContext) OnRender(ctx *PrimitiveRenderingContext) OnRemovePrimitive(ctx *PrimitiveRenderingContext) OnStop() }
type PrimitiveRendererDelegateWrap ¶
type PrimitiveRendererDelegateWrap struct {
// contains filtered or unexported fields
}
func NewPrimitiveRendererDelegateWrap ¶
func NewPrimitiveRendererDelegateWrap(delegate PrimitiveRendererDelegate) *PrimitiveRendererDelegateWrap
func (*PrimitiveRendererDelegateWrap) OnRemovePrimitive ¶
func (p *PrimitiveRendererDelegateWrap) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*PrimitiveRendererDelegateWrap) OnRender ¶
func (p *PrimitiveRendererDelegateWrap) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (*PrimitiveRendererDelegateWrap) OnSetPrimitive ¶
func (p *PrimitiveRendererDelegateWrap) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*PrimitiveRendererDelegateWrap) OnStart ¶
func (p *PrimitiveRendererDelegateWrap) OnStart()
func (*PrimitiveRendererDelegateWrap) OnStop ¶
func (p *PrimitiveRendererDelegateWrap) OnStop()
type PrimitiveRenderingContext ¶
type PrimitiveRenderingContext struct { GeometryPrimitiveData *GeometryPrimitiveData ImagePrimitiveData *ImagePrimitiveData TextPrimitiveData *TextPrimitiveData PrimitiveKind int State interface{} Redraw bool PrimitiveId int }
type RendererDelegate ¶
type RendererDelegate interface { rendering.RendererDelegate }
type ResourceManagerDelegate ¶
type ResourceManagerImpl ¶
type ResourceManagerImpl struct { *frontend.ResourceManagerImpl // contains filtered or unexported fields }
func NewResourceManagerImpl ¶
func NewResourceManagerImpl(delegate ResourceManagerDelegate) *ResourceManagerImpl
type TextPrimitiveData ¶
type Vector3 ¶
type Vector3 struct {
X, Y, Z float32
}