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 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.
typedef 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, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, CGUIWindow, 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 KODI::RETRO::CGUIGameControl, CGUIBaseContainer, CGUIControlGroup, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUITextBox, CGUIVideoControl, and CGUIVisualisationControl.
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 KODI::RETRO::CGUIGameControl, KODI::GAME::CGUIGameController, KODI::GAME::CGUIGameControllerList, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIEditControl, CGUIFadeLabelControl, CGUIFixedListContainer, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWrappingListContainer, and PVR::CGUIEPGGridContainer.
|
virtual |
|
virtual |
Reimplemented in CGUIWindow, and CGUIWindowSettingsScreenCalibration.
Reimplemented in CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, and CGUIWindow.
Reimplemented in CGUIRangesControl, CGUIWindow, CGUIWindowSettingsScreenCalibration, PVR::CGUIEPGGridContainer, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIRenderingControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, and CGUIVisualisationControl.
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, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, and PVR::CGUIEPGGridContainer.
|
inlinevirtual |
Reimplemented in CGUIEditControl.
|
virtual |
Reimplemented in CGUIDialogContextMenu, CGUIControlGroupList, 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 CGUIDialogContextMenu, CGUIButtonControl, CGUIControlGroupList, 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 GUIScrollBarControl, CGUISpinControl, and CGUIWindow.
|
inline |
void CGUIControl::MarkDirtyRegion | ( | const unsigned int | dirtyState = DIRTY_STATE_CONTROL | ) |
Reimplemented in CGUIDialogAddonInfo, CGUIDialogAddonSettings, ADDON::CGUIAddonWindow, KODI::RETRO::CGameWindowFullScreen, CGUIDialogContextMenu, CGUIDialogFileBrowser, CGUIDialogGamepad, CGUIDialogKeyboardGeneric, CGUIDialogNumeric, CGUIDialogPlayerProcessInfo, CGUIDialogSlider, CGUIDialogTextViewer, CGUIDialogVolumeBar, CGUIWindowFavourites, KODI::GAME::CDialogGameOSD, CGUIBaseContainer, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIEditControl, CGUIFixedListContainer, CGUIImage, CGUIListContainer, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIRadioButtonControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUIToggleButtonControl, CGUIVisualisationControl, CGUIWindow, CGUIWrappingListContainer, XBMCAddon::xbmcgui::Interceptor< CGUIMediaWindow >, CGUIDialogMusicInfo, CGUIDialogMusicOSD, CGUIDialogSongInfo, CGUIWindowMusicBase, CGUIWindowMusicNav, CGUIWindowMusicPlayList, CGUIWindowMusicPlaylistEditor, CGUIWindowVisualisation, CGUIDialogPictureInfo, CGUIWindowSlideShow, PVR::CGUIDialogPVRChannelManager, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIDialogPVRGroupManager, PVR::CGUIDialogPVRItemsViewBase, PVR::CGUIEPGGridContainer, PVR::CGUIWindowPVRBase, PVR::CGUIWindowPVRChannelsBase, PVR::CGUIWindowPVRGuideBase, PVR::CGUIWindowPVRRecordingsBase, PVR::CGUIWindowPVRSearchBase, PVR::CGUIWindowPVRTimersBase, CGUIDialogSettingsBase, CGUIWindowSettingsCategory, CGUIWindowSettingsScreenCalibration, CGUIDialogFullScreenInfo, CGUIDialogTeletext, CGUIDialogVideoBookmarks, CGUIDialogVideoInfo, CGUIDialogVideoManager, CGUIDialogVideoOSD, CGUIWindowFullScreen, CGUIWindowVideoBase, CGUIWindowVideoNav, CGUIWindowVideoPlaylist, CGUIMediaWindow, CGUIWindowFileManager, CGUIWindowHome, CGUIWindowLoginScreen, CGUIWindowScreensaver, CGUIWindowSplash, and CGUIWindowStartup.
|
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 CGUIDialogAddonInfo, CGUIDialogAddonSettings, CGUIWindowAddonBrowser, ADDON::CGUIAddonWindow, KODI::RETRO::CGameWindowFullScreen, CGUIDialogBoxBase, CGUIDialogButtonMenu, CGUIDialogColorPicker, CGUIDialogContextMenu, CGUIDialogExtendedProgressBar, CGUIDialogFileBrowser, CGUIDialogGamepad, CGUIDialogKaiToast, CGUIDialogKeyboardGeneric, CGUIDialogMediaFilter, CGUIDialogMediaSource, CGUIDialogNumeric, CGUIDialogOK, CGUIDialogPlayEject, CGUIDialogProgress, CGUIDialogSeekBar, CGUIDialogSelect, CGUIDialogSlider, CGUIDialogSmartPlaylistEditor, CGUIDialogSmartPlaylistRule, CGUIDialogSubMenu, CGUIDialogTextViewer, CGUIDialogVolumeBar, CGUIDialogYesNo, CGUIWindowEventLog, CGUIWindowFavourites, KODI::GAME::CGUIAgentWindow, KODI::GAME::CGUIControllerWindow, KODI::GAME::CDialogGameAdvancedSettings, KODI::GAME::CDialogGameSaves, KODI::GAME::CDialogGameVideoSelect, KODI::GAME::CDialogGameVolume, KODI::GAME::CDialogInGameSaves, KODI::GAME::CGUIPortWindow, KODI::GAME::CGUIWindowGames, CGUIBaseContainer, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIEditControl, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, GUIScrollBarControl, CGUISliderControl, CGUISpinControl, CGUITextBox, CGUIVisualisationControl, CGUIWindow, CGUIWrappingListContainer, XBMCAddon::xbmcgui::Interceptor< CGUIMediaWindow >, CGUIDialogMusicInfo, CGUIDialogMusicOSD, CGUIDialogSongInfo, CGUIDialogVisualisationPresetList, CGUIWindowMusicBase, CGUIWindowMusicNav, CGUIWindowMusicPlayList, CGUIWindowMusicPlaylistEditor, CGUIWindowVisualisation, CGUIDialogNetworkSetup, PERIPHERALS::CGUIDialogPeripherals, PERIPHERALS::CGUIDialogPeripheralSettings, CGUIWindowPictures, CGUIWindowSlideShow, CGUIWindowSettingsProfile, CGUIWindowPrograms, PVR::CGUIDialogPVRChannelManager, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIDialogPVRGroupManager, PVR::CGUIDialogPVRGuideInfo, PVR::CGUIDialogPVRGuideSearch, PVR::CGUIDialogPVRRadioRDSInfo, PVR::CGUIDialogPVRRecordingInfo, PVR::CGUIEPGGridContainer, PVR::CGUIWindowPVRBase, PVR::CGUIWindowPVRChannelsBase, PVR::CGUIWindowPVRGuideBase, PVR::CGUIWindowPVRRecordingsBase, PVR::CGUIWindowPVRSearchBase, PVR::CGUIWindowPVRTimersBase, CGUIDialogLibExportSettings, CGUIDialogSettingsBase, CGUIWindowSettingsCategory, CGUIWindowSettingsScreenCalibration, CGUIDialogSubtitles, CGUIDialogSubtitleSettings, CGUIDialogTeletext, CGUIDialogVideoBookmarks, CGUIDialogVideoInfo, CGUIDialogVideoManager, CGUIDialogVideoManagerExtras, CGUIDialogVideoManagerVersions, CGUIDialogVideoOSD, CGUIWindowFullScreen, CGUIWindowVideoBase, CGUIWindowVideoNav, CGUIWindowVideoPlaylist, CGUIWindowWeather, CGUIMediaWindow, CGUIWindowDebugInfo, CGUIWindowFileManager, CGUIWindowHome, CGUIWindowLoginScreen, CGUIWindowScreensaver, and CGUIWindowSystemInfo.
|
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, CGUIMoverControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUIVideoControl, CGUIWindow, CGUIWindowVisualisation, CGUIWindowSlideShow, PVR::CGUIEPGGridContainer, CGUIDialogVideoOSD, and CGUIWindowFullScreen.
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 KODI::GAME::CGUIFeatureButton, CGUIBaseContainer, CGUIButtonControl, CGUIRSSControl, and CGUISettingsSliderControl.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIMoverControl, CGUIPanelContainer, CGUIResizeControl, and PVR::CGUIEPGGridContainer.
|
virtual |
Reimplemented in KODI::RETRO::CGameWindowFullScreen, CGUIWindowFullScreen, KODI::RETRO::CGUIGameControl, CGUIDialogBoxBase, CGUIDialogExtendedProgressBar, CGUIDialogKeyboardTouch, CGUIDialogProgress, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, PVR::CGUIEPGGridContainer, CGUIDialogSubtitles, CGUIDialogTeletext, CGUIWindowDebugInfo, CGUIWindowPointer, CGUIWindowScreensaverDim, CGUIWindowSlideShow, CGUIWindowScreensaver, and CGUIRangesControl.
|
virtual |
Reimplemented in CGUIControlGroup.
|
inlinevirtual |
Reimplemented in ADDON::CGUIAddonWindow, KODI::RETRO::CGUIGameControl, KODI::RETRO::CGameWindowFullScreen, CGUIDialogBusy, CGUIDialogBusyNoCancel, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIColorButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRangesControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWindowSlideShow, PVR::CGUIEPGGridContainer, CGUIDialogTeletext, CGUIWindowFullScreen, CGUIWindowDebugInfo, CGUIWindowScreensaver, CGUIWindowScreensaverDim, and CGUIWindowSplash.
|
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, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIWindowPVRBase, and PVR::CGUIWindowPVRGuideBase.
|
inline |
|
virtual |
Reimplemented in CGUIRangesControl, KODI::RETRO::CGUIGameControl, CGUIDialogContextMenu, CGUIButtonControl, CGUIColorButtonControl, CGUIImage, CGUIMoverControl, CGUIProgressControl, CGUIRadioButtonControl, CGUIResizeControl, CGUISettingsSliderControl, CGUISpinControl, CGUISpinControlEx, and CGUIToggleButtonControl.
|
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, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, and CGUIToggleButtonControl.
|
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 |