Kōtuku
  • Gallery
  • API
  • Wiki
  • GitHub
    •  Overview
    • GetDisplayMode()
    • GetDisplayTotal()
    • SetDisplayMode()
    • Audio
    • Config
    • Core
    • Display
    • Document
    • Font
    • HTTP
    • Network
    • Regex
    • SVG
    • Tiri
    • Vector
    • XML
    • XQuery
    • XRandR
      • Audio
      • MP3
      • Sound
      • File
      • MetaClass
      • Module
      • StorageDevice
      • Task
      • Thread
      • Time
      • Compression
      • CompressedStream
      • Config
      • LZMAStream
      • Script
      • Tiri
      • XML
      • XQuery
      • Controller
      • BlurFX
      • ColourFX
      • CompositeFX
      • ConvolveFX
      • DisplacementFX
      • FilterEffect
      • FloodFX
      • ImageFX
      • LightingFX
      • MergeFX
      • MorphologyFX
      • OffsetFX
      • RemapFX
      • SourceFX
      • TurbulenceFX
      • WaveFunctionFX
      • Scintilla
      • Bitmap
      • Clipboard
      • Display
      • Document
      • Font
      • Image
      • Pointer
      • Surface
      • SVG
      • ClientSocket
      • HTTP
      • NetClient
      • NetLookup
      • NetServer
      • NetSocket
      • Proxy
      • Gradient
      • GradientConic
      • GradientContour
      • GradientDiamond
      • GradientDiffusion
      • GradientDistal
      • GradientGouraud
      • GradientLinear
      • GradientMesh
      • GradientRadial
      • GradientVoronoi
      • Vector
      • VectorClip
      • VectorColour
      • VectorEllipse
      • VectorFilter
      • VectorGradient
      • VectorGroup
      • VectorImage
      • VectorPath
      • VectorPattern
      • VectorPolygon
      • VectorRectangle
      • VectorScene
      • VectorShape
      • VectorSpiral
      • VectorText
      • VectorTransition
      • VectorViewport
      • VectorWave
      • Linux Builds
      • Windows Builds
      • Customising Your Build
      • Kōtuku Objects
      • Kōtuku In Depth
      • Kōtuku Design Patterns
      • Coding With AI
      • Regex Manual
      • XML Comparisons
      • Tiri Reference Manual
      • Config API
      • Defer Syntax
      • GUI API
      • HTTP Server API
      • I/O API
      • JSON API
      • OAuth API
      • Options API
      • Proxy Server API
      • Tempus API
      • URL API
      • VFX API
      • Widgets
      • RIPL Reference Manual
      • Origo
      • Flute / Unit Testing
      • Tuku
      • Embedded Document Format
      • TDL Reference Manual
      • TDL Tools
      • Action Reference Manual
      • System Error Codes

XRandR Module

Functions

GetDisplayMode | GetDisplayTotal | SetDisplayMode

Structures

xrMode

GetDisplayMode()

Retrieve information of a display mode.

APTR xrGetDisplayMode(LONG Index)
ParameterDescription
IndexIndex of the display mode to retrieve.

This function returns the width, height and depth of a given display mode.

Result

An xrMode structure is returned or NULL on failure.

XRandR module documentation © Paul Manias © 2014-2017

GetDisplayTotal()

Returns the total number of display modes.

LONG xrGetDisplayTotal()

This function returns the total number of known display modes.

Result

Returns the total number of known display modes.

XRandR module documentation © Paul Manias © 2014-2017

SetDisplayMode()

Change the width and height of the display.

ERR xrSetDisplayMode(LONG * Width, LONG * Height)
ParameterDescription
WidthThe required width of the display.
HeightThe required height of the display.

This function changes the width and height of the display to that indicated by the Width and Height parameters. If the requested size does not match a known mode, the closest matching mode will be chosen.

Error Codes

OkayOperation successful.
XRandR module documentation © Paul Manias © 2014-2017

xrMode Structure

Display mode.

FieldTypeDescription
WidthLONGHorizontal
HeightLONGVertical
DepthLONGbit depth
XRandR module documentation © Paul Manias © 2014-2017