logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wayland::server::global_t< resource >

Author

       Generated automatically by Doxygen for Wayland++ from the source code.

Version 1.0.0                                Wed May 1 2024 17:27:19    wayland::server::global_t<resource>(3)

Constructor & Destructor Documentation

template<classresource>wayland::server::global_t<resource>::global_t(display_t&display,unsignedintversion=resource::max_version)[inline]
       Create a global object

       Parametersdisplay Parent display object
           version Interface version

       Definition at line 650 of file wayland-server.hpp.

Detailed Description

template<classresource>
       class wayland::server::global_t< resource >"Global object.

       TemplateParametersresource Resource class whose interface shall be used

       Definition at line 625 of file wayland-server.hpp.

Member Function Documentation

template<typenameresource>boolwayland::server::global_base_t::has_interface()[inline],[inherited]
       Check for specific interface.

       TemplateParametersresource Resource class for comparison

       Returns
           true if the global has the same interface as the resource class

       Definition at line 614 of file wayland-server.hpp.

   template<classresource>std::function<void(client_t,resource)>&wayland::server::global_t<resource>::on_bind()[inline]
       Adds a listener for the bind signal.

       When a client binds to a global object, registered listeners will be notified, carrying the client_t
       object and the new resource_t object.

       Definition at line 661 of file wayland-server.hpp.

Name

       wayland::server::global_t< resource >

Synopsis

       #include <wayland-server.hpp>

       Inherits wayland::server::global_base_t.

   PublicMemberFunctionsglobal_t (display_t &display, unsigned int version=resource::max_version)
       std::function< void(client_t, resource)> & on_bind ()
       template<typename resource > bool has_interface ()

See Also