Difference between revisions of "ISKernel:display (Data Type)"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== Members == | == Members == | ||
− | *[[DataType:string|string]] System | + | *[[DataType:string|string]] '''System''': Name of the current display system (e.g. Direct3D9) |
− | *[[DataType:bool|bool]] Windowed | + | *[[DataType:bool|bool]] '''Windowed''': TRUE if the application is ''really'' windowed |
− | *[[DataType:bool|bool]] AppWindowed | + | *[[DataType:bool|bool]] '''AppWindowed''': TRUE if the application ''thinks'' it is windowed |
− | *[[DataType:int|int]] Width | + | *[[DataType:int|int]] '''Width''': The game's actual resolution width |
− | *[[DataType:int|int]] Height | + | *[[DataType:int|int]] '''Height''': The game's actual resolution height |
− | *[[DataType:int|int]] X | + | *[[DataType:int|int]] '''X''': X position of the full window's left edge |
− | *[[DataType:int|int]] Y | + | *[[DataType:int|int]] '''Y''': Y position of the full window's top edge |
− | *[[DataType:int|int]] WindowWidth | + | *[[DataType:int|int]] '''WindowWidth''': Width of the full window |
− | *[[DataType:int|int]] WindowHeight | + | *[[DataType:int|int]] '''WindowHeight''': Height of the full window |
− | *[[DataType:int|int]] Monitor | + | *[[DataType:int|int]] '''Monitor''': Current monitor. 1 for primary, 2 for secondary |
− | *[[DataType:int|int]] DesktopWidth | + | *[[DataType:int|int]] '''DesktopWidth''': Width of the windows desktop on the current monitor |
− | *[[DataType:int|int]] DesktopHeight | + | *[[DataType:int|int]] '''DesktopHeight''': Height of the windows desktop on the current monitor |
− | *[[DataType:int|int]] ViewableX | + | *[[DataType:int|int]] '''ViewableX''': X position of the left edge of the window's viewable portion (does not include the border, etc) |
− | *[[DataType:int|int]] ViewableY | + | *[[DataType:int|int]] '''ViewableY''': Y position of the top edge of the window's viewable portion (does not include the border, etc) |
− | *[[DataType:int|int]] ViewableWidth | + | *[[DataType:int|int]] '''ViewableWidth''': Width of the window's viewable portion |
− | *[[DataType:int|int]] ViewableHeight | + | *[[DataType:int|int]] '''ViewableHeight''': Height of the window's viewable portion |
− | *[[DataType:bool|bool]] Foreground | + | *[[DataType:bool|bool]] '''Foreground''': TRUE if the window is currently the active window on the system |
− | *[[DataType:int|int]] DesktopX | + | *[[DataType:int|int]] '''DesktopX''': X position of the left edge of the windows desktop on the current monitor |
− | *[[DataType:int|int]] DesktopY | + | *[[DataType:int|int]] '''DesktopY''': Y position of the top edge of the windows desktop on the current monitor |
− | *[[DataType:rgb|rgb]] GetPixel | + | *[[DataType:rgb|rgb]] '''GetPixel['''x''','''y''']''': Retrieves color information of a specific pixel. Coordinates are relative to the viewable portion of the window, not the game's actual display mode |
− | *[[DataType:string|string]] PixelSearch | + | *[[DataType:string|string]] '''PixelSearch['''x''','''y''','''color''',-radius''' #''','''search ...''']''': Searches for the nearest pixel to x,y matching a set of conditions. Color and radius are required. Everything is given in decimal except for color, which must be lower case hexadecimal. Other optional search parameters include -within #, -redwithin #, -greenwithin #, -bluewithin #. These are used left to right, so to search for a color within 32 blue and green, but within 16 red, you could use -within 32,-redwithin 16. The returned string will be in the form x,y |
− | *[[DataType:int|int]] TextureMem | + | *[[DataType:int|int]] '''TextureMem''': Available texture memory, in megabytes |
== Methods == | == Methods == | ||
''(none)'' | ''(none)'' | ||
== Returns == | == Returns == | ||
− | + | Same as '''System''' | |
== Examples == | == Examples == | ||
Revision as of 08:40, 24 February 2005
Description
Members
- string System: Name of the current display system (e.g. Direct3D9)
- bool Windowed: TRUE if the application is really windowed
- bool AppWindowed: TRUE if the application thinks it is windowed
- int Width: The game's actual resolution width
- int Height: The game's actual resolution height
- int X: X position of the full window's left edge
- int Y: Y position of the full window's top edge
- int WindowWidth: Width of the full window
- int WindowHeight: Height of the full window
- int Monitor: Current monitor. 1 for primary, 2 for secondary
- int DesktopWidth: Width of the windows desktop on the current monitor
- int DesktopHeight: Height of the windows desktop on the current monitor
- int ViewableX: X position of the left edge of the window's viewable portion (does not include the border, etc)
- int ViewableY: Y position of the top edge of the window's viewable portion (does not include the border, etc)
- int ViewableWidth: Width of the window's viewable portion
- int ViewableHeight: Height of the window's viewable portion
- bool Foreground: TRUE if the window is currently the active window on the system
- int DesktopX: X position of the left edge of the windows desktop on the current monitor
- int DesktopY: Y position of the top edge of the windows desktop on the current monitor
- rgb GetPixel[x,y]: Retrieves color information of a specific pixel. Coordinates are relative to the viewable portion of the window, not the game's actual display mode
- string PixelSearch[x,y,color,-radius #,search ...]: Searches for the nearest pixel to x,y matching a set of conditions. Color and radius are required. Everything is given in decimal except for color, which must be lower case hexadecimal. Other optional search parameters include -within #, -redwithin #, -greenwithin #, -bluewithin #. These are used left to right, so to search for a color within 32 blue and green, but within 16 red, you could use -within 32,-redwithin 16. The returned string will be in the form x,y
- int TextureMem: Available texture memory, in megabytes
Methods
(none)
Returns
Same as System