mirror of
				https://github.com/Drezil/dear-imgui.hs.git
				synced 2025-11-04 07:01:06 +01:00 
			
		
		
		
	Upgrade to dear-imgui v1.82 (#57)
This commit is contained in:
		@@ -75,7 +75,7 @@ import Data.HashMap.Strict
 | 
			
		||||
import qualified Data.HashMap.Strict as HashMap
 | 
			
		||||
  ( fromList, insert, lookup )
 | 
			
		||||
 | 
			
		||||
-- dear-imgui-generator 
 | 
			
		||||
-- dear-imgui-generator
 | 
			
		||||
import DearImGui.Generator.Tokeniser
 | 
			
		||||
  ( Tok(..) )
 | 
			
		||||
import DearImGui.Generator.Types
 | 
			
		||||
@@ -134,18 +134,20 @@ headers = do
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Misc data structures" )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Obsolete functions" )
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor)" )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Helpers" )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Drawing API" )
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData)" )
 | 
			
		||||
  skipManyTill anySingle ( try . lookAhead $ many comment *> keyword "enum" )
 | 
			
		||||
  drawingEnums <- many ( enumeration enumNamesAndTypes )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Font API" )
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont)" )
 | 
			
		||||
  skipManyTill anySingle ( try . lookAhead $ many comment *> keyword "enum" )
 | 
			
		||||
  fontEnums <- many ( enumeration enumNamesAndTypes )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Viewports" )
 | 
			
		||||
 | 
			
		||||
  _ <- skipManyTill anySingle ( namedSection "Obsolete functions and types" )
 | 
			
		||||
 | 
			
		||||
  let
 | 
			
		||||
    enums :: [ Enumeration () ]
 | 
			
		||||
    enums = basicEnums <> drawingEnums <> fontEnums
 | 
			
		||||
@@ -208,7 +210,7 @@ enumeration enumNamesAndTypes = do
 | 
			
		||||
    docs :: [Comment]
 | 
			
		||||
    docs = forwardDoc : CommentText "" : inlineDocs
 | 
			
		||||
  reservedSymbol '{'
 | 
			
		||||
  ( patterns, EnumState { enumSize, hasExplicitCount } ) <- 
 | 
			
		||||
  ( patterns, EnumState { enumSize, hasExplicitCount } ) <-
 | 
			
		||||
    ( `runStateT` EnumState { enumValues = mempty, currEnumTag = 0, enumSize = 0, hasExplicitCount = False } ) $
 | 
			
		||||
      catMaybes
 | 
			
		||||
          <$> many
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								imgui
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								imgui
									
									
									
									
									
								
							 Submodule imgui updated: 58075c4414...35b1148efb
									
								
							
		Reference in New Issue
	
	Block a user