Blame uwac/protocols/fullscreen-shell.xml

Packit Service bb5c11
<protocol name="fullscreen_shell">
Packit Service bb5c11
  <interface name="_wl_fullscreen_shell" version="1">
Packit Service bb5c11
    <description summary="Displays a single surface per output">
Packit Service fa4841
      Displays a single surface per output.
Packit Service fa4841
Packit Service fa4841
      This interface provides a mechanism for a single client to display
Packit Service fa4841
      simple full-screen surfaces.  While there technically may be multiple
Packit Service fa4841
      clients bound to this interface, only one of those clients should be
Packit Service fa4841
      shown at a time.
Packit Service fa4841
Packit Service fa4841
      To present a surface, the client uses either the present_surface or
Packit Service fa4841
      present_surface_for_mode requests.  Presenting a surface takes effect
Packit Service fa4841
      on the next wl_surface.commit.  See the individual requests for
Packit Service fa4841
      details about scaling and mode switches.
Packit Service fa4841
Packit Service fa4841
      The client can have at most one surface per output at any time.
Packit Service bb5c11
      Requesting a surface be presented on an output that already has a
Packit Service fa4841
      surface replaces the previously presented surface.  Presenting a null
Packit Service fa4841
      surface removes its content and effectively disables the output.
Packit Service fa4841
      Exactly what happens when an output is "disabled" is
Packit Service fa4841
      compositor-specific.  The same surface may be presented on multiple
Packit Service fa4841
      outputs simultaneously.
Packit Service fa4841
Packit Service fa4841
      Once a surface is presented on an output, it stays on that output
Packit Service fa4841
      until either the client removes it or the compositor destroys the
Packit Service fa4841
      output.  This way, the client can update the output's contents by
Packit Service fa4841
      simply attaching a new buffer.
Packit Service fa4841
    </description>
Packit Service fa4841
Packit Service fa4841
    <request name="release" type="destructor">
Packit Service fa4841
      <description summary="release the wl_fullscreen_shell interface">
Packit Service bb5c11
	Release the binding from the wl_fullscreen_shell interface
Packit Service fa4841
Packit Service fa4841
	This destroys the server-side object and frees this binding.  If
Packit Service fa4841
	the client binds to wl_fullscreen_shell multiple times, it may wish
Packit Service fa4841
	to free some of those bindings.
Packit Service fa4841
      </description>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <enum name="capability">
Packit Service fa4841
      <description summary="capabilities advertised by the compositor">
Packit Service fa4841
	Various capabilities that can be advertised by the compositor.  They
Packit Service fa4841
	are advertised one-at-a-time when the wl_fullscreen_shell interface is
Packit Service fa4841
	bound.  See the wl_fullscreen_shell.capability event for more details.
Packit Service fa4841
Packit Service bb5c11
	ARBITRARY_MODE:
Packit Service fa4841
	This is a hint to the client that indicates that the compositor is
Packit Service fa4841
	capable of setting practically any mode on its outputs.  If this
Packit Service fa4841
	capability is provided, wl_fullscreen_shell.present_surface_for_mode
Packit Service fa4841
	will almost never fail and clients should feel free to set whatever
Packit Service fa4841
	mode they like.  If the compositor does not advertise this, it may
Packit Service fa4841
	still support some modes that are not advertised through wl_global.mode
Packit Service fa4841
	but it is less likely.
Packit Service fa4841
Packit Service fa4841
	CURSOR_PLANE:
Packit Service fa4841
	This is a hint to the client that indicates that the compositor can
Packit Service fa4841
	handle a cursor surface from the client without actually compositing.
Packit Service fa4841
	This may be because of a hardware cursor plane or some other mechanism.
Packit Service fa4841
	If the compositor does not advertise this capability then setting
Packit Service fa4841
	wl_pointer.cursor may degrade performance or be ignored entirely.  If
Packit Service fa4841
	CURSOR_PLANE is not advertised, it is recommended that the client draw
Packit Service fa4841
	its own cursor and set wl_pointer.cursor(NULL).
Packit Service fa4841
      </description>
Packit Service fa4841
      <entry name="arbitrary_modes" value="1" summary="compositor is capable of almost any output mode"/>
Packit Service fa4841
      <entry name="cursor_plane" value="2" summary="compositor has a separate cursor plane"/>
Packit Service fa4841
    </enum>
Packit Service fa4841
Packit Service fa4841
    <event name="capability">
Packit Service fa4841
      <description summary="advertises a capability of the compositor">
Packit Service fa4841
	Advertises a single capability of the compositor.
Packit Service fa4841
Packit Service fa4841
	When the wl_fullscreen_shell interface is bound, this event is emitted
Packit Service fa4841
	once for each capability advertised.  Valid capabilities are given by
Packit Service fa4841
	the wl_fullscreen_shell.capability enum.  If clients want to take
Packit Service fa4841
	advantage of any of these capabilities, they should use a
Packit Service fa4841
	wl_display.sync request immediately after binding to ensure that they
Packit Service fa4841
	receive all the capability events.
Packit Service fa4841
      </description>
Packit Service bb5c11
      <arg name="capabilty" type="uint"/>
Packit Service fa4841
    </event>
Packit Service fa4841
Packit Service fa4841
    <enum name="present_method">
Packit Service fa4841
      <description summary="different method to set the surface fullscreen">
Packit Service fa4841
	Hints to indicate to the compositor how to deal with a conflict
Packit Service fa4841
	between the dimensions of the surface and the dimensions of the
Packit Service fa4841
	output. The compositor is free to ignore this parameter.
Packit Service fa4841
      </description>
Packit Service fa4841
      <entry name="default" value="0" summary="no preference, apply default policy"/>
Packit Service fa4841
      <entry name="center" value="1" summary="center the surface on the output"/>
Packit Service fa4841
      <entry name="zoom" value="2" summary="scale the surface, preserving aspect ratio, to the largest size that will fit on the output" />
Packit Service fa4841
      <entry name="zoom_crop" value="3" summary="scale the surface, preserving aspect ratio, to fully fill the output cropping if needed" />
Packit Service fa4841
      <entry name="stretch" value="4" summary="scale the surface to the size of the output ignoring aspect ratio" />
Packit Service fa4841
    </enum>
Packit Service fa4841
Packit Service fa4841
    <request name="present_surface">
Packit Service fa4841
      <description summary="present surface for display">
Packit Service fa4841
	Present a surface on the given output.
Packit Service fa4841
Packit Service fa4841
	If the output is null, the compositor will present the surface on
Packit Service fa4841
	whatever display (or displays) it thinks best.  In particular, this
Packit Service fa4841
	may replace any or all surfaces currently presented so it should
Packit Service fa4841
	not be used in combination with placing surfaces on specific
Packit Service fa4841
	outputs.
Packit Service fa4841
Packit Service fa4841
	The method parameter is a hint to the compositor for how the surface
Packit Service fa4841
	is to be presented.  In particular, it tells the compositor how to
Packit Service fa4841
	handle a size mismatch between the presented surface and the
Packit Service fa4841
	output.  The compositor is free to ignore this parameter.
Packit Service fa4841
Packit Service fa4841
	The "zoom", "zoom_crop", and "stretch" methods imply a scaling
Packit Service fa4841
	operation on the surface.  This will override any kind of output
Packit Service fa4841
	scaling, so the buffer_scale property of the surface is effectively
Packit Service fa4841
	ignored.
Packit Service fa4841
      </description>
Packit Service fa4841
      <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
Packit Service fa4841
      <arg name="method" type="uint"/>
Packit Service fa4841
      <arg name="output" type="object" interface="wl_output" allow-null="true"/>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <request name="present_surface_for_mode">
Packit Service fa4841
      <description summary="present surface for display at a particular mode">
Packit Service fa4841
	Presents a surface on the given output for a particular mode.
Packit Service fa4841
Packit Service fa4841
	If the current size of the output differs from that of the surface,
Packit Service fa4841
	the compositor will attempt to change the size of the output to
Packit Service fa4841
	match the surface.  The result of the mode-switch operation will be
Packit Service fa4841
	returned via the provided wl_fullscreen_shell_mode_feedback object.
Packit Service fa4841
Packit Service fa4841
	If the current output mode matches the one requested or if the
Packit Service fa4841
	compositor successfully switches the mode to match the surface,
Packit Service fa4841
	then the mode_successful event will be sent and the output will
Packit Service fa4841
	contain the contents of the given surface.  If the compositor
Packit Service fa4841
	cannot match the output size to the surface size, the mode_failed
Packit Service fa4841
	will be sent and the output will contain the contents of the
Packit Service fa4841
	previously presented surface (if any).  If another surface is
Packit Service fa4841
	presented on the given output before either of these has a chance
Packit Service fa4841
	to happen, the present_cancelled event will be sent.
Packit Service fa4841
Packit Service fa4841
	Due to race conditions and other issues unknown to the client, no
Packit Service fa4841
	mode-switch operation is guaranteed to succeed.  However, if the
Packit Service fa4841
	mode is one advertised by wl_output.mode or if the compositor
Packit Service fa4841
	advertises the ARBITRARY_MODES capability, then the client should
Packit Service fa4841
	expect that the mode-switch operation will usually succeed.
Packit Service fa4841
Packit Service fa4841
	If the size of the presented surface changes, the resulting output
Packit Service fa4841
	is undefined.  The compositor may attempt to change the output mode
Packit Service fa4841
	to compensate.  However, there is no guarantee that a suitable mode
Packit Service fa4841
	will be found and the client has no way to be notified of success
Packit Service fa4841
	or failure.
Packit Service fa4841
Packit Service fa4841
	The framerate parameter specifies the desired framerate for the
Packit Service fa4841
	output in mHz.  The compositor is free to ignore this parameter.  A
Packit Service fa4841
	value of 0 indicates that the client has no preference.
Packit Service fa4841
Packit Service fa4841
	If the value of wl_output.scale differs from wl_surface.buffer_scale,
Packit Service fa4841
	then the compositor may choose a mode that matches either the buffer
Packit Service fa4841
	size or the surface size.  In either case, the surface will fill the
Packit Service fa4841
	output.
Packit Service fa4841
      </description>
Packit Service fa4841
      <arg name="surface" type="object" interface="wl_surface"/>
Packit Service fa4841
      <arg name="output" type="object" interface="wl_output"/>
Packit Service fa4841
      <arg name="framerate" type="int"/>
Packit Service bb5c11
      <arg name="feedback" type="new_id" interface="_wl_fullscreen_shell_mode_feedback"/>
Packit Service fa4841
    </request>
Packit Service fa4841
Packit Service fa4841
    <enum name="error">
Packit Service fa4841
      <description summary="wl_fullscreen_shell error values">
Packit Service bb5c11
	These errors can be emitted in response to wl_fullscreen_shell requests
Packit Service fa4841
      </description>
Packit Service fa4841
      <entry name="invalid_method" value="0" summary="present_method is not known"/>
Packit Service fa4841
    </enum>
Packit Service fa4841
  </interface>
Packit Service fa4841
Packit Service bb5c11
  <interface name="_wl_fullscreen_shell_mode_feedback" version="1">
Packit Service fa4841
    <event name="mode_successful">
Packit Service fa4841
      <description summary="mode switch succeeded">
Packit Service fa4841
	This event indicates that the attempted mode switch operation was
Packit Service fa4841
	successful.  A surface of the size requested in the mode switch
Packit Service fa4841
	will fill the output without scaling.
Packit Service fa4841
Packit Service fa4841
	Upon receiving this event, the client should destroy the
Packit Service fa4841
	wl_fullscreen_shell_mode_feedback object.
Packit Service fa4841
      </description>
Packit Service fa4841
    </event>
Packit Service fa4841
    <event name="mode_failed">
Packit Service fa4841
      <description summary="mode switch failed">
Packit Service fa4841
	This event indicates that the attempted mode switch operation
Packit Service bb5c11
	failed. This may be because the requested output mode is not
Packit Service fa4841
	possible or it may mean that the compositor does not want to allow it.
Packit Service fa4841
Packit Service fa4841
	Upon receiving this event, the client should destroy the
Packit Service fa4841
	wl_fullscreen_shell_mode_feedback object.
Packit Service fa4841
      </description>
Packit Service fa4841
    </event>
Packit Service fa4841
    <event name="present_cancelled">
Packit Service fa4841
      <description summary="mode switch cancelled">
Packit Service fa4841
	This event indicates that the attempted mode switch operation was
Packit Service fa4841
	cancelled.  Most likely this is because the client requested a
Packit Service fa4841
	second mode switch before the first one completed.
Packit Service fa4841
Packit Service fa4841
	Upon receiving this event, the client should destroy the
Packit Service fa4841
	wl_fullscreen_shell_mode_feedback object.
Packit Service fa4841
      </description>
Packit Service fa4841
    </event>
Packit Service fa4841
  </interface>
Packit Service fa4841
</protocol>