Ultraschall Internals Documentation Reaper Internals Documentation Downloads Changelog of documentation Impressum and Contact
Ultraschall-logo Functions Engine GFX Engine GUI Engine Video Engine Audio Engine Doc Engine  
  Introduction/Concepts      Concepts      Concepts      Concepts      Concepts      Concepts
           Functions      Functions       Functions       Functions       Functions       Functions 



4.00Beta 2.78 - "Tchaikovski - Overture 1812" - 5th of November 2019 - Build: 40869

Functions Reference


User Interface

Coordinates
VID_Pixels2VideoUIStateCoordsVID_VideoUIStateCoords2Pixels 
Window Management
GetVideoHWND  


Reaper version 5.965Julian Sader's plugin version 0.963Lua version 5.3 GetVideoHWND

Functioncall:

HWND hwnd = ultraschall.GetVideoHWND()

Description:
returns the HWND of the Video window, if the window is opened.

returns nil if the Video Window is closed

Returnvalues:
 HWND hwnd the window-handler of the Video Window 



Reaper version 5.97Lua version 5.3 VID_VideoUIStateCoords2Pixels

Functioncall:

integer x_coordinate, integer y_coordinate = ultraschall.VID_VideoUIStateCoords2Pixels(number uistate_x, number uistate_y, integer videowindow_width, integer videowindow_height)

Description:
converts the ui_state-coordinates of the Video-Processor into pixel-coordinates within the Video Window

You should add x and y-position of the Video-Processor-window, to get the actual screen-coordinates.

returns nil in case of an error

Returnvalues:
 integer x_coordinate the converted x-coordinate 
 integer y_coordinate the converted y-coordinate 

Parameters:
 number uistate_x the x-coordinate, that the function ui_get_state within the videoprocessor returns 
 number uistate_y the y-coordinate, that the function ui_get_state within the videoprocessor returns 
 integer videowindow_width the current width of the Video Window 
 integer videowindow_height the current height of the Video Window 


Reaper version 5.97Lua version 5.3 VID_Pixels2VideoUIStateCoords

Functioncall:

number uistate_x, number uistate_y = ultraschall.VID_Pixels2VideoUIStateCoords(integer x, integer y, integer videowindow_width, integer videowindow_height)

Description:
converts the ui_state-coordinates of the Video-Processor into pixel-coordinates within the Video Window

You should add x and y-position of the Video-Processor-window, to get the actual screen-coordinates.

returns nil in case of an error

Returnvalues:
 number x_coordinate the converted x-coordinate, that reflects the values within the video-processor function ui_get_state 
 number y_coordinate the converted y-coordinate, that reflects the values within the video-processor function ui_get_state 

Parameters:
 integer x the x-coordinate within the Video-Window 
 integer y the y-coordinate within the Video-Window 
 integer videowindow_width the current width of the Video Window 
 integer videowindow_height the current height of the Video Window 



Automatically generated by Ultraschall-API 4.00 Beta 2.78 - 1069 functions and -1065 Api-variables available