Class PlessControlHandler
Platform independent implementation of the IControlHandler interface.
public class PlessControlHandler : BaseControlHandler, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IControlHandler, IDisposableObject, IDisposable, IBaseObject
- Inheritance
-
PlessControlHandler
- Implements
- Derived
Properties
- BackgroundColor
Gets or sets the background color for the control.
- Bounds
Gets or sets the AbstractControl bounds relative to the parent, in device-independent units.
- Font
Gets or sets the font of the text displayed by the control.
- ForegroundColor
Gets or sets the foreground color for the control.
- HorzScrollBarInfo
Gets or sets horizontal scrollbar position as ScrollBarInfo. This makes sense only for UserControl descendants.
- IsScrollable
Gets or sets whether controls is scrollable. This makes sense only for UserControl descendants.
- NativeGraphicsContext
Gets the reference to native graphics context. For wxWidgets backend it returns the following:
- On Linux it return cairo_t* pointer.
- On MacOS it returns CGContextRef pointer.
- VertScrollBarInfo
Gets or sets vertical scrollbar position as ScrollBarInfo. This makes sense only for UserControl descendants.
- Visible
Gets or sets a value indicating whether the control and all its child controls are displayed.
- VisibleOnScreen
Gets whether control is visible on screen.
Methods
- EnableTouchEvents(TouchEventsMask)
Enables or disables receiving of the touch events.
- GetPixelScaleFactor()
Gets scale factor.
- InvalidateBestSize()
Resets the cached best size value so it will be recalculated the next time it is needed.
- OnInsertedToParent(AbstractControl)
Called when the current control is inserted into a parent control.
- OnRemovedFromParent(AbstractControl)
Called when the control is removed from its parent control.
- OnSystemColorsChanged()
This method is called when system colors are changed.
- SetRenderingFlags(ControlRenderingFlags)
Sets the rendering flags for a control, which determine how the control is rendered.
- SetToolTip(object?)
Sets tooltip text.
- UpdateFocusFlags(bool, bool)
Updates focus related flags.