Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
ContentGeometrySection

One of the geometries a title was measured in. More...

Classes

class  XBMCAddon::xbmc::ContentGeometrySection
 

Functions

 XBMCAddon::xbmc::ContentGeometrySection::getX ()
 

Function: getX()


Get the left edge of the section, in display space.
 
 XBMCAddon::xbmc::ContentGeometrySection::getY ()
 

Function: getY()


Get the top edge of the section, in display space.
 
 XBMCAddon::xbmc::ContentGeometrySection::getWidth ()
 

Function: getWidth()


Get the width of the section, in display space.
 
 XBMCAddon::xbmc::ContentGeometrySection::getHeight ()
 

Function: getHeight()


Get the height of the section, in display space.
 
 XBMCAddon::xbmc::ContentGeometrySection::getAspect ()
 

Function: getAspect()


Get the ratio the section was shot at.
 
 XBMCAddon::xbmc::ContentGeometrySection::getLabel ()
 

Function: getLabel()


Get the section's ratio as Kodi writes it, e.g. 2.35.
 
 XBMCAddon::xbmc::ContentGeometrySection::getName ()
 

Function: getName()


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

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

◆ getAspect()

XBMCAddon::xbmc::ContentGeometrySection::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.

◆ getHeight()

XBMCAddon::xbmc::ContentGeometrySection::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.

◆ getLabel()

XBMCAddon::xbmc::ContentGeometrySection::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()

XBMCAddon::xbmc::ContentGeometrySection::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.

◆ getWidth()

XBMCAddon::xbmc::ContentGeometrySection::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.

◆ getX()

XBMCAddon::xbmc::ContentGeometrySection::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()

XBMCAddon::xbmc::ContentGeometrySection::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.