Control Class

Definition

Line 69 of System.Screen/Control.cm

Inheritance

Constructors & Destructor

public nothrow Control(ControlCreateParams& createParams)
public ~Control()

Member Functions

public nothrow ConsoleColor BackColor() const
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& BackColorChangedEvent()
public nothrow void BeginInvalidate()
public virtual nothrow bool CanFocus() const
public nothrow const Point& ControlCursorPos() const
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& EnabledChangedEvent()
public nothrow void EndInvalidate(InvalidateKind invalidateKind)
public virtual nothrow Rect FocusRect() const
public nothrow ConsoleColor ForeColor() const
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& ForeColorChangedEvent()
public nothrow Rect GetRect() const
public nothrow const Size& GetSize() const
public nothrow Window* GetWindow() const
public nothrow Event<FocusEventHandler, EmptyEventArgs>& GotFocusEvent()
public nothrow int Handle() const
public virtual bool HandleKeyPressed(KeyPressedMessage* message)
public virtual bool HandleMessage(Message* message)
public virtual bool HandleTimerMessage(TimerMessage* message)
public virtual bool HandleWriteScreen(WriteScreenMessage* message)
public void Invalidate()
public void Invalidate(const Rect& rect)
public nothrow int InvalidateCount() const
public nothrow bool IsDisabled() const
public nothrow bool IsEnabled() const
public nothrow bool IsFocused() const
public nothrow Event<KeyEventHandler, KeyEventArgs>& KeyPressedEvent()
public nothrow const Point& Location() const
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& LocationChangedEvent()
public nothrow Event<FocusEventHandler, EmptyEventArgs>& LostFocusEvent()
public nothrow Control* NextControl() const
public nothrow Control* NextFocusableControl() const
public virtual void OnBackColorChanged()
public virtual void OnEnabledChanged()
public virtual void OnForeColorChanged()
public virtual void OnGotFocus()
public virtual void OnKeyPressed(KeyEventArgs& args)
public virtual void OnLocationChanged()
public virtual void OnLostFocus()
public virtual void OnSizeChanged()
public virtual void OnTimer(TimerEventArgs& args)
public virtual void OnWriteScreen(WriteScreenEventArgs& args)
public nothrow Control* ParentControl() const
public nothrow Control* PrevControl() const
public nothrow Control* PrevFocusableControl() const
public nothrow void SetBackColor(ConsoleColor backColor_)
public nothrow void SetControlCursorPos(const Point& controlCursorPos_)
public nothrow void SetDisabled()
public nothrow void SetEnabled()
public virtual void SetFocus()
public nothrow void SetForeColor(ConsoleColor foreColor_)
public nothrow void SetHandle(int handle_)
public nothrow void SetLocation(const Point& location_)
public nothrow void SetSize(const Size& size_)
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& SizeChangedEvent()
public nothrow void Timer(const Duration& duration, int timerId)
public nothrow Event<TimerEventHandler, TimerEventArgs> TimerEvent()
public nothrow Event<WriteScreenEventHandler, WriteScreenEventArgs>& WriteScreenEvent()

Member Variables

private ConsoleColor backColor
private Event<ChangedEventHandler, EmptyEventArgs> backColorChangedEvent
private Point controlCursorPos
private Event<ChangedEventHandler, EmptyEventArgs> enabledChangedEvent
private ControlFlags flags
private ConsoleColor foreColor
private Event<ChangedEventHandler, EmptyEventArgs> foreColorChangedEvent
private Event<FocusEventHandler, EmptyEventArgs> gotFocusEvent
private int handle
private int invalidateCount
private Event<KeyEventHandler, KeyEventArgs> keyPressedEvent
private Point location
private Event<ChangedEventHandler, EmptyEventArgs> locationChangedEvent
private Event<FocusEventHandler, EmptyEventArgs> lostFocusEvent
private Size size
private Event<ChangedEventHandler, EmptyEventArgs> sizeChangedEvent
private Event<TimerEventHandler, TimerEventArgs> timerEvent
private Rect updateRect
private Event<WriteScreenEventHandler, WriteScreenEventArgs> writeScreenEvent

Constructor& Destructor Details

Control Constructor

public nothrow Control(ControlCreateParams& createParams)

Definition
Line 71 of System.Screen/Control.cm


~Control Destructor

public ~Control()

Definition
Line 82 of System.Screen/Control.cm


Member Function Details

BackColor Member Function

public nothrow ConsoleColor BackColor()

Definition
Line 255 of System.Screen/Control.cm


BackColorChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& BackColorChangedEvent()

Definition
Line 461 of System.Screen/Control.cm


BeginInvalidate Member Function

public nothrow void BeginInvalidate()

Definition
Line 272 of System.Screen/Control.cm


CanFocus Member Function

public virtual nothrow bool CanFocus()

Definition
Line 335 of System.Screen/Control.cm


ControlCursorPos Member Function

public nothrow const Point& ControlCursorPos()

Definition
Line 331 of System.Screen/Control.cm


EnabledChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& EnabledChangedEvent()

Definition
Line 465 of System.Screen/Control.cm


EndInvalidate Member Function

public nothrow void EndInvalidate(InvalidateKind invalidateKind)

Definition
Line 285 of System.Screen/Control.cm


FocusRect Member Function

public virtual nothrow Rect FocusRect()

Definition
Line 343 of System.Screen/Control.cm


ForeColor Member Function

public nothrow ConsoleColor ForeColor()

Definition
Line 242 of System.Screen/Control.cm


ForeColorChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& ForeColorChangedEvent()

Definition
Line 457 of System.Screen/Control.cm


GetRect Member Function

public nothrow Rect GetRect()

Definition
Line 150 of System.Screen/Control.cm


GetSize Member Function

public nothrow const Size& GetSize()

Definition
Line 137 of System.Screen/Control.cm


GetWindow Member Function

public nothrow Window* GetWindow()

Definition
Line 154 of System.Screen/Control.cm


GotFocusEvent Member Function

public nothrow Event<FocusEventHandler, EmptyEventArgs>& GotFocusEvent()

Definition
Line 469 of System.Screen/Control.cm


Handle Member Function

public nothrow int Handle()

Definition
Line 90 of System.Screen/Control.cm


HandleKeyPressed Member Function

public virtual bool HandleKeyPressed(KeyPressedMessage* message)

Definition
Line 369 of System.Screen/Control.cm


HandleMessage Member Function

public virtual bool HandleMessage(Message* message)

Definition
Line 365 of System.Screen/Control.cm


HandleTimerMessage Member Function

public virtual bool HandleTimerMessage(TimerMessage* message)

Definition
Line 403 of System.Screen/Control.cm


HandleWriteScreen Member Function

public virtual bool HandleWriteScreen(WriteScreenMessage* message)

Definition
Line 397 of System.Screen/Control.cm


Invalidate Member Function

public void Invalidate()

Definition
Line 307 of System.Screen/Control.cm


Invalidate Member Function

public void Invalidate(const Rect& rect)

Definition
Line 311 of System.Screen/Control.cm


InvalidateCount Member Function

public nothrow int InvalidateCount()

Definition
Line 303 of System.Screen/Control.cm


IsDisabled Member Function

public nothrow bool IsDisabled()

Definition
Line 116 of System.Screen/Control.cm


IsEnabled Member Function

public nothrow bool IsEnabled()

Definition
Line 120 of System.Screen/Control.cm


IsFocused Member Function

public nothrow bool IsFocused()

Definition
Line 339 of System.Screen/Control.cm


KeyPressedEvent Member Function

public nothrow Event<KeyEventHandler, KeyEventArgs>& KeyPressedEvent()

Definition
Line 481 of System.Screen/Control.cm


Location Member Function

public nothrow const Point& Location()

Definition
Line 124 of System.Screen/Control.cm


LocationChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& LocationChangedEvent()

Definition
Line 449 of System.Screen/Control.cm


LostFocusEvent Member Function

public nothrow Event<FocusEventHandler, EmptyEventArgs>& LostFocusEvent()

Definition
Line 473 of System.Screen/Control.cm


NextControl Member Function

public nothrow Control* NextControl()

Definition
Line 190 of System.Screen/Control.cm


NextFocusableControl Member Function

public nothrow Control* NextFocusableControl()

Definition
Line 216 of System.Screen/Control.cm


OnBackColorChanged Member Function

public virtual void OnBackColorChanged()

Definition
Line 421 of System.Screen/Control.cm


OnEnabledChanged Member Function

public virtual void OnEnabledChanged()

Definition
Line 425 of System.Screen/Control.cm


OnForeColorChanged Member Function

public virtual void OnForeColorChanged()

Definition
Line 417 of System.Screen/Control.cm


OnGotFocus Member Function

public virtual void OnGotFocus()

Definition
Line 429 of System.Screen/Control.cm


OnKeyPressed Member Function

public virtual void OnKeyPressed(KeyEventArgs& args)

Definition
Line 441 of System.Screen/Control.cm


OnLocationChanged Member Function

public virtual void OnLocationChanged()

Definition
Line 409 of System.Screen/Control.cm


OnLostFocus Member Function

public virtual void OnLostFocus()

Definition
Line 433 of System.Screen/Control.cm


OnSizeChanged Member Function

public virtual void OnSizeChanged()

Definition
Line 413 of System.Screen/Control.cm


OnTimer Member Function

public virtual void OnTimer(TimerEventArgs& args)

Definition
Line 445 of System.Screen/Control.cm


OnWriteScreen Member Function

public virtual void OnWriteScreen(WriteScreenEventArgs& args)

Definition
Line 437 of System.Screen/Control.cm


ParentControl Member Function

public nothrow Control* ParentControl()

Definition
Line 174 of System.Screen/Control.cm


PrevControl Member Function

public nothrow Control* PrevControl()

Definition
Line 203 of System.Screen/Control.cm


PrevFocusableControl Member Function

public nothrow Control* PrevFocusableControl()

Definition
Line 229 of System.Screen/Control.cm


SetBackColor Member Function

public nothrow void SetBackColor(ConsoleColor backColor_)

Definition
Line 259 of System.Screen/Control.cm


SetControlCursorPos Member Function

public nothrow void SetControlCursorPos(const Point& controlCursorPos_)

Definition
Line 327 of System.Screen/Control.cm


SetDisabled Member Function

public nothrow void SetDisabled()

Definition
Line 98 of System.Screen/Control.cm


SetEnabled Member Function

public nothrow void SetEnabled()

Definition
Line 107 of System.Screen/Control.cm


SetFocus Member Function

public virtual void SetFocus()

Definition
Line 347 of System.Screen/Control.cm


SetForeColor Member Function

public nothrow void SetForeColor(ConsoleColor foreColor_)

Definition
Line 246 of System.Screen/Control.cm


SetHandle Member Function

public nothrow void SetHandle(int handle_)

Definition
Line 94 of System.Screen/Control.cm


SetLocation Member Function

public nothrow void SetLocation(const Point& location_)

Definition
Line 128 of System.Screen/Control.cm


SetSize Member Function

public nothrow void SetSize(const Size& size_)

Definition
Line 141 of System.Screen/Control.cm


SizeChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& SizeChangedEvent()

Definition
Line 453 of System.Screen/Control.cm


Timer Member Function

public nothrow void Timer(const Duration& duration, int timerId)

Definition
Line 268 of System.Screen/Control.cm


TimerEvent Member Function

public nothrow Event<TimerEventHandler, TimerEventArgs> TimerEvent()

Definition
Line 485 of System.Screen/Control.cm


WriteScreenEvent Member Function

public nothrow Event<WriteScreenEventHandler, WriteScreenEventArgs>& WriteScreenEvent()

Definition
Line 477 of System.Screen/Control.cm