Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
102
MML_GDC_DISP_WIN_ATTR_SCREEN
Select the screen(s), where the layer is displayed. Alpha layers do not have this attribute. See
MML_GDC_DISP_OUTPUT_SCREEN.
MML_GDC_DISP_OUTPUT_SCREEN_PRIMARY = Show layer on screen 0.
MML_GDC_DISP_OUTPUT_SCREEN_SECONDARY = Show layer on screen 1.
MML_GDC_DISP_OUTPUT_SCREEN_BOTH = Show layer on both screens.
MML_GDC_DISP_WIN_ATTR_COLOR
Set window color. The format of the color value is 0xRRGGBBAA. Three use cases are possible for the window
color.
If the color surface set to the window has no RGB color, the surface fetches the RGB color from the window
color. The window color will be ignored if the surface brings the RGB color by itself.
If blend mode is MML_GDC_DISP_BLEND_TRANSPARENCY, the transparency color is defined by the RGB
part of the window color.
If blend mode is MML_GDC_DISP_BLEND_GLOBAL_ALPHA, the global alpha value is defined by the alpha
part of the window color.
MML_GDC_DISP_WIN_ATTR_DISABLE
Switch the window off.
Default value = 0, window is enabled.
Set value = 1, window is switched off and invisible on screen.
MML_GDC_DISP_WIN_ATTR_SWAP_INTERVAL
Selects the swap interval to be used for displaying sur- faces. This will be used if different surfaces get shown
after each other using mmlGdcDispWinSetSurface and mmlGdcDispWinCommit. The default value = 1.
The minimum allowed value = 1 (0 is possible but results in display flicker). The maximum allowed value =
(2
∧
31)-1.
MML_GDC_DISP_WIN_ATTR_MAX_BUFFER
Defines the maximum number of framebuffers that can be queued by the driver for a window. If an application
submits surfaces using mmlGdcDispWinSetSurface and mmlGdcDispWinCommit faster than they can be
displayed, the driver queues them up to the maximum specified by
MML_GDC_DISP_WIN_ATTR_MAX_BUFFER.
This attribute can only be read.
MML_GDC_DISP_WIN_ATTR_TILE_MODE
This attribute can be used to define the tiling mode for windows.
The tile mode defines the color of pixels outside the surface but inside the window. This is relevant if the
assigned surface is smaller than the window or the geometry matrix for the window if moves the surface out of
the window. The tile mode must be a value of MML_GDC_DISP_TILE_MODE. The default setting is
MML_GDC_DISP_TILE_MODE_CLIP.
Note:
If MML_GDC_DISP_TILE_MODE_CONST is set for a window without an attached surface than the const color
fills the window area.
Tip:
The mode MML_GDC_DISP_TILE_MODE_PAD can be used to generate a gradient background with a single
line surface.
MML_GDC_DISP_WIN_ATTR_FEATURE
This attribute can be used by mmlGdcDispWinGetAttribute only.
It returns the available features for the given windows handle. An application must use the features parameter
of the MML_GDC_DISP_WINDOW_PROPERTIES structure to request a window feature when creating the
window.