toast

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackClient

type CallbackClient struct {
	// contains filtered or unexported fields
}

CallbackClient wraps the gRPC CallbackService client.

func NewCallbackClient

func NewCallbackClient(cc grpc.ClientConnInterface) *CallbackClient

NewCallbackClient creates a new Callback client.

func (*CallbackClient) OnToastHidden

func (c *CallbackClient) OnToastHidden(ctx context.Context) error

OnToastHidden calls the OnToastHidden RPC.

func (*CallbackClient) OnToastShown

func (c *CallbackClient) OnToastShown(ctx context.Context) error

OnToastShown calls the OnToastShown RPC.

type ToastClient

type ToastClient struct {
	// contains filtered or unexported fields
}

ToastClient wraps the gRPC ToastService client.

func NewToastClient

func NewToastClient(cc grpc.ClientConnInterface) *ToastClient

NewToastClient creates a new Toast client.

func (*ToastClient) AddCallback

func (c *ToastClient) AddCallback(ctx context.Context, handle int64, arg0 int64) error

AddCallback calls the AddCallback RPC.

func (*ToastClient) Cancel

func (c *ToastClient) Cancel(ctx context.Context, handle int64) error

Cancel calls the Cancel RPC.

func (*ToastClient) GetDuration

func (c *ToastClient) GetDuration(ctx context.Context, handle int64) (int32, error)

GetDuration calls the GetDuration RPC.

func (*ToastClient) GetGravity

func (c *ToastClient) GetGravity(ctx context.Context, handle int64) (int32, error)

GetGravity calls the GetGravity RPC.

func (*ToastClient) GetHorizontalMargin

func (c *ToastClient) GetHorizontalMargin(ctx context.Context, handle int64) (float32, error)

GetHorizontalMargin calls the GetHorizontalMargin RPC.

func (*ToastClient) GetVerticalMargin

func (c *ToastClient) GetVerticalMargin(ctx context.Context, handle int64) (float32, error)

GetVerticalMargin calls the GetVerticalMargin RPC.

func (*ToastClient) GetView

func (c *ToastClient) GetView(ctx context.Context, handle int64) (int64, error)

GetView calls the GetView RPC.

func (*ToastClient) GetXOffset

func (c *ToastClient) GetXOffset(ctx context.Context, handle int64) (int32, error)

GetXOffset calls the GetXOffset RPC.

func (*ToastClient) GetYOffset

func (c *ToastClient) GetYOffset(ctx context.Context, handle int64) (int32, error)

GetYOffset calls the GetYOffset RPC.

func (*ToastClient) MakeText3

func (c *ToastClient) MakeText3(ctx context.Context, handle int64, arg0 int64, arg1 int32, arg2 int32) (int64, error)

MakeText3 calls the MakeText3 RPC.

func (*ToastClient) MakeText3_1

func (c *ToastClient) MakeText3_1(ctx context.Context, handle int64, arg0 int64, arg1 string, arg2 int32) (int64, error)

MakeText3_1 calls the MakeText3_1 RPC.

func (*ToastClient) RemoveCallback

func (c *ToastClient) RemoveCallback(ctx context.Context, handle int64, arg0 int64) error

RemoveCallback calls the RemoveCallback RPC.

func (*ToastClient) SetDuration

func (c *ToastClient) SetDuration(ctx context.Context, handle int64, arg0 int32) error

SetDuration calls the SetDuration RPC.

func (*ToastClient) SetGravity

func (c *ToastClient) SetGravity(ctx context.Context, handle int64, arg0 int32, arg1 int32, arg2 int32) error

SetGravity calls the SetGravity RPC.

func (*ToastClient) SetMargin

func (c *ToastClient) SetMargin(ctx context.Context, handle int64, arg0 float32, arg1 float32) error

SetMargin calls the SetMargin RPC.

func (*ToastClient) SetText1

func (c *ToastClient) SetText1(ctx context.Context, handle int64, arg0 int32) error

SetText1 calls the SetText1 RPC.

func (*ToastClient) SetText1_1

func (c *ToastClient) SetText1_1(ctx context.Context, handle int64, arg0 string) error

SetText1_1 calls the SetText1_1 RPC.

func (*ToastClient) SetView

func (c *ToastClient) SetView(ctx context.Context, handle int64, arg0 int64) error

SetView calls the SetView RPC.

func (*ToastClient) Show

func (c *ToastClient) Show(ctx context.Context, handle int64) error

Show calls the Show RPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL