Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Base class for controls. More...
#include <GUIControl.h>
Public Member Functions | |
CGUIControl () | |
CGUIControl (int parentID, int controlID, float posX, float posY, float width, float height) | |
CGUIControl (const CGUIControl &) | |
virtual | ~CGUIControl (void) |
virtual CGUIControl * | Clone () const =0 |
virtual void | DoProcess (unsigned int currentTime, CDirtyRegionList &dirtyregions) |
virtual void | Process (unsigned int currentTime, CDirtyRegionList &dirtyregions) |
virtual void | DoRender () |
virtual void | Render () |
virtual void | RenderEx () |
bool | HasProcessed () const |
Returns whether or not we have processed. | |
virtual bool | OnAction (const CAction &action) |
virtual void | OnUp () |
virtual void | OnDown () |
virtual void | OnLeft () |
virtual void | OnRight () |
virtual bool | OnBack () |
virtual bool | OnInfo () |
virtual void | OnNextControl () |
virtual void | OnPrevControl () |
virtual void | OnFocus () |
virtual void | OnUnFocus () |
virtual EVENT_RESULT | SendMouseEvent (const CPoint &point, const KODI::MOUSE::CMouseEvent &event) |
React to a mouse event. | |
virtual EVENT_RESULT | OnMouseEvent (const CPoint &point, const KODI::MOUSE::CMouseEvent &event) |
Perform a mouse action. | |
virtual void | UnfocusFromPoint (const CPoint &point) |
Unfocus the control if the given point on screen is not within it's boundary. | |
virtual bool | HitTest (const CPoint &point) const |
Used to test whether the point is inside a control. | |
virtual bool | OnMessage (CGUIMessage &message) |
virtual int | GetID (void) const |
virtual void | SetID (int id) |
int | GetParentID () const |
virtual bool | HasFocus () const |
virtual void | AllocResources () |
virtual void | FreeResources (bool immediately=false) |
virtual void | DynamicResourceAlloc (bool bOnOff) |
virtual bool | IsDynamicallyAllocated () |
virtual bool | CanFocus () const |
virtual bool | IsVisible () const |
bool | IsVisibleFromSkin () const |
virtual bool | IsDisabled () const |
virtual void | SetPosition (float posX, float posY) |
virtual void | SetHitRect (const CRect &rect, const KODI::UTILS::COLOR::Color &color) |
virtual void | SetCamera (const CPoint &camera) |
virtual void | SetStereoFactor (const float &factor) |
bool | SetColorDiffuse (const KODI::GUILIB::GUIINFO::CGUIInfoColor &color) |
CPoint | GetRenderPosition () const |
virtual float | GetXPosition () const |
virtual float | GetYPosition () const |
virtual float | GetWidth () const |
virtual float | GetHeight () const |
virtual void | AssignDepth () |
void | MarkDirtyRegion (const unsigned int dirtyState=DIRTY_STATE_CONTROL) |
bool | IsControlDirty () const |
const CRect & | GetRenderRegion () const |
return the render region in screen coordinates of this control | |
virtual CRect | CalcRenderRegion () const |
calculate the render region in parentcontrol coordinates of this control Called during process to update m_renderRegion | |
void | SetActions (const ActionMap &actions) |
void | SetAction (int actionID, const CGUIAction &action, bool replace=true) |
Set actions to perform on navigation Navigations are set if replace is true or if there is no previously set action. | |
CGUIAction | GetAction (int actionID) const |
Get an action the control can be perform. | |
bool | Navigate (int direction) const |
Start navigating in given direction. | |
virtual void | SetFocus (bool focus) |
virtual void | SetWidth (float width) |
virtual void | SetHeight (float height) |
virtual void | SetVisible (bool bVisible, bool setVisState=false) |
void | SetVisibleCondition (const std::string &expression, const std::string &allowHiddenFocus="") |
bool | HasVisibleCondition () const |
void | SetEnableCondition (const std::string &expression) |
virtual void | UpdateVisibility (const CGUIListItem *item) |
virtual void | SetInitialVisibility () |
virtual void | SetEnabled (bool bEnable) |
virtual void | SetInvalid () |
virtual void | SetPulseOnSelect (bool pulse) |
virtual std::string | GetDescription () const |
virtual std::string | GetDescriptionByIndex (int index) const |
void | SetAnimations (const std::vector< CAnimation > &animations) |
const std::vector< CAnimation > & | GetAnimations () const |
virtual void | QueueAnimation (ANIMATION_TYPE anim) |
virtual bool | IsAnimating (ANIMATION_TYPE anim) |
virtual bool | HasAnimation (ANIMATION_TYPE anim) |
CAnimation * | GetAnimation (ANIMATION_TYPE type, bool checkConditions=true) |
virtual void | ResetAnimation (ANIMATION_TYPE type) |
virtual void | ResetAnimations () |
virtual void | UpdateInfo (const CGUIListItem *item=NULL) |
virtual void | SetPushUpdates (bool pushUpdates) |
virtual bool | IsGroup () const |
virtual bool | IsContainer () const |
virtual bool | GetCondition (int condition, int data) const |
void | SetParentControl (CGUIControl *control) |
CGUIControl * | GetParentControl (void) const |
virtual void | SaveStates (std::vector< CControlState > &states) |
virtual CGUIControl * | GetControl (int id, std::vector< CGUIControl * > *idCollector=nullptr) |
void | SetControlStats (GUICONTROLSTATS *controlStats) |
virtual void | UpdateControlStats () |
GUICONTROLTYPES | GetControlType () const |
bool | IsControlRenderable () |
Test whether the control is "drawable" (not a group or similar) | |
Protected Member Functions | |
virtual CPoint | GetPosition () const |
Return the coordinates of the top left of the control, in the control's parent coordinates. | |
virtual bool | OnMouseOver (const CPoint &point) |
Called when the mouse is over the control. Default implementation selects the control. | |
virtual bool | CanFocusFromPoint (const CPoint &point) const |
Test whether we can focus a control from a point on screen. | |
virtual bool | UpdateColors (const CGUIListItem *item) |
virtual bool | Animate (unsigned int currentTime) |
virtual bool | CheckAnimation (ANIMATION_TYPE animType) |
void | UpdateStates (ANIMATION_TYPE type, ANIMATION_PROCESS currentProcess, ANIMATION_STATE currentState) |
bool | SendWindowMessage (CGUIMessage &message) const |
Static Protected Attributes | |
static const unsigned int | DIRTY_STATE_CONTROL = 1 |
static const unsigned int | DIRTY_STATE_CHILD = 2 |
Base class for controls.
std::map<int, CGUIAction> CGUIControl::ActionMap |
Set actions to perform on navigation.
actions | ActionMap of actions |
CGUIControl::CGUIControl | ( | ) |
CGUIControl::CGUIControl | ( | int | parentID, |
int | controlID, | ||
float | posX, | ||
float | posY, | ||
float | width, | ||
float | height ) |
|
default |
|
virtualdefault |
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, CGUIWindow, GUIScrollBarControl, and PVR::CGUIEPGGridContainer.
Reimplemented in CGUIWindow.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIControlGroup, CGUIFadeLabelControl, CGUITextBox, and PVR::CGUIEPGGridContainer.
|
virtual |
calculate the render region in parentcontrol coordinates of this control Called during process to update m_renderRegion
Reimplemented in CGUIBorderedImage, CGUIButtonControl, CGUIImage, CGUILabelControl, CGUIListLabel, and CGUIRSSControl.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIControlGroup, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUITextBox, CGUIVideoControl, CGUIVisualisationControl, and KODI::RETRO::CGUIGameControl.
Test whether we can focus a control from a point on screen.
point | the location in vanilla skin coordinates from the upper left corner of the parent control. |
Reimplemented in CGUIRenderingControl, CGUIVideoControl, and CGUIVisualisationControl.
|
protectedvirtual |
Reimplemented in CGUIWindow.
|
pure virtual |
Implemented in CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIEditControl, CGUIFadeLabelControl, CGUIFixedListContainer, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWrappingListContainer, GUIScrollBarControl, KODI::GAME::CGUIGameController, KODI::GAME::CGUIGameControllerList, KODI::RETRO::CGUIGameControl, and PVR::CGUIEPGGridContainer.
|
virtual |
|
virtual |
Reimplemented in CGUIWindow, and CGUIWindowSettingsScreenCalibration.
Reimplemented in CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, CGUIWindow, and GUIScrollBarControl.
Reimplemented in CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, CGUIVisualisationControl, CGUIWindow, CGUIWindowSettingsScreenCalibration, GUIScrollBarControl, PVR::CGUIEPGGridContainer, and XBMCAddon::xbmcgui::WindowXMLInterceptor.
CGUIAction CGUIControl::GetAction | ( | int | actionID | ) | const |
Get an action the control can be perform.
actionID | The actionID to retrieve. |
CAnimation * CGUIControl::GetAnimation | ( | ANIMATION_TYPE | type, |
bool | checkConditions = true ) |
|
inline |
Reimplemented in CGUIBaseContainer, CGUIControlGroupList, CGUIPanelContainer, and CGUITextBox.
|
virtual |
Reimplemented in CGUIControlLookup.
|
inline |
|
inlinevirtual |
Reimplemented in CGUIBaseContainer, CGUIButtonControl, CGUIColorButtonControl, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, GUIScrollBarControl, and PVR::CGUIEPGGridContainer.
|
inlinevirtual |
Reimplemented in CGUIEditControl.
|
virtual |
Reimplemented in CGUIControlGroupList, CGUIDialogContextMenu, CGUISettingsSliderControl, CGUISpinControlEx, and CGUITextBox.
Reimplemented in CGUIWindowSettingsCategory.
|
inline |
|
inlineprotectedvirtual |
Return the coordinates of the top left of the control, in the control's parent coordinates.
Reimplemented in CGUIWindow.
CPoint CGUIControl::GetRenderPosition | ( | ) | const |
|
inline |
return the render region in screen coordinates of this control
|
virtual |
Reimplemented in CGUIButtonControl, CGUIControlGroupList, CGUIDialogContextMenu, CGUILabelControl, CGUISettingsSliderControl, CGUISpinControl, and CGUISpinControlEx.
|
virtual |
Reimplemented in CGUISettingsSliderControl, and CGUISpinControlEx.
|
virtual |
Reimplemented in CGUISettingsSliderControl, and CGUISpinControlEx.
|
virtual |
Reimplemented in CGUIControlGroup.
Reimplemented in CGUIControlGroup.
|
inline |
Returns whether or not we have processed.
|
inline |
Used to test whether the point is inside a control.
point | location to test |
Reimplemented in CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, and CGUISpinControlEx.
|
virtual |
Reimplemented in CGUIControlGroup, and CGUIWindow.
|
inlinevirtual |
Reimplemented in IGUIContainer.
|
inline |
bool CGUIControl::IsControlRenderable | ( | ) |
Test whether the control is "drawable" (not a group or similar)
|
virtual |
|
inlinevirtual |
Reimplemented in CGUIImage, and CGUIMultiImage.
|
inlinevirtual |
Reimplemented in CGUIControlGroup.
|
virtual |
Reimplemented in CGUISpinControl, CGUIWindow, and GUIScrollBarControl.
|
inline |
void CGUIControl::MarkDirtyRegion | ( | const unsigned int | dirtyState = DIRTY_STATE_CONTROL | ) |
Reimplemented in ADDON::CGUIAddonWindow, CGUIBaseContainer, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIDialogAddonInfo, CGUIDialogAddonSettings, CGUIDialogContextMenu, CGUIDialogFileBrowser, CGUIDialogFullScreenInfo, CGUIDialogGamepad, CGUIDialogKeyboardGeneric, CGUIDialogMusicInfo, CGUIDialogMusicOSD, CGUIDialogNumeric, CGUIDialogPictureInfo, CGUIDialogPlayerProcessInfo, CGUIDialogSettingsBase, CGUIDialogSlider, CGUIDialogSongInfo, CGUIDialogTeletext, CGUIDialogTextViewer, CGUIDialogVideoBookmarks, CGUIDialogVideoInfo, CGUIDialogVideoManager, CGUIDialogVideoOSD, CGUIDialogVolumeBar, CGUIEditControl, CGUIFixedListContainer, CGUIImage, CGUIListContainer, CGUIMediaWindow, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIRadioButtonControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUIToggleButtonControl, CGUIVisualisationControl, CGUIWindow, CGUIWindowFavourites, CGUIWindowFileManager, CGUIWindowFullScreen, CGUIWindowHome, CGUIWindowLoginScreen, CGUIWindowMusicBase, CGUIWindowMusicNav, CGUIWindowMusicPlayList, CGUIWindowMusicPlaylistEditor, CGUIWindowScreensaver, CGUIWindowSettingsCategory, CGUIWindowSettingsScreenCalibration, CGUIWindowSlideShow, CGUIWindowSplash, CGUIWindowStartup, CGUIWindowVideoBase, CGUIWindowVideoNav, CGUIWindowVideoPlaylist, CGUIWindowVisualisation, CGUIWrappingListContainer, GUIScrollBarControl, KODI::GAME::CDialogGameOSD, KODI::RETRO::CGameWindowFullScreen, PVR::CGUIDialogPVRChannelManager, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIDialogPVRGroupManager, PVR::CGUIDialogPVRItemsViewBase, PVR::CGUIEPGGridContainer, PVR::CGUIWindowPVRBase, PVR::CGUIWindowPVRChannelsBase, PVR::CGUIWindowPVRGuideBase, PVR::CGUIWindowPVRProvidersBase, PVR::CGUIWindowPVRRecordingsBase, PVR::CGUIWindowPVRSearchBase, PVR::CGUIWindowPVRTimersBase, XBMCAddon::xbmcgui::Interceptor< CGUIMediaWindow >, and XBMCAddon::xbmcgui::WindowXMLInterceptor.
|
virtual |
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIMoverControl, CGUIPanelContainer, CGUIResizeControl, and PVR::CGUIEPGGridContainer.
|
inlinevirtual |
Reimplemented in CGUIBaseContainer, CGUIButtonControl, and CGUIRSSControl.
|
virtual |
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIMoverControl, CGUIPanelContainer, CGUIResizeControl, CGUISpinControl, and PVR::CGUIEPGGridContainer.
|
virtual |
Reimplemented in ADDON::CGUIAddonWindow, CGUIBaseContainer, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIDialogAddonInfo, CGUIDialogAddonSettings, CGUIDialogBoxBase, CGUIDialogButtonMenu, CGUIDialogColorPicker, CGUIDialogContextMenu, CGUIDialogExtendedProgressBar, CGUIDialogFileBrowser, CGUIDialogGamepad, CGUIDialogKaiToast, CGUIDialogKeyboardGeneric, CGUIDialogLibExportSettings, CGUIDialogMediaFilter, CGUIDialogMediaSource, CGUIDialogMusicInfo, CGUIDialogMusicOSD, CGUIDialogNetworkSetup, CGUIDialogNumeric, CGUIDialogOK, CGUIDialogPlayEject, CGUIDialogProgress, CGUIDialogSeekBar, CGUIDialogSelect, CGUIDialogSettingsBase, CGUIDialogSlider, CGUIDialogSmartPlaylistEditor, CGUIDialogSmartPlaylistRule, CGUIDialogSongInfo, CGUIDialogSubMenu, CGUIDialogSubtitles, CGUIDialogSubtitleSettings, CGUIDialogTeletext, CGUIDialogTextViewer, CGUIDialogVideoBookmarks, CGUIDialogVideoInfo, CGUIDialogVideoManager, CGUIDialogVideoManagerExtras, CGUIDialogVideoManagerVersions, CGUIDialogVideoOSD, CGUIDialogVisualisationPresetList, CGUIDialogVolumeBar, CGUIDialogYesNo, CGUIEditControl, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIMediaWindow, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUISliderControl, CGUISpinControl, CGUITextBox, CGUIVisualisationControl, CGUIWindow, CGUIWindowAddonBrowser, CGUIWindowDebugInfo, CGUIWindowEventLog, CGUIWindowFavourites, CGUIWindowFileManager, CGUIWindowFullScreen, CGUIWindowHome, CGUIWindowLoginScreen, CGUIWindowMusicBase, CGUIWindowMusicNav, CGUIWindowMusicPlayList, CGUIWindowMusicPlaylistEditor, CGUIWindowPictures, CGUIWindowPrograms, CGUIWindowScreensaver, CGUIWindowSettingsCategory, CGUIWindowSettingsProfile, CGUIWindowSettingsScreenCalibration, CGUIWindowSlideShow, CGUIWindowSystemInfo, CGUIWindowVideoBase, CGUIWindowVideoNav, CGUIWindowVideoPlaylist, CGUIWindowVisualisation, CGUIWindowWeather, CGUIWrappingListContainer, GUIScrollBarControl, KODI::GAME::CDialogGameAdvancedSettings, KODI::GAME::CDialogGameSaves, KODI::GAME::CDialogGameVideoSelect, KODI::GAME::CDialogGameVolume, KODI::GAME::CDialogInGameSaves, KODI::GAME::CGUIAgentWindow, KODI::GAME::CGUIControllerWindow, KODI::GAME::CGUIPortWindow, KODI::GAME::CGUIWindowGames, KODI::RETRO::CGameWindowFullScreen, PERIPHERALS::CGUIDialogPeripherals, PERIPHERALS::CGUIDialogPeripheralSettings, PVR::CGUIDialogPVRChannelManager, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIDialogPVRGroupManager, PVR::CGUIDialogPVRGuideInfo, PVR::CGUIDialogPVRGuideSearch, PVR::CGUIDialogPVRRadioRDSInfo, PVR::CGUIDialogPVRRecordingInfo, PVR::CGUIEPGGridContainer, PVR::CGUIWindowPVRBase, PVR::CGUIWindowPVRChannelsBase, PVR::CGUIWindowPVRGuideBase, PVR::CGUIWindowPVRProvidersBase, PVR::CGUIWindowPVRRecordingsBase, PVR::CGUIWindowPVRSearchBase, PVR::CGUIWindowPVRTimersBase, and XBMCAddon::xbmcgui::Interceptor< CGUIMediaWindow >.
|
inlinevirtual |
Perform a mouse action.
Mouse actions are sent from the window to all controls, and each control can react based on the event and location of the actions.
point | the location in transformed skin coordinates from the upper left corner of the parent control. |
event | the mouse event to perform |
Reimplemented in CGUIBaseContainer, CGUIButtonControl, CGUIControlGroupList, CGUIDialogVideoOSD, CGUIMoverControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUIVideoControl, CGUIWindow, CGUIWindowFullScreen, CGUIWindowSlideShow, CGUIWindowVisualisation, GUIScrollBarControl, and PVR::CGUIEPGGridContainer.
Called when the mouse is over the control. Default implementation selects the control.
point | location of the mouse in transformed skin coordinates |
Reimplemented in CGUIBaseContainer, CGUISpinControl, and PVR::CGUIEPGGridContainer.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIMoverControl, CGUIPanelContainer, CGUIResizeControl, CGUISpinControl, and PVR::CGUIEPGGridContainer.
Reimplemented in CGUIBaseContainer, CGUIButtonControl, CGUIRSSControl, CGUISettingsSliderControl, and KODI::GAME::CGUIFeatureButton.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIMoverControl, CGUIPanelContainer, CGUIResizeControl, and PVR::CGUIEPGGridContainer.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialogBoxBase, CGUIDialogExtendedProgressBar, CGUIDialogKeyboardTouch, CGUIDialogProgress, CGUIDialogSubtitles, CGUIDialogTeletext, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWindowDebugInfo, CGUIWindowFullScreen, CGUIWindowPointer, CGUIWindowScreensaver, CGUIWindowScreensaverDim, CGUIWindowSlideShow, GUIScrollBarControl, KODI::RETRO::CGameWindowFullScreen, KODI::RETRO::CGUIGameControl, PVR::CGUIEPGGridContainer, and XBMCAddon::xbmcgui::WindowXMLInterceptor.
|
virtual |
Reimplemented in CGUIControlGroup.
|
inlinevirtual |
Reimplemented in ADDON::CGUIAddonWindow, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIDialogBusy, CGUIDialogBusyNoCancel, CGUIDialogTeletext, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWindowDebugInfo, CGUIWindowFullScreen, CGUIWindowScreensaver, CGUIWindowScreensaverDim, CGUIWindowSlideShow, CGUIWindowSplash, GUIScrollBarControl, KODI::RETRO::CGameWindowFullScreen, KODI::RETRO::CGUIGameControl, and PVR::CGUIEPGGridContainer.
|
inlinevirtual |
|
virtual |
Reimplemented in CGUIControlGroup, and CGUIListGroup.
|
virtual |
Reimplemented in CGUIControlGroup.
|
virtual |
Reimplemented in CGUIBaseContainer, and CGUIControlGroup.
|
virtual |
React to a mouse event.
Mouse events are sent from the window to all controls, and each control can react based on the event and location of the event.
point | the location in transformed skin coordinates from the upper left corner of the parent control. |
event | the mouse event to perform |
Reimplemented in CGUIControlGroup, and CGUIControlGroupList.
|
protected |
void CGUIControl::SetAction | ( | int | actionID, |
const CGUIAction & | action, | ||
bool | replace = true ) |
Set actions to perform on navigation Navigations are set if replace is true or if there is no previously set action.
actionID | id of the navigation action |
action | CGUIAction to set |
replace | Actions are set only if replace is true or there is no previously set action. Defaults to true |
void CGUIControl::SetAnimations | ( | const std::vector< CAnimation > & | animations | ) |
bool CGUIControl::SetColorDiffuse | ( | const KODI::GUILIB::GUIINFO::CGUIInfoColor & | color | ) |
|
inline |
void CGUIControl::SetEnableCondition | ( | const std::string & | expression | ) |
Reimplemented in CGUISettingsSliderControl, and CGUISpinControlEx.
Reimplemented in CGUIBaseContainer, CGUIEditControl, CGUIListLabel, and PVR::CGUIEPGGridContainer.
|
virtual |
|
virtual |
Reimplemented in CGUIWindow.
|
virtual |
Reimplemented in CGUIControlGroup, and CGUIWindow.
|
inlinevirtual |
Reimplemented in CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroupList, CGUIImage, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, GUIScrollBarControl, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIWindowPVRBase, and PVR::CGUIWindowPVRGuideBase.
|
inline |
|
virtual |
Reimplemented in CGUIButtonControl, CGUIColorButtonControl, CGUIDialogContextMenu, CGUIImage, CGUIMoverControl, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, and KODI::RETRO::CGUIGameControl.
|
virtual |
void CGUIControl::SetVisibleCondition | ( | const std::string & | expression, |
const std::string & | allowHiddenFocus = "" ) |
|
virtual |
Unfocus the control if the given point on screen is not within it's boundary.
point | the location in transformed skin coordinates from the upper left corner of the parent control. |
Reimplemented in CGUIControlGroup, and CGUIControlGroupList.
|
protectedvirtual |
Reimplemented in CGUIButtonControl, CGUIColorButtonControl, CGUIFadeLabelControl, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, CGUIRSSControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, and GUIScrollBarControl.
|
virtual |
Reimplemented in CGUIWindow.
|
inlinevirtual |
|
protected |
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIImage, CGUIListGroup, CGUIMultiImage, CGUIRenderingControl, CGUITextBox, and CGUIVisualisationControl.
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |