![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Base class for controls. More...
#include <GUIControl.h>
Public Types | |
enum | GUICONTROLTYPES { GUICONTROL_UNKNOWN , GUICONTROL_BUTTON , GUICONTROL_FADELABEL , GUICONTROL_IMAGE , GUICONTROL_BORDEREDIMAGE , GUICONTROL_LABEL , GUICONTROL_LISTGROUP , GUICONTROL_PROGRESS , GUICONTROL_RADIO , GUICONTROL_RSS , GUICONTROL_SLIDER , GUICONTROL_SETTINGS_SLIDER , GUICONTROL_SPIN , GUICONTROL_SPINEX , GUICONTROL_TEXTBOX , GUICONTROL_TOGGLEBUTTON , GUICONTROL_VIDEO , GUICONTROL_GAME , GUICONTROL_MOVER , GUICONTROL_RESIZE , GUICONTROL_EDIT , GUICONTROL_VISUALISATION , GUICONTROL_RENDERADDON , GUICONTROL_MULTI_IMAGE , GUICONTROL_GROUP , GUICONTROL_GROUPLIST , GUICONTROL_SCROLLBAR , GUICONTROL_LISTLABEL , GUICONTROL_GAMECONTROLLER , GUICONTAINER_LIST , GUICONTAINER_WRAPLIST , GUICONTAINER_FIXEDLIST , GUICONTAINER_EPGGRID , GUICONTAINER_PANEL } |
enum | GUIVISIBLE { HIDDEN = 0 , DELAYED , VISIBLE } |
enum | GUISCROLLVALUE { FOCUS = 0 , NEVER , ALWAYS } |
typedef std::map< int, CGUIAction > | ActionMap |
Set actions to perform on navigation. More... | |
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. More... | |
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 CMouseEvent &event) |
React to a mouse event. More... | |
virtual EVENT_RESULT | OnMouseEvent (const CPoint &point, const CMouseEvent &event) |
Perform a mouse action. More... | |
virtual void | UnfocusFromPoint (const CPoint &point) |
Unfocus the control if the given point on screen is not within it's boundary. More... | |
virtual bool | HitTest (const CPoint &point) const |
Used to test whether the point is inside a control. More... | |
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) |
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 |
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 More... | |
virtual CRect | CalcRenderRegion () const |
calculate the render region in parentcontrol coordinates of this control Called during process to update m_renderRegion More... | |
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. More... | |
CGUIAction | GetAction (int actionID) const |
Get an action the control can be perform. More... | |
bool | Navigate (int direction) const |
Start navigating in given direction. More... | |
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 |
Protected Member Functions | |
virtual CPoint | GetPosition () const |
Return the coordinates of the top left of the control, in the control's parent coordinates. More... | |
virtual bool | OnMouseOver (const CPoint &point) |
Called when the mouse is over the control. Default implementation selects the control. More... | |
virtual bool | CanFocusFromPoint (const CPoint &point) const |
Test whether we can focus a control from a point on screen. More... | |
virtual bool | UpdateColors () |
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 |
Protected Attributes | |
ActionMap | m_actions |
float | m_posX |
float | m_posY |
float | m_height |
float | m_width |
CRect | m_hitRect |
UTILS::Color | m_hitColor = 0xffffffff |
KODI::GUILIB::GUIINFO::CGUIInfoColor | m_diffuseColor |
int | m_controlID |
int | m_parentID |
bool | m_bHasFocus |
bool | m_bInvalidated |
bool | m_bAllocated |
bool | m_pulseOnSelect |
GUICONTROLTYPES | ControlType |
GUICONTROLSTATS * | m_controlStats |
CGUIControl * | m_parentControl |
INFO::InfoPtr | m_visibleCondition |
GUIVISIBLE | m_visible |
bool | m_visibleFromSkinCondition |
bool | m_forceHidden |
KODI::GUILIB::GUIINFO::CGUIInfoBool | m_allowHiddenFocus |
bool | m_hasProcessed |
INFO::InfoPtr | m_enableCondition |
bool | m_enabled |
bool | m_pushedUpdates |
std::vector< CAnimation > | m_animations |
CPoint | m_camera |
bool | m_hasCamera |
float | m_stereo |
TransformMatrix | m_transform |
TransformMatrix | m_cachedTransform |
unsigned int | m_controlDirtyState |
CRect | m_renderRegion |
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, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, CGUIWindow, and PVR::CGUIEPGGridContainer.
|
protectedvirtual |
Reimplemented in CGUIWindow.
|
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, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, CGUITextBox, CGUIVideoControl, and CGUIVisualisationControl.
|
protectedvirtual |
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, CGUIBorderedImage, CGUIButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIEditControl, CGUIFadeLabelControl, CGUIFixedListContainer, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWrappingListContainer, PVR::CGUIEPGGridContainer, and KODI::GAME::CGUIGameController.
|
virtual |
|
virtual |
Reimplemented in CGUIWindow, and CGUIWindowSettingsScreenCalibration.
|
virtual |
Reimplemented in CGUIBorderedImage, CGUIButtonControl, CGUIControlGroup, CGUIImage, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, and CGUIWindow.
|
virtual |
Reimplemented in KodiAPI::GUI::CGUIAddonWindow, CGUIWindow, CGUIWindowSettingsScreenCalibration, PVR::CGUIEPGGridContainer, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, 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 |
|
inlinevirtual |
Reimplemented in CGUIBaseContainer, CGUIControlGroupList, CGUIPanelContainer, and CGUITextBox.
|
virtual |
Reimplemented in CGUIControlLookup.
|
inline |
|
inlinevirtual |
Reimplemented in CGUIBaseContainer, CGUIButtonControl, 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.
|
virtual |
Reimplemented in CGUIWindowSettingsCategory.
|
inline |
int CGUIControl::GetParentID | ( | void | ) | const |
|
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.
|
virtual |
Reimplemented in CGUIControlGroup.
|
inline |
Returns whether or not we have processed.
|
inline |
|
virtual |
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 |
|
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 | ) |
bool CGUIControl::Navigate | ( | int | direction | ) | const |
Start navigating in given direction.
|
virtual |
Reimplemented in CGUIDialogAddonInfo, KodiAPI::GUI::CGUIAddonWindow, ADDON::CGUIAddonWindow, KODI::RETRO::CGameWindowFullScreen, CGUIDialogContextMenu, CGUIDialogFileBrowser, CGUIDialogGamepad, CGUIDialogKeyboardGeneric, CGUIDialogNumeric, CGUIDialogPlayerProcessInfo, CGUIDialogSlider, CGUIDialogTextViewer, CGUIDialogVolumeBar, KODI::GAME::CDialogGameOSD, CGUIBaseContainer, CGUIButtonControl, CGUIControlGroup, CGUIDialog, CGUIEditControl, CGUIFixedListContainer, CGUIImage, CGUIListContainer, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIRadioButtonControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUIToggleButtonControl, CGUIVisualisationControl, CGUIWindow, CGUIWrappingListContainer, CGUIDialogMusicInfo, CGUIDialogMusicOSD, CGUIDialogSongInfo, CGUIWindowMusicBase, CGUIWindowMusicNav, CGUIWindowMusicPlayList, CGUIWindowVisualisation, CGUIDialogAccessPoints, CGUIDialogPictureInfo, CGUIWindowSlideShow, PVR::CGUIDialogPVRChannelManager, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIDialogPVRItemsViewBase, PVR::CGUIEPGGridContainer, PVR::CGUIWindowPVRBase, PVR::CGUIWindowPVRChannelsBase, PVR::CGUIWindowPVRGuideBase, PVR::CGUIWindowPVRRecordingsBase, PVR::CGUIWindowPVRTimersBase, CGUIDialogSettingsBase, CGUIWindowSettingsCategory, CGUIWindowSettingsScreenCalibration, CGUIDialogFullScreenInfo, CGUIDialogTeletext, CGUIDialogVideoBookmarks, CGUIDialogVideoInfo, 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, CGUIWindowAddonBrowser, KodiAPI::GUI::CGUIAddonWindow, KodiAPI::GUI::CGUIAddonWindowDialog, ADDON::CGUIAddonWindow, CGUIDialogAddonSettings, KODI::RETRO::CGameWindowFullScreen, CGUIDialogBoxBase, CGUIDialogButtonMenu, CGUIDialogContextMenu, CGUIDialogExtendedProgressBar, CGUIDialogFileBrowser, CGUIDialogGamepad, CGUIDialogKaiToast, CGUIDialogKeyboardGeneric, CGUIDialogMediaFilter, CGUIDialogMediaSource, CGUIDialogNumeric, CGUIDialogOK, CGUIDialogPlayEject, CGUIDialogProgress, CGUIDialogSeekBar, CGUIDialogSelect, CGUIDialogSlider, CGUIDialogSmartPlaylistEditor, CGUIDialogSmartPlaylistRule, CGUIDialogSubMenu, CGUIDialogTextViewer, CGUIDialogVolumeBar, CGUIDialogYesNo, CGUIWindowEventLog, CGUIDialogFavourites, KODI::GAME::CGUIControllerWindow, KODI::GAME::CDialogGameAdvancedSettings, KODI::GAME::CDialogGameVideoSelect, KODI::GAME::CDialogGameVolume, KODI::GAME::CGUIWindowGames, CGUIBaseContainer, CGUIButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIEditControl, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListContainer, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, GUIScrollBarControl, CGUISliderControl, CGUISpinControl, CGUITextBox, CGUIVisualisationControl, CGUIWindow, CGUIWrappingListContainer, 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, 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, CGUIWindowFullScreen, and CGUIWindowScreensaver.
|
protectedvirtual |
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 KODI::RETRO::CGameWindowFullScreen, CGUIWindowFullScreen, KODI::RETRO::CGUIGameControl, CGUIDialogBoxBase, CGUIDialogExtendedProgressBar, CGUIDialogKeyboardTouch, CGUIDialogProgress, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, 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, and CGUIWindowScreensaver.
|
virtual |
Reimplemented in CGUIControlGroup.
Reimplemented in KodiAPI::GUI::CGUIAddonWindow, ADDON::CGUIAddonWindow, KODI::RETRO::CGUIGameControl, KODI::RETRO::CGameWindowFullScreen, CGUIDialogBusy, CGUIDialogBusyNoCancel, CGUIBaseContainer, CGUIBorderedImage, CGUIButtonControl, CGUIControlGroup, CGUIControlGroupList, CGUIDialog, CGUIFadeLabelControl, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIPanelContainer, CGUIProgressControl, CGUIRadioButtonControl, CGUIRenderingControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, CGUIToggleButtonControl, CGUIVideoControl, CGUIVisualisationControl, CGUIWindowSlideShow, PVR::CGUIEPGGridContainer, CGUIDialogTeletext, CGUIWindowFullScreen, CGUIWindowDebugInfo, CGUIWindowScreensaver, CGUIWindowScreensaverDim, CGUIWindowSplash, and KODI::GAME::CGUIGameController.
|
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 | ) |
|
virtual |
Reimplemented in CGUISettingsSliderControl, and CGUISpinControlEx.
|
virtual |
Reimplemented in CGUIBaseContainer, CGUIEditControl, CGUIListLabel, and PVR::CGUIEPGGridContainer.
|
virtual |
Reimplemented in KODI::RETRO::CGUIGameControl, CGUIImage, CGUIRadioButtonControl, CGUISettingsSliderControl, CGUISpinControlEx, and CGUIToggleButtonControl.
|
virtual |
|
inlinevirtual |
Reimplemented in CGUIWindow.
|
virtual |
Reimplemented in CGUIControlGroup, and CGUIWindow.
|
inlinevirtual |
Reimplemented in CGUIButtonControl, CGUIControlGroupList, CGUIImage, CGUIListGroup, CGUIListLabel, CGUIMoverControl, CGUIMultiImage, CGUIProgressControl, CGUIRadioButtonControl, CGUIResizeControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUIToggleButtonControl, PVR::CGUIDialogPVRChannelsOSD, PVR::CGUIWindowPVRBase, and PVR::CGUIWindowPVRGuideBase.
|
inline |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
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, CGUIFadeLabelControl, CGUILabelControl, CGUIListLabel, CGUIMoverControl, CGUIProgressControl, CGUIRadioButtonControl, CGUIResizeControl, CGUIRSSControl, GUIScrollBarControl, CGUISettingsSliderControl, CGUISliderControl, CGUISpinControl, CGUISpinControlEx, CGUITextBox, and CGUIToggleButtonControl.
|
virtual |
Reimplemented in CGUIWindow.
|
inlinevirtual |
Reimplemented in CGUIListGroup, CGUIImage, CGUILabelControl, CGUIListLabel, CGUIMultiImage, CGUIProgressControl, CGUITextBox, and KODI::RETRO::CGUIGameControl.
|
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 |