accessibility

package
v0.0.0-...-052b00e Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package accessibility implements the Accessibility service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSettingsSubset

type GSettingsSubset interface {
	IsWritable(key string) bool
	// contains filtered or unexported methods
}

GSettingsSubset is a minimal subset of the GSettings interface to make for easier mocking.

type Option

type Option func(*Service) error

Option is a functional option to set the DBus objects in tests.

type Service

type Service struct {
	pb.UnimplementedAccessibilityServiceServer
	// contains filtered or unexported fields
}

Service is the implementation of the Keyboard service.

func New

func New(opts ...Option) (*Service, error)

New returns a new instance of the Accessibility service.

func (*Service) DisableDesktopZoom

func (s *Service) DisableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableDesktopZoom disables desktop zoom.

func (*Service) DisableHighContrast

func (s *Service) DisableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableHighContrast disables high contrast.

func (*Service) DisableLargeText

func (s *Service) DisableLargeText(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableLargeText disables large text.

func (*Service) DisableMouseKeys

func (s *Service) DisableMouseKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableMouseKeys disables mouse keys.

func (*Service) DisableReducedMotion

func (s *Service) DisableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableReducedMotion disables reduced motion.

func (*Service) DisableScreenKeyboard

func (s *Service) DisableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableScreenKeyboard disables the screen keyboard.

func (*Service) DisableScreenReader

func (s *Service) DisableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableScreenReader disables screen reader.

func (*Service) DisableSlowKeys

func (s *Service) DisableSlowKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableSlowKeys disables slow keys.

func (*Service) DisableStickyKeys

func (s *Service) DisableStickyKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableStickyKeys disables sticky keys.

func (*Service) DisableVisualAlerts

func (s *Service) DisableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

DisableVisualAlerts disables visual alerts.

func (*Service) EnableDesktopZoom

func (s *Service) EnableDesktopZoom(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableDesktopZoom enables desktop zoom.

func (*Service) EnableHighContrast

func (s *Service) EnableHighContrast(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableHighContrast enables high contrast.

func (*Service) EnableLargeText

func (s *Service) EnableLargeText(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableLargeText enables large text.

func (*Service) EnableMouseKeys

func (s *Service) EnableMouseKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableMouseKeys enables mouse keys.

func (*Service) EnableReducedMotion

func (s *Service) EnableReducedMotion(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableReducedMotion enables reduced motion.

func (*Service) EnableScreenKeyboard

func (s *Service) EnableScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableScreenKeyboard enables the screen keyboard.

func (*Service) EnableScreenReader

func (s *Service) EnableScreenReader(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableScreenReader enables screen reader.

func (*Service) EnableSlowKeys

func (s *Service) EnableSlowKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableSlowKeys enables slow keys.

func (*Service) EnableStickyKeys

func (s *Service) EnableStickyKeys(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableStickyKeys enables sticky keys.

func (*Service) EnableVisualAlerts

func (s *Service) EnableVisualAlerts(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

EnableVisualAlerts enables visual alerts.

func (*Service) GetDesktopZoom

func (s *Service) GetDesktopZoom(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetDesktopZoom returns the current state of desktop zoom.

func (*Service) GetHighContrast

func (s *Service) GetHighContrast(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetHighContrast returns the current state of high contrast.

func (*Service) GetLargeText

func (s *Service) GetLargeText(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetLargeText returns the current state of large text.

func (*Service) GetMouseKeys

func (s *Service) GetMouseKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetMouseKeys returns the current state of mouse keys.

func (*Service) GetReducedMotion

func (s *Service) GetReducedMotion(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetReducedMotion returns the current state of reduced motion.

func (*Service) GetScreenKeyboard

func (s *Service) GetScreenKeyboard(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetScreenKeyboard returns the current state of the screen keyboard.

func (*Service) GetScreenReader

func (s *Service) GetScreenReader(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetScreenReader returns the current state of screen reader.

func (*Service) GetSlowKeys

func (s *Service) GetSlowKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetSlowKeys returns the current state of slow keys.

func (*Service) GetStickyKeys

func (s *Service) GetStickyKeys(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetStickyKeys returns the current state of sticky keys.

func (*Service) GetVisualAlerts

func (s *Service) GetVisualAlerts(ctx context.Context, req *emptypb.Empty) (*wrapperspb.BoolValue, error)

GetVisualAlerts returns the current state of visual alerts.

Jump to

Keyboard shortcuts

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