template <>

class WireServer

Defined at line 1548 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_fonts::Provider>|

and |::fidl::ServerEnd

<

::fuchsia_fonts::Provider>|).

Public Methods

void GetFont (::fuchsia_fonts::wire::ProviderGetFontRequest * request, GetFontCompleter::Sync & completer)

Deprecated. See `GetTypeface`.

Returns font that matches specified `request`.

void GetFamilyInfo (::fuchsia_fonts::wire::ProviderGetFamilyInfoRequest * request, GetFamilyInfoCompleter::Sync & completer)

Deprecated. See `GetFontFamilyInfo`.

Returns information for the specified font family or null if there is

no family with the specified name. This function respects family name

aliases and ignores case, so request for "robotoSLAB" will return

FamilyInfo for "Roboto Slab".

void GetTypeface (::fuchsia_fonts::wire::ProviderGetTypefaceRequest * request, GetTypefaceCompleter::Sync & completer)

Returns a typeface that matches the specified `request`, or an empty table if no matching

face is found. (The latter is more likely to happen if `TypefaceRequestFlags.EXACT_FAMILY`

is used to disable fallbacks.)

void GetFontFamilyInfo (::fuchsia_fonts::wire::ProviderGetFontFamilyInfoRequest * request, GetFontFamilyInfoCompleter::Sync & completer)

Returns information for the specified font family, or an empty table if there is no family

with the specified name.

This function respects family name aliases and ignores case. For example, "RobotoSlab" is an

alias for the canonical name "Roboto Slab". A request for "robotoSLAB" would return the

`FontFamilyInfo` for "Roboto Slab" due to the case-insensitivity and alias resolution.

void RegisterFontSetEventListener (::fuchsia_fonts::wire::ProviderRegisterFontSetEventListenerRequest * request, RegisterFontSetEventListenerCompleter::Sync & completer)

Register a listener to be notified when the set of available fonts or mappings has changed.

A client can register as many listeners as it wishes.

To unregister, close the channel.

void WireServer ()

Defined at line 1551 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 1552 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_messaging.h