with Glib;
with Glib.Generic_Properties; use Glib.Generic_Properties;
pragma Elaborate_All (Glib.Generic_Properties);
with Glib.Glist, Glib.GSlist;
pragma Elaborate_All (Glib.Glist);
pragma Elaborate_All (Glib.GSlist);
with System;
package Gtk.Enums is
type Gtk_Anchor_Type is
(Anchor_Center,
Anchor_North,
Anchor_North_West,
Anchor_North_East,
Anchor_South,
Anchor_South_East,
Anchor_South_West,
Anchor_West,
Anchor_East);
pragma Convention (C, Gtk_Anchor_Type);
Anchor_N : Gtk_Anchor_Type renames Anchor_North;
Anchor_NW : Gtk_Anchor_Type renames Anchor_North_West;
Anchor_NE : Gtk_Anchor_Type renames Anchor_North_East;
Anchor_S : Gtk_Anchor_Type renames Anchor_South;
Anchor_SW : Gtk_Anchor_Type renames Anchor_South_West;
Anchor_SE : Gtk_Anchor_Type renames Anchor_South_East;
Anchor_W : Gtk_Anchor_Type renames Anchor_West;
Anchor_E : Gtk_Anchor_Type renames Anchor_East;
type Gtk_Arrow_Type is
(Arrow_Up,
Arrow_Down,
Arrow_Left,
Arrow_Right);
type Gtk_Attach_Options is new Glib.Guint32;
Expand : constant Gtk_Attach_Options := 1;
Shrink : constant Gtk_Attach_Options := 2;
Fill : constant Gtk_Attach_Options := 4;
type Gtk_Button_Box_Style is
(Buttonbox_Default_Style,
Buttonbox_Spread,
Buttonbox_Edge,
Buttonbox_Start,
Buttonbox_End);
type Gtk_Curve_Type is
(Curve_Type_Linear,
Curve_Type_Spline,
Curve_Type_Free);
type Gtk_Delete_Type is
(Delete_Chars,
Delete_Word_Ends,
Delete_Words,
Delete_Display_Lines,
Delete_Display_Line_Ends,
Delete_Paragraph_Ends,
Delete_Paragraphs,
Delete_Whitespace);
type Gtk_Direction_Type is
(Dir_Tab_Forward,
Dir_Tab_Backward,
Dir_Up,
Dir_Down,
Dir_Left,
Dir_Right);
type Gtk_Expander_Style is
(Expander_Collapsed,
Expander_Semi_Collapsed,
Expander_Semi_Expanded,
Expander_Expanded);
type Gtk_Icon_Size is new Gint;
Icon_Size_Invalid : constant Gtk_Icon_Size := 0;
Icon_Size_Menu : constant Gtk_Icon_Size := 1;
Icon_Size_Small_Toolbar : constant Gtk_Icon_Size := 2;
Icon_Size_Large_Toolbar : constant Gtk_Icon_Size := 3;
Icon_Size_Button : constant Gtk_Icon_Size := 4;
Icon_Size_Dnd : constant Gtk_Icon_Size := 5;
Icon_Size_Dialog : constant Gtk_Icon_Size := 6;
type Gtk_Text_Direction is
(Text_Dir_None,
Text_Dir_Ltr,
Text_Dir_Rtl);
type Gtk_Justification is
(Justify_Left,
Justify_Right,
Justify_Center,
Justify_Fill);
type Gtk_Menu_Direction_Type is
(Menu_Dir_Parent,
Menu_Dir_Child,
Menu_Dir_Next,
Menu_Dir_Prev);
type Gtk_Metric_Type is (Pixels, Inches, Centimeters);
type Gtk_Movement_Step is
(Movement_Logical_Positions,
Movement_Visual_Positions,
Movement_Words,
Movement_Display_Lines,
Movement_Display_Line_Ends,
Movement_Paragraphs,
Movement_Paragraph_Ends,
Movement_Pages,
Movement_Buffer_Ends,
Movement_Horizontal_Pages);
type Gtk_Number_Up_Layout is
(Left_To_Right_Top_To_Bottom,
Left_To_Right_Bottom_To_Top,
Right_To_Left_Top_To_Bottom,
Right_To_Left_Bottom_To_Top,
Top_To_Bottom_Left_To_Right,
Top_To_Bottom_Right_To_Left,
Bottom_To_Top_Left_To_Right,
Bottom_To_Top_Right_To_Left);
type Gtk_Scroll_Step is
(Scroll_Steps,
Scroll_Pages,
Scroll_Ends,
Scroll_Horizontal_Steps,
Scroll_Horizontal_Pages,
Scroll_Horizontal_Ends);
type Gtk_Orientation is (Orientation_Horizontal, Orientation_Vertical);
type Gtk_Page_Orientation is
(Page_Orientation_Portrait,
Page_Orientation_Landscape,
Page_Orientation_Reverse_Portrait,
Page_Orientation_Reverse_Landscape);
type Gtk_Corner_Type is
(Corner_Top_Left,
Corner_Bottom_Left,
Corner_Top_Right,
Corner_Bottom_Right);
type Gtk_Grid_Lines is
(Grid_Lines_None,
Grid_Lines_Horizontal,
Grid_Lines_Vertical,
Grid_Lines_Both);
type Gtk_Pack_Type is (Pack_Start, Pack_End);
type Gtk_Path_Priority_Type is mod 2 ** 32;
Path_Prio_Lowest : constant Gtk_Path_Priority_Type := 0;
Path_Prio_Gtk : constant Gtk_Path_Priority_Type := 4;
Path_Prio_Application : constant Gtk_Path_Priority_Type := 8;
Path_Prio_Theme : constant Gtk_Path_Priority_Type := 10;
Path_Prio_RC : constant Gtk_Path_Priority_Type := 12;
Path_Prio_Highest : constant Gtk_Path_Priority_Type := 15;
Path_Prio_Mask : constant Gtk_Path_Priority_Type := 16#0f#;
type Gtk_Path_Type is (Path_Widget, Path_Widget_Class, Path_Class);
type Gtk_Policy_Type is (Policy_Always, Policy_Automatic, Policy_Never);
type Gtk_Position_Type is
(Pos_Left,
Pos_Right,
Pos_Top,
Pos_Bottom);
type Gtk_Page_Set is
(Page_Set_All,
Page_Set_Even,
Page_Set_Odd);
type Gtk_Print_Duplex is
(Print_Duplex_Simplex,
Print_Duplex_Horizontal,
Print_Duplex_Vertical);
type Gtk_Print_Pages is
(Print_Pages_All,
Print_Pages_Current,
Print_Pages_Ranges);
type Gtk_Print_Quality is
(Print_Quality_Low,
Print_Quality_Normal,
Print_Quality_High,
Print_Quality_Draft);
type Gtk_Relief_Style is (Relief_Normal, Relief_Half, Relief_None);
type Gtk_Resize_Mode is
(Resize_Parent,
Resize_Queue,
Resize_Immediate);
type Gtk_Scroll_Type is
(Scroll_None,
Scroll_Jump,
Scroll_Step_Backward,
Scroll_Step_Forward,
Scroll_Page_Backward,
Scroll_Page_Forward,
Scroll_Step_Up,
Scroll_Step_Down,
Scroll_Page_Up,
Scroll_Page_Down,
Scroll_Step_Left,
Scroll_Step_Right,
Scroll_Page_Left,
Scroll_Page_Right,
Scroll_Start,
Scroll_End);
type Gtk_Selection_Mode is
(Selection_None,
Selection_Single,
Selection_Browse,
Selection_Multiple);
type Gtk_Sensitivity_Type is
(Gtk_Sensitivity_Auto,
Gtk_Sensitivity_On,
Gtk_Sensitivity_Off);
type Gtk_Shadow_Type is
(Shadow_None,
Shadow_In,
Shadow_Out,
Shadow_Etched_In,
Shadow_Etched_Out);
type Gtk_State_Type is
(State_Normal,
State_Active,
State_Prelight,
State_Selected,
State_Insensitive);
type Gtk_Toolbar_Style is
(Toolbar_Icons,
Toolbar_Text,
Toolbar_Both,
Toolbar_Both_Horiz);
type Gtk_Unit is (Pixel, Points, Inch, MM);
type Gtk_Update_Type is
(Update_Continuous,
Update_Discontinuous,
Update_Delayed);
type Gtk_Visibility is
(Visibility_None,
Visibility_Partial,
Visibility_Full);
type Gtk_Window_Position is
(Win_Pos_None,
Win_Pos_Center,
Win_Pos_Mouse,
Win_Pos_Center_Always,
Win_Pos_Center_On_Parent);
type Gtk_Window_Type is
(Window_Toplevel,
Window_Popup);
type Gtk_Wrap_Mode is
(Wrap_None,
Wrap_Char,
Wrap_Word,
Wrap_Word_Char);
type Gtk_Sort_Type is
(Sort_Ascending,
Sort_Descending);
type Gtk_Pack_Direction is
(Pack_Direction_LTR,
Pack_Direction_RTL,
Pack_Direction_TTB,
Pack_Direction_BTT);
type Gtk_Text_Window_Type is
(Text_Window_Private,
Text_Window_Widget,
Text_Window_Text,
Text_Window_Left,
Text_Window_Right,
Text_Window_Top,
Text_Window_Bottom);
function Convert (S : String) return System.Address;
function Convert (S : System.Address) return String;
function Convert_I (I : Gint) return System.Address;
function Convert_A (S : System.Address) return Gint;
pragma Import (C, Convert_I, "convert_i");
pragma Import (C, Convert_A, "convert_a");
package String_List is new Glib.Glist.Generic_List (UTF8_String);
package String_SList is new Glib.GSlist.Generic_SList (UTF8_String);
procedure Free_String_List (List : in out String_List.Glist);
procedure Free_String_List (List : in out String_SList.GSlist);
package Gint_List is new
Glib.Glist.Generic_List (Gint, Convert_I, Convert_A);
function Convert_UI (I : Guint) return System.Address;
function Convert_UA (S : System.Address) return Guint;
pragma Import (C, Convert_UI, "convert_ui");
pragma Import (C, Convert_UA, "convert_ua");
package Guint_List is new
Glib.Glist.Generic_List (Guint, Convert_UI, Convert_UA);
pragma Convention (C, Gtk_Arrow_Type);
pragma Convention (C, Gtk_Button_Box_Style);
pragma Convention (C, Gtk_Curve_Type);
pragma Convention (C, Gtk_Delete_Type);
pragma Convention (C, Gtk_Direction_Type);
pragma Convention (C, Gtk_Grid_Lines);
pragma Convention (C, Gtk_Path_Type);
pragma Convention (C, Gtk_Expander_Style);
pragma Convention (C, Gtk_Text_Direction);
pragma Convention (C, Gtk_Justification);
pragma Convention (C, Gtk_Menu_Direction_Type);
pragma Convention (C, Gtk_Metric_Type);
pragma Convention (C, Gtk_Movement_Step);
pragma Convention (C, Gtk_Number_Up_Layout);
pragma Convention (C, Gtk_Orientation);
pragma Convention (C, Gtk_Page_Orientation);
pragma Convention (C, Gtk_Corner_Type);
pragma Convention (C, Gtk_Pack_Type);
pragma Convention (C, Gtk_Policy_Type);
pragma Convention (C, Gtk_Position_Type);
pragma Convention (C, Gtk_Page_Set);
pragma Convention (C, Gtk_Print_Duplex);
pragma Convention (C, Gtk_Print_Pages);
pragma Convention (C, Gtk_Print_Quality);
pragma Convention (C, Gtk_Relief_Style);
pragma Convention (C, Gtk_Resize_Mode);
pragma Convention (C, Gtk_Scroll_Type);
pragma Convention (C, Gtk_Selection_Mode);
pragma Convention (C, Gtk_Sensitivity_Type);
pragma Convention (C, Gtk_Shadow_Type);
pragma Convention (C, Gtk_State_Type);
pragma Convention (C, Gtk_Text_Window_Type);
pragma Convention (C, Gtk_Toolbar_Style);
pragma Convention (C, Gtk_Update_Type);
pragma Convention (C, Gtk_Unit);
pragma Convention (C, Gtk_Visibility);
pragma Convention (C, Gtk_Window_Position);
pragma Convention (C, Gtk_Window_Type);
pragma Convention (C, Gtk_Wrap_Mode);
pragma Convention (C, Gtk_Sort_Type);
package Relief_Style_Properties is new
Generic_Internal_Discrete_Property (Gtk_Relief_Style);
package Resize_Mode_Properties is new
Generic_Internal_Discrete_Property (Gtk_Resize_Mode);
package Arrow_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Arrow_Type);
package Shadow_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Shadow_Type);
package Update_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Update_Type);
package Position_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Position_Type);
package Toolbar_Style_Properties is new
Generic_Internal_Discrete_Property (Gtk_Toolbar_Style);
package Justification_Properties is new
Generic_Internal_Discrete_Property (Gtk_Justification);
package Orientation_Properties is new
Generic_Internal_Discrete_Property (Gtk_Orientation);
package Window_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Window_Type);
package Window_Position_Properties is new
Generic_Internal_Discrete_Property (Gtk_Window_Position);
package Text_Direction_Properties is new
Generic_Internal_Discrete_Property (Gtk_Text_Direction);
package Wrap_Mode_Properties is new
Generic_Internal_Discrete_Property (Gtk_Text_Direction);
package Policy_Properties is new
Generic_Internal_Discrete_Property (Gtk_Policy_Type);
package Pack_Direction_Properties is new
Generic_Internal_Discrete_Property (Gtk_Pack_Direction);
package Sort_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Sort_Type);
package Metric_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Metric_Type);
package Pack_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Pack_Type);
package Icon_Size_Properties is new
Generic_Internal_Discrete_Property (Gtk_Icon_Size);
package Selection_Mode_Properties is new
Generic_Internal_Discrete_Property (Gtk_Selection_Mode);
package Sensitivity_Properties is new
Generic_Internal_Discrete_Property (Gtk_Sensitivity_Type);
package BBox_Style_Properties is new
Generic_Internal_Discrete_Property (Gtk_Button_Box_Style);
package Curve_Type_Properties is new
Generic_Internal_Discrete_Property (Gtk_Curve_Type);
type Property_Gtk_Relief_Style is new Relief_Style_Properties.Property;
type Property_Gtk_Resize_Mode is new Resize_Mode_Properties.Property;
type Property_Gtk_Arrow_Type is new Arrow_Type_Properties.Property;
type Property_Gtk_Shadow_Type is new Shadow_Type_Properties.Property;
type Property_Gtk_Update_Type is new Update_Type_Properties.Property;
type Property_Gtk_Position_Type is new Position_Type_Properties.Property;
type Property_Gtk_Toolbar_Style is new Toolbar_Style_Properties.Property;
type Property_Gtk_Button_Box_Style is new BBox_Style_Properties.Property;
type Property_Gtk_Justification is new Justification_Properties.Property;
type Property_Gtk_Orientation is new Orientation_Properties.Property;
type Property_Gtk_Window_Type is new Window_Type_Properties.Property;
type Property_Gtk_Window_Position is new
Window_Position_Properties.Property;
type Property_Gtk_Text_Direction is new Text_Direction_Properties.Property;
type Property_Gtk_Wrap_Mode is new Wrap_Mode_Properties.Property;
type Property_Gtk_Policy_Type is new Policy_Properties.Property;
type Property_Pack_Direction is new Pack_Direction_Properties.Property;
type Property_Sort_Type is new Sort_Type_Properties.Property;
type Property_Metric_Type is new Metric_Type_Properties.Property;
type Property_Pack_Type is new Pack_Type_Properties.Property;
type Property_Gtk_Icon_Size is new Icon_Size_Properties.Property;
type Property_Gtk_Selection_Mode is new Selection_Mode_Properties.Property;
type Property_Gtk_Sensitivity_Type is new Sensitivity_Properties.Property;
type Property_Gtk_Curve_Type is new Curve_Type_Properties.Property;
type Gtk_Side_Type is (Side_Top, Side_Bottom, Side_Left, Side_Right);
pragma Convention (C, Gtk_Side_Type);
type Gtk_Match_Type is
(Match_All, Match_All_Tail, Match_Head, Match_Tail,
Match_Exact, Match_Last);
pragma Convention (C, Gtk_Match_Type);
type Gtk_Preview_Type is (Preview_Color, Preview_Grayscale);
pragma Convention (C, Gtk_Preview_Type);
type Gtk_Submenu_Direction is (Direction_Left, Direction_Right);
type Gtk_Submenu_Placement is (Top_Bottom, Left_Right);
type Gtk_Toolbar_Space_Style is (Toolbar_Space_Empty, Toolbar_Space_Line);
pragma Convention (C, Gtk_Toolbar_Space_Style);
package Toolbar_Space_Style_Properties is new
Generic_Internal_Discrete_Property (Gtk_Toolbar_Space_Style);
type Property_Toolbar_Space_Style is new
Toolbar_Space_Style_Properties.Property;
type Gtk_Tree_View_Mode is (Tree_View_Line, Tree_View_Item);
pragma Convention (C, Gtk_Submenu_Direction);
pragma Convention (C, Gtk_Submenu_Placement);
pragma Convention (C, Gtk_Tree_View_Mode);
end Gtk.Enums;