Class RControl
- Namespace
- TheArtOfDev.HtmlRenderer.Adapters
- Assembly
- StockSharp.Xaml.dll
Adapter for platform specific control object - used to handle updating the control that the html is rendered on.
Not relevant for platforms that don't render HTML on UI element.
public abstract class RControl
- Inheritance
-
RControl
- Inherited Members
- Extension Methods
Constructors
RControl(RAdapter)
Init control with platform adapter.
protected RControl(RAdapter adapter)
Parameters
adapter
RAdapter
Properties
Adapter
The platform adapter.
public RAdapter Adapter { get; }
Property Value
LeftMouseButton
Is the left mouse button is currently in pressed state
public abstract bool LeftMouseButton { get; }
Property Value
MouseLocation
Get the current location of the mouse relative to the control
public abstract RPoint MouseLocation { get; }
Property Value
RightMouseButton
Is the right mouse button is currently in pressed state
public abstract bool RightMouseButton { get; }
Property Value
Methods
DoDragDropCopy(object)
Do drag-drop copy operation for the given data object.
public abstract void DoDragDropCopy(object dragDropData)
Parameters
dragDropData
objectthe drag-drop data object
Invalidate()
Invalidates the entire surface of the control and causes the control to be redrawn.
public abstract void Invalidate()
MeasureString(string, RFont, double, out int, out double)
Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take.
public abstract void MeasureString(string str, RFont font, double maxWidth, out int charFit, out double charFitWidth)
Parameters
str
stringthe string to measure
font
RFontthe font to measure string with
maxWidth
doublethe max width to calculate fit characters
charFit
intthe number of characters that will fit under
restriction charFitWidth
doublethe width that only the characters that fit into max width take
SetCursorDefault()
Set the cursor over the control to default cursor
public abstract void SetCursorDefault()
SetCursorHand()
Set the cursor over the control to hand cursor
public abstract void SetCursorHand()
SetCursorIBeam()
Set the cursor over the control to I beam cursor
public abstract void SetCursorIBeam()