Blender V5.3
GHOST_WindowWaylandCSD.cc File Reference
#include "GHOST_WindowWaylandCSD.hh"
#include "GHOST_Types.hh"
#include "GHOST_utildefines.hh"
#include <array>
#include <string_view>

Go to the source code of this file.

Functions

Private CSD Integration
static std::array< std::string_view, 2 > string_partition (std::string_view s, const char delimiter)
static int string_parse_buttons (std::string_view buttons, uint32_t *button_mask_p, GHOST_TCSD_Type *output, const int output_capacity)
Public CSD API
bool GHOST_WindowCSD_LayoutFromString (GHOST_CSD_Layout &layout, const std::string_view buttons)
void GHOST_WindowCSD_LayoutDefault (GHOST_CSD_Layout &layout)
bool GHOST_WindowCSD_Check (GWL_CurrentDesktopType desktop_type)

Function Documentation

◆ GHOST_WindowCSD_Check()

bool GHOST_WindowCSD_Check ( GWL_CurrentDesktopType desktop_type)

◆ GHOST_WindowCSD_LayoutDefault()

◆ GHOST_WindowCSD_LayoutFromString()

bool GHOST_WindowCSD_LayoutFromString ( GHOST_CSD_Layout & layout,
const std::string_view buttons )

◆ string_parse_buttons()

int string_parse_buttons ( std::string_view buttons,
uint32_t * button_mask_p,
GHOST_TCSD_Type * output,
const int output_capacity )
static

◆ string_partition()

std::array< std::string_view, 2 > string_partition ( std::string_view s,
const char delimiter )
static

Definition at line 22 of file GHOST_WindowWaylandCSD.cc.

References string_partition().

Referenced by GHOST_WindowCSD_LayoutFromString(), and string_partition().