28 CGUILabelControl(
int parentID,
int controlID,
float posX,
float posY,
float width,
float height,
const CLabelInfo& labelInfo,
bool wrapMultiLine,
bool bHasPath);
32 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
33 void Render()
override;
34 void UpdateInfo(
const CGUIListItem *item = NULL)
override;
35 bool CanFocus()
const override;
37 std::string GetDescription()
const override;
38 float GetWidth()
const override;
39 void SetWidth(
float width)
override;
42 const CLabelInfo& GetLabelInfo()
const {
return m_label.GetLabelInfo(); }
43 void SetLabel(
const std::string &strLabel);
44 void ShowCursor(
bool bShow =
true);
45 void SetCursorPos(
int iPos);
46 int GetCursorPos()
const {
return m_iCursorPos; }
48 void SetWidthControl(
float minWidth,
bool bScroll);
49 void SetAlignment(uint32_t align);
50 void SetHighlight(
unsigned int start,
unsigned int end);
51 void SetSelection(
unsigned int start,
unsigned int end);
55 std::string ShortenPath(
const std::string &path);
67 unsigned int m_dwCounter;
75 unsigned int m_startHighlight;
76 unsigned int m_endHighlight;
77 unsigned int m_startSelection;
78 unsigned int m_endSelection;
Class for rendering text labels. Handles alignment and rendering of text within a control...
Definition: GUILabel.h:69
Definition: GUIListItem.h:29
Definition: GUIInfoLabel.h:31
CRect CalcRenderRegion() const override
calculate the render region in parentcontrol coordinates of this control Called during process to upd...
Definition: GUILabelControl.cpp:135
Base class for controls.
Definition: GUIControl.h:83
Definition: GUILabelControl.h:24
float GetTextWidth() const
Returns the precalculated full width of the current text, regardless of layout.
Definition: GUILabel.h:181
Definition: GUIMessage.h:365
Definition: GUILabel.h:22
float GetMaxWidth() const
Return the maximum width of this label control.
Definition: GUILabelControl.h:60