Gjsify LogoGjsify Logo

Hierarchy

  • OnscreenResizeCallback

Callable

  • OnscreenResizeCallback(onscreen: Onscreen, width: number, height: number): void
  • Is a callback type used with the cogl_onscreen_add_resize_callback() allowing applications to be notified whenever an onscreen framebuffer is resized.

    Cogl automatically updates the viewport of an onscreen framebuffer that is resized so this callback is also an indication that the viewport has been modified too

    A resize callback will only ever be called while dispatching Cogl events from the system mainloop; so for example during cogl_poll_renderer_dispatch(). This is so that callbacks shouldn't occur while an application might have arbitrary locks held for example.

    Parameters

    • onscreen: Onscreen

      A #CoglOnscreen framebuffer that was resized

    • width: number

      The new width of onscreen

    • height: number

      The new height of onscreen

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method