Toc Gallery Index Tree Gtk.Enums

Description

This package contains a number of types that are shared by several widgets in GtkAda.

Types

  • 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);
    Gtk_Anchor_Type indicates the exact location of the widget on its side. Note that not all anchors are relevant for each side.

    For instance, if you put a widget on Side_Right, with an anchor of Anchor_North, Anchor_North_West or Anchor_North_East, the widget will in fact appear on the upper right side of the remaining space in the container.

    Thus, if a previous child was added on Side_North, then the new child will only appear on the second line in the container. The order the children are inserted into the container is important.

  • type Gtk_Arrow_Type is (Arrow_Up, Arrow_Down, Arrow_Left, Arrow_Right);
    The various types of arrows that can be represented by GtkAda
  • type Gtk_Attach_Options is new Glib.Guint32;
    The various options used for attaching widgets to tables
  • type Gtk_Button_Box_Style is (Buttonbox_Default_Style, Buttonbox_Spread, Buttonbox_Edge, Buttonbox_Start, Buttonbox_End);
    The style for button boxes (see gtk-button_box.ads)
  • type Gtk_Corner_Type is (Corner_Top_Left, Corner_Bottom_Left, Corner_Top_Right, Corner_Bottom_Right);
    Type used by Set_Placement below to determine the location of the child widget with respect to the scrollbars. Corner_Top_Left means the child is in the top left, with the scrollbars underneath and to the right.
  • 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);
    The deletion modes used in the text editor. Delete_Word_Ends will delete only the portion of the word to the left/right of the cursor if we are in the middle of a word. Delete_Paragraph_Ends acts like c-k in Emacs: it deletes the text until, but not including, the end of line. Delete_Paragraphs acts like c-k in pico: it deletes the whole line. Delete_Whitespace acts like M-\ in Emacs, and removes all white spaces surrounding the cursor.
  • type Gtk_Direction_Type is (Dir_Tab_Forward, Dir_Tab_Backward, Dir_Up, Dir_Down, Dir_Left, Dir_Right);
    Focus movement types
  • type Gtk_Expander_Style is (Expander_Collapsed, Expander_Semi_Collapsed, Expander_Semi_Expanded, Expander_Expanded);
    Expander styles, as seen in trees
  • type Gtk_Icon_Size is new Gint;
  • type Gtk_Justification is (Justify_Left, Justify_Right, Justify_Center, Justify_Fill);
    Within a paragraph, text can be justified in various ways: aligned on the left, aligned on the right, centered, or justified (in which case the width of the spaces might vary so that the text is aligned on both sides).
  • type Gtk_Menu_Direction_Type is (Menu_Dir_Parent, Menu_Dir_Child, Menu_Dir_Next, Menu_Dir_Prev);
    Direction where to move the selection.
  • type Gtk_Metric_Type is (Pixels, Inches, Centimeters);
    The unit to use when you display a ruler at the top of a drawing area.
  • type Gtk_Orientation is (Orientation_Horizontal, Orientation_Vertical);
    Orientation of widgets. Most widgets have no such notion, but for instance toolbars can display different kind of information depending on their current orientation
  • type Gtk_Pack_Direction is (Pack_Direction_LTR, Pack_Direction_RTL, Pack_Direction_TTB, Pack_Direction_BTT);
    The direction in which children should be packed in their parents (Left-to-Right, Right-To-Left, Top-To-Bottom or Bottom-To-Top)
  • type Gtk_Pack_Type is (Pack_Start, Pack_End);
    Whether items should be added at the start or at the end of the list of children for a widget. This impacts the visual rendering of containers
  • type Gtk_Path_Priority_Type is mod 2 ** 32;
    Priorities for path lookups
  • type Gtk_Path_Type is (Path_Widget, Path_Widget_Class, Path_Class);
    Widget path types
  • type Gtk_Policy_Type is (Policy_Always, Policy_Automatic, Policy_Never);
    When should scrollbars be made visible in Gtk_Scrolled_Window
  • type Gtk_Position_Type is (Pos_Left, Pos_Right, Pos_Top, Pos_Bottom);
    Use to define the position of children within a container
  • type Gtk_Relief_Style is (Relief_Normal, Relief_Half, Relief_None);
    Explains how the border of widgets should be displayed
  • type Gtk_Scroll_Step is (Scroll_Steps, Scroll_Pages, Scroll_Ends, Scroll_Horizontal_Steps, Scroll_Horizontal_Pages, Scroll_Horizontal_Ends);
    The behavior of scrollbars for editors
  • 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);
    How clists should be scrolled
  • type Gtk_Selection_Mode is (Selection_None, Selection_Single, Selection_Browse, Selection_Multiple);
    Indicates what selection is allowed in a tree (no selection allowed, a single line, a single line when the mouse is released, or multiple lines).
  • type Gtk_Shadow_Type is (Shadow_None, Shadow_In, Shadow_Out, Shadow_Etched_In, Shadow_Etched_Out);
    The type of shadows that can be drawn around widgets
  • type Gtk_Sort_Type is (Sort_Ascending, Sort_Descending);
    How to sort
  • type Gtk_State_Type is (State_Normal, State_Active, State_Prelight, State_Selected, State_Insensitive);
    Widgets can be in various states. This impacts their visual rendering, but can also impact whether they react to events or not (they do not when in State_Insensitive mode).
  • type Gtk_Text_Direction is (Text_Dir_None, Text_Dir_Ltr, Text_Dir_Rtl);
    The directory in which text should be written (left to right or right to left).
  • 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);
    The various components of a Gtk.Text_View widget
  • type Gtk_Toolbar_Style is (Toolbar_Icons, Toolbar_Text, Toolbar_Both, Toolbar_Both_Horiz);
    The style of toolbars. Toolbar_Both_Horiz indicates that both icon and text should be displayed, arranged horizontally.
  • type Gtk_Update_Type is (Update_Continuous, Update_Discontinuous, Update_Delayed);
    For some widgets, this indicates how often they should be updated
  • type Gtk_Visibility is (Visibility_None, Visibility_Partial, Visibility_Full);
    Generic visibility flags. This indicate how visible a window currently is.
  • type Gtk_Window_Position is (Win_Pos_None, Win_Pos_Center, Win_Pos_Mouse, Win_Pos_Center_Always, Win_Pos_Center_On_Parent);
    The position at which a new window should be initially displayed on the screen.
  • type Gtk_Window_Type is (Window_Toplevel, Window_Popup);
    GtkAda supports multiple types of windows. They all act as top-level containers, but the amount of decoration is different. A popup window has no title bar for instance.
  • type Gtk_Wrap_Mode is (Wrap_None, Wrap_Char, Wrap_Word, Wrap_Word_Char);
    Text wrapping algorithm. This indicates where a text widget is allowed to break its contents to display multiple lines when a line doesn't fit on the screen.
  • type Property_Gtk_Button_Box_Style is new Button_Box_Style_Properties.Property;
  • type Property_Gtk_Justification is new Justification_Properties.Property;
  • type Property_Gtk_Position_Type is new Position_Type_Properties.Property;
  • type Property_Gtk_Text_Direction is new Text_Direction_Properties.Property;
  • type Property_Gtk_Toolbar_Style is new Toolbar_Style_Properties.Property;
  • type Property_Gtk_Window_Position is new Window_Position_Properties.Property;

Subprograms

    Some Glib instantiations

  • 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;
  • procedure Free_String_List (List : in out String_List.Glist);
    procedure Free_String_List (List : in out String_SList.GSlist);
    Free the memory occupied by all the strings in the list, as well as the memory occupied by the list itself.
  • function Convert_UI (I : Guint) return System.Address;
    function Convert_UA (S : System.Address) return Guint;

Alphabetical Index