[Overview][Classes][Index] Reference for unit 'nvContext' (#nvidia-widgets)

UIContext

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Basic UI context

Declaration

Source position: nvcontext.pas line 23

type UIContext = class(TObject)

public

  constructor Create;

  destructor Destroy; override;

  procedure reshape();

  

UI method for processing window size events

  function isOnFocus;

  

Check if the UI is currently on Focus

public

  procedure mouse();

  

UI method for processing mouse events

public

  procedure mouseMotion();

  

UI method for processing mouse motion events

  procedure keyboard();

  

UI method for processing key events

  procedure _begin;

  

UI method for entering UI processing mode

  procedure _end; virtual;

  

UI method for leaving UI processing mode

  procedure doLabel();

  

UI method for drawing a static text label

public

  function doButton();

  

UI method for rendering and processing a push button

public

  function doCheckButton();

  

UI method for rendering and processing a check button

  function doRadioButton();

  

UI method for rendering and processing a radio button

  function doHorizontalSlider();

  

UI method for rendering and processing a horizontal slider

  function doListItem();

  

List item widget

  function doListBox();

  

Listbox widget

  function doComboBox();

  

Combobox widget

  function doLineEdit();

  

Line edit widget

public

  procedure beginGroup();

  

Begin grouping section of UI objects

public

  procedure endGroup;

  procedure beginFrame();

  

Frame positioning section

  procedure endFrame;

  

Frame positioning widget

  function beginPanel();

  

Panel positioning widget

  procedure endPanel;

  

Panel positioning widget

  function getGroupWidth;

  function getGroupHeight;

  function getCursorX;

  function getCursorY;

  function getMouseState();

  procedure doTextureView();

  

UI method for drawing a texture view

protected

  function window;

protected

  function placeRect();

published

  property Painter: UIPainter; [rw]

protected

  m_groupIndex: Integer;

  m_groupStack: ;

  m_window: Rect;

  m_currentCursor: Point;

  m_mouseButton: ;

  m_keyBuffer: ;

  m_nbKeys: Integer;

  m_focusCaretPos: Integer;

  m_focusPoint: Point;

  m_twoStepFocus: Boolean;

  m_uiOnFocus: Boolean;

end;

Inheritance

UIContext

  

Basic UI context

|

TObject