x11dga2displayd.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {$IFDEF ENABLE_X11_EXTENSION_XF86DGA2}
  2. Type
  3. TX11DGA2Display = Class(TX11Display)
  4. Private
  5. Function NextEvent(Var event : TPTCEvent; wait : Boolean; Const EventMask : TPTCEventMask) : Boolean; Override;
  6. Function PeekEvent(wait : Boolean; Const EventMask : TPTCEventMask) : TPTCEvent; Override;
  7. Procedure HandleEvents;
  8. { The list of available modes (todo: move to local vars in the open function) }
  9. FXDGAModes : PXDGAMode;
  10. FXDGAModesNum : cint;
  11. { Holds the pointer to the framebuffer and all the other information for
  12. the current mode (or nil, if a mode isn't open) }
  13. FXDGADevice : PXDGADevice;
  14. { Coordinates of upper left frame corner }
  15. m_destx, m_desty : Integer;
  16. FModeIsSet : Boolean;
  17. FFramebufferIsOpen : Boolean;
  18. Public
  19. Constructor Create(ADisplay : PDisplay; AScreen : Integer; Const AFlags : TX11Flags); Override;
  20. Destructor Destroy; Override;
  21. Procedure open(title : String; _width, _height : Integer; Const _format : TPTCFormat); Override;
  22. Procedure open(w : TWindow; Const _format : TPTCFormat); Override;
  23. Procedure open(_window : TWindow; Const _format : TPTCFormat; x, y, w, h : Integer); Override;
  24. Procedure close; Override;
  25. Procedure GetModes(Var AModes : TPTCModeDynArray); Override;
  26. Procedure update; Override;
  27. Procedure update(Const _area : TPTCArea); Override;
  28. Function lock : Pointer; Override;
  29. Procedure unlock; Override;
  30. Procedure palette(Const _palette : TPTCPalette); Override;
  31. Function GetPitch : Integer; Override;
  32. Function getX11Window : TWindow; Override;
  33. Function isFullScreen : Boolean; Override;
  34. Procedure SetCursor(visible : Boolean); Override;
  35. End;
  36. {$ENDIF ENABLE_X11_EXTENSION_XF86DGA2}