## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

1.     -----------------------------------------------------------------------

2.     --               GtkAda - Ada95 binding for Gtk+/Gnome               --

3.     --                                                                   --

4.     --   Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet   --

5.     --                Copyright (C) 2000-2011, AdaCore                   --

6.     --                                                                   --

7.     -- This library is free software; you can redistribute it and/or     --

8.     -- modify it under the terms of the GNU General Public               --

9.     -- License as published by the Free Software Foundation; either      --

10.     -- version 2 of the License, or (at your option) any later version.  --

11.     --                                                                   --

12.     -- This library is distributed in the hope that it will be useful,   --

13.     -- but WITHOUT ANY WARRANTY; without even the implied warranty of    --

14.     -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU --

15.     -- General Public License for more details.                          --

16.     --                                                                   --

17.     -- You should have received a copy of the GNU General Public         --

18.     -- License along with this library; if not, write to the             --

19.     -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      --

20.     -- Boston, MA 02111-1307, USA.                                       --

21.     --                                                                   --

22.     -- As a special exception, if other files instantiate generics from  --

23.     -- this unit, or you link this unit with other files to produce an   --

24.     -- executable, this  unit  does not  by itself cause  the resulting  --

25.     -- executable to be covered by the GNU General Public License. This  --

26.     -- exception does not however invalidate any other reasons why the   --

27.     -- executable file  might be covered by the  GNU Public License.     --

28.     -----------------------------------------------------------------------

30.     --  <description>

31.     --  This widget is a base class for all the widgets that require an alignment

32.     --  and padding. This widget can not be instantiated directly.

33.     --

34.     --  </description>

35.     --  <group>Abstract base classes</group>

37.     pragma Warnings (Off, "*is already use-visible*");

38.     with GlibTo API docTo specTo body;            use GlibTo API docTo specTo body;

39.     with Glib.PropertiesTo API docTo specTo body; use Glib.PropertiesTo API docTo specTo body;

40.     with Glib.TypesTo API docTo specTo body;      use Glib.TypesTo API docTo specTo body;

41.     with Gtk.BuildableTo API docTo specTo body;   use Gtk.BuildableTo API docTo specTo body;

42.     with Gtk.WidgetTo API docTo specTo body;      use Gtk.WidgetTo API docTo specTo body;

44.     package Gtk.MiscTo API docTo specTo body is

46.        type Gtk_Misc_Record is new Gtk_Widget_RecordTo API docTo specTo body with null record;

47.        type Gtk_Misc is access all Gtk_Misc_RecordTo API docTo spec'Class;

49.        ------------------

50.        -- Constructors --

51.        ------------------

53.        function Get_TypeTo API docTo body return Glib.GTypeTo API docTo spec;

54.        pragma Import (C, Get_TypeTo API docTo spec, "gtk_misc_get_type");

56.        -------------

57.        -- Methods --

58.        -------------

60.        procedure Get_AlignmentTo API docTo body

61.           (Misc   : access Gtk_Misc_RecordTo API docTo spec;

62.            Xalign : out GfloatTo API docTo spec;

63.            Yalign : out GfloatTo API docTo spec);

64.        procedure Set_AlignmentTo API docTo body

65.           (Misc   : access Gtk_Misc_RecordTo API docTo spec;

66.            Xalign : GfloatTo API docTo spec;

67.            Yalign : GfloatTo API docTo spec);

68.        --  Modify the alignment for the widget. Xalign and Yalign are both values

69.        --  between 0.0 and 1.0 that specify the alignment: if Xalign is 0.0, the

70.        --  widget will be left aligned; if it is 0.5, the widget will be centered;

71.        --  if it is 1.0 the widget will be right aligned. Yalign is from top (0.0)

72.        --  to bottom (1.0). Both Xalign and Yalign will be constrained to the range

73.        --  0.0 .. 1.0 Note that if the widget fills its allocated area, these two

74.        --  parameters won't have any effect.

76.        procedure Get_PaddingTo API docTo body

77.           (Misc : access Gtk_Misc_RecordTo API docTo spec;

78.            Xpad : out GintTo API docTo spec;

79.            Ypad : out GintTo API docTo spec);

80.        procedure Set_PaddingTo API docTo body

81.           (Misc : access Gtk_Misc_RecordTo API docTo spec;

82.            Xpad : GintTo API docTo spec;

83.            Ypad : GintTo API docTo spec);

84.        --  Set the padding (i.e. the extra spaces on the side of the widget). If

85.        --  Xpad or Ypad is negative, they will be changed to 0.

87.        ----------------

88.        -- Interfaces --

89.        ----------------

90.        --  This class implements several interfaces. See Glib.Types

91.        --

92.        --  - "Buildable"

94.        package Implements_Buildable is new Glib.Types.ImplementsTo API docTo specTo body

95.          (Gtk.Buildable.Gtk_BuildableTo API docTo spec, Gtk_Misc_RecordTo API docTo spec, Gtk_MiscTo API docTo spec);

96.        function "+"

97.          (Widget : access Gtk_Misc_RecordTo API docTo spec'Class)

98.        return Gtk.Buildable.Gtk_BuildableTo API docTo spec

99.        renames Implements_Buildable.To_InterfaceTo API docTo specTo body;

100.        function "-"

101.          (Interf : Gtk.Buildable.Gtk_BuildableTo API docTo spec)

102.        return Gtk_MiscTo API docTo spec

103.        renames Implements_Buildable.To_ObjectTo API docTo specTo body;

105.        ----------------

106.        -- Properties --

107.        ----------------

108.        --  The following properties are defined for this widget. See

109.        --  Glib.Properties for more information on properties)

110.        --

111.        --  Name: Xalign_Property

112.        --  Type: Gfloat

113.        --  Flags: read-write

114.        --

115.        --  Name: Xpad_Property

116.        --  Type: Gint

117.        --  Flags: read-write

118.        --

119.        --  Name: Yalign_Property

120.        --  Type: Gfloat

121.        --  Flags: read-write

122.        --

123.        --  Name: Ypad_Property

124.        --  Type: Gint

125.        --  Flags: read-write

127.        Xalign_Property : constant Glib.Properties.Property_FloatTo API docTo spec;

128.        Xpad_Property : constant Glib.Properties.Property_IntTo API docTo spec;

129.        Yalign_Property : constant Glib.Properties.Property_FloatTo API docTo spec;

130.        Ypad_Property : constant Glib.Properties.Property_IntTo API docTo spec;

132.     private

133.        Xalign_PropertyTo API docTo spec : constant Glib.Properties.Property_FloatTo API docTo spec :=

134.          Glib.Properties.BuildTo API docTo specTo body ("xalign");

135.        Xpad_PropertyTo API docTo spec : constant Glib.Properties.Property_IntTo API docTo spec :=

136.          Glib.Properties.BuildTo API docTo specTo body ("xpad");

137.        Yalign_PropertyTo API docTo spec : constant Glib.Properties.Property_FloatTo API docTo spec :=

138.          Glib.Properties.BuildTo API docTo specTo body ("yalign");

139.        Ypad_PropertyTo API docTo spec : constant Glib.Properties.Property_IntTo API docTo spec :=

140.          Glib.Properties.BuildTo API docTo specTo body ("ypad");

141.     end Gtk.MiscTo API docTo specTo body;