-
Notifications
You must be signed in to change notification settings - Fork 13
Display Monitor functions
This category contains functions for handling multiple monitors. More...
| Type | Name |
|---|---|
| struct |
fplDisplayInfo A struct containing information about a display. More... |
| struct |
fplDisplayMode A structure containing one set of display mode settings, such as size, refresh rate, etc. More... |
| Type | Name |
|---|---|
| fpl_platform_api size_t |
fplGetDisplayCount (void) Gets the number of active displays. |
| fpl_platform_api bool |
fplGetDisplayFromPosition (const int32_t x, const int32_t y, fplDisplayInfo *outInfo) Finds the display from a cursor position and retrieves the information for it. |
| fpl_platform_api size_t |
fplGetDisplayModes (const char *id, fplDisplayMode *outModes, const size_t maxDisplayModeCount) Gets the information about the available display modes for the given display id. |
| fpl_platform_api size_t |
fplGetDisplays (fplDisplayInfo *outDisplays, const size_t maxDisplayCount) Gets information about all active displays. |
| fpl_platform_api bool |
fplGetPrimaryDisplay (fplDisplayInfo *outInfo) Gets information about the primary display. |
| fpl_platform_api bool |
fplGetWindowDisplay (fplDisplayInfo *outInfo) Gets information about the display for the FPL window. |
This category contains functions for handling multiple monitors.
fpl_platform_api size_t fplGetDisplayCount ( void )Gets the number of active displays.
Returns: Returns the number of active displays.
fpl_platform_api bool fplGetDisplayFromPosition ( const int32_t x, const int32_t y, fplDisplayInfo * outInfo )Finds the display from a cursor position and retrieves the information for it.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | x | The x position in screen coordinates. |
| [in] | y | The y position in screen coordinates. |
| [out] | outInfo | Reference to the display information structure fplDisplayInfo. |
Returns: Returns true when the display was found, false otherwise.
fpl_platform_api size_t fplGetDisplayModes ( const char * id, fplDisplayMode * outModes, const size_t maxDisplayModeCount )Gets the information about the available display modes for the given display id.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | id | The display id. |
| [out] | outModes | The array of display modes fplDisplayMode. |
| [in] | maxDisplayModeCount | The maximum number of display modes available in the output array. |
Returns: Returns the number of found display modes.
fpl_platform_api size_t fplGetDisplays ( fplDisplayInfo * outDisplays, const size_t maxDisplayCount )Gets information about all active displays.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | outDisplays | The output array of display information structures fplDisplayInfo. |
| [in] | maxDisplayCount | The maximum number of display infos available in the output array. |
Returns: Returns the total number of active displays.
fpl_platform_api bool fplGetPrimaryDisplay ( fplDisplayInfo * outInfo)Gets information about the primary display.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | outInfo | Reference to the display information structure fplDisplayInfo. |
Returns: Returns true when the primary display was found, false otherwise.
fpl_platform_api bool fplGetWindowDisplay ( fplDisplayInfo * outInfo)Gets information about the display for the FPL window.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | outInfo | Reference to the display information structure fplDisplayInfo. |
Returns: Returns true when the display for the window was found, false otherwise.
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities