Kodi Development 23.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
ContentGeometrySection

Detailed Description

One of the geometries a title was measured in.

Class: xbmc.ContentGeometrySection()

Carried by ContentGeometry for a title whose picture changes shape partway through. Obtained from ContentGeometry.getSections() rather than created.


v23 Python API changes
New class added.

Function Documentation

◆ getX()

getX ( )

Function: getX()


Get the left edge of the section, in display space.

Returns
[float] Left edge in display pixels

v23 Python API changes
New function added.

◆ getY()

getY ( )

Function: getY()


Get the top edge of the section, in display space.

Returns
[float] Top edge in display pixels

v23 Python API changes
New function added.

◆ getWidth()

getWidth ( )

Function: getWidth()


Get the width of the section, in display space.

Returns
[float] Width in display pixels

v23 Python API changes
New function added.

◆ getHeight()

getHeight ( )

Function: getHeight()


Get the height of the section, in display space.

Returns
[float] Height in display pixels

v23 Python API changes
New function added.

◆ getAspect()

getAspect ( )

Function: getAspect()


Get the ratio the section was shot at.

Returns
[float] Aspect ratio of the section

v23 Python API changes
New function added.

◆ getLabel()

getLabel ( )

Function: getLabel()


Get the section's ratio as Kodi writes it, e.g. 2.35.

Returns
[string] Aspect ratio label

v23 Python API changes
New function added.

◆ getName()

getName ( )

Function: getName()


Get what the section's ratio is called, e.g. Scope. Empty when it has no name. Not translated.

Returns
[string] Aspect ratio name

v23 Python API changes
New function added.