packages feed

dear-imgui-raw-1.0.0: src/DearImGui/Raw/Enums/ImGuiTableBgTarget.hsc

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}

-- This file was generated by dear-bindings-ffi. Do not edit by hand.

module DearImGui.Raw.Enums.ImGuiTableBgTarget
  ( ImGuiTableBgTarget
  , pattern CellBg
  , pattern None
  , pattern RowBg0
  , pattern RowBg1
  ) where

import Foreign.C.Types

#include "dcimgui_nodefaultargfunctions.h"

-- typedefs

-- | Enum for ImGui::TableSetBgColor()
-- Background colors are rendering in 3 layers:
--  - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set.
--  - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set.
--  - Layer 2: draw with CellBg color if set.
-- The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color.
-- When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows.
-- If you set the color of RowBg0 target, your color will override the existing RowBg0 color.
-- If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color.
type ImGuiTableBgTarget = CInt

-- enums

pattern None :: ImGuiTableBgTarget
pattern None = #{const ImGuiTableBgTarget_None}

-- | Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used)
pattern RowBg0 :: ImGuiTableBgTarget
pattern RowBg0 = #{const ImGuiTableBgTarget_RowBg0}

-- | Set row background color 1 (generally used for selection marking)
pattern RowBg1 :: ImGuiTableBgTarget
pattern RowBg1 = #{const ImGuiTableBgTarget_RowBg1}

-- | Set cell background color (top-most color)
pattern CellBg :: ImGuiTableBgTarget
pattern CellBg = #{const ImGuiTableBgTarget_CellBg}