Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CONTEXTMENU Namespace Reference

Classes

struct  CAddonInfo
 
struct  CAddonSettings
 
struct  CAddRemoveFavourite
 
struct  CAlbumInfo
 
struct  CArtistInfo
 
struct  CCheckForUpdates
 
class  CChooseThumbnailForFavourite
 
struct  CDisableAddon
 
struct  CEjectDisk
 
struct  CEjectDrive
 
struct  CEnableAddon
 
struct  CEpisodeInfo
 
class  CFavouriteContextMenuAction
 
class  CFavouritesTargetBrowse
 
class  CFavouritesTargetContextMenu
 
class  CFavouritesTargetInfo
 
class  CFavouritesTargetPlay
 
class  CFavouritesTargetResume
 
class  CMoveDownFavourite
 
class  CMoveUpFavourite
 
struct  CMovieInfo
 
struct  CMovieSetInfo
 
struct  CMusicBrowse
 
struct  CMusicInfo
 
struct  CMusicPlay
 
struct  CMusicPlayNext
 
struct  CMusicPlayUsing
 
struct  CMusicQueue
 
struct  CMusicVideoInfo
 
class  CRemoveFavourite
 
class  CRenameFavourite
 
struct  CSeasonInfo
 
struct  CSongInfo
 
struct  CTVShowInfo
 
struct  CVideoBrowse
 
struct  CVideoChooseVersion
 
class  CVideoInfo
 
struct  CVideoMarkUnWatched
 
struct  CVideoMarkWatched
 
struct  CVideoPlay
 
struct  CVideoPlayAndQueue
 
struct  CVideoPlayNext
 
struct  CVideoPlayUsing
 
struct  CVideoPlayVersionUsing
 
struct  CVideoQueue
 
struct  CVideoRemoveResumePoint
 
struct  CVideoResume
 

Functions

bool HasAnyMenuItemsFor (const std::shared_ptr< CFileItem > &fileItem, const CContextMenuItem &root)
 Checks whether any context menu items are available for a file item.
 
bool ShowFor (const std::shared_ptr< CFileItem > &fileItem, const CContextMenuItem &root)
 Starts the context menu loop for a file item.
 
bool LoopFrom (const IContextMenuItem &menu, const std::shared_ptr< CFileItem > &fileItem)
 Shortcut for continuing the context menu loop from an existing menu item.
 

Function Documentation

◆ HasAnyMenuItemsFor()

bool CONTEXTMENU::HasAnyMenuItemsFor ( const std::shared_ptr< CFileItem > & fileItem,
const CContextMenuItem & root )

Checks whether any context menu items are available for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
true if any items are present, false otherwise

◆ LoopFrom()

bool CONTEXTMENU::LoopFrom ( const IContextMenuItem & menu,
const std::shared_ptr< CFileItem > & fileItem )

Shortcut for continuing the context menu loop from an existing menu item.

Parameters
menuthe menu item
fileItemthe file item
Returns
true on success, false otherwise

◆ ShowFor()

bool CONTEXTMENU::ShowFor ( const std::shared_ptr< CFileItem > & fileItem,
const CContextMenuItem & root )

Starts the context menu loop for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
true on success, false otherwise