package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Cell_View_Record, Gtk_Cell_View);
package Implements_Gtk_Cell_Layout is new Glib.Types.Implements (Gtk.Cell_Layout.Gtk_Cell_Layout, Gtk_Cell_View_Record, Gtk_Cell_View);
package Implements_Gtk_Orientable is new Glib.Types.Implements (Gtk.Orientable.Gtk_Orientable, Gtk_Cell_View_Record, Gtk_Cell_View);
type Gtk_Cell_View_Record is new Gtk_Widget_Record with null record;
type Gtk_Cell_View is access all Gtk_Cell_View_Record'Class;
type Gtk_Cell_Layout_Data_Func is access procedure (Cell_Layout : Gtk.Cell_Layout.Gtk_Cell_Layout; Cell : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; Tree_Model : Gtk.Tree_Model.Gtk_Tree_Model; Iter : Gtk.Tree_Model.Gtk_Tree_Iter);
Background_Property : constant Glib.Properties.Property_String;
Background_Gdk_Property : constant Gdk.Color.Property_Gdk_Color;
Background_Rgba_Property : constant Gdk.RGBA.Property_RGBA;
Background_Set_Property : constant Glib.Properties.Property_Boolean;
Cell_Area_Property : constant Glib.Properties.Property_Object;
Cell_Area_Context_Property : constant Glib.Properties.Property_Object;
Draw_Sensitive_Property : constant Glib.Properties.Property_Boolean;
Fit_Model_Property : constant Glib.Properties.Property_Boolean;
Model_Property : constant Glib.Properties.Property_Interface;
procedure Gtk_New
( | Cell_View | : out Gtk_Cell_View); |
procedure Initialize
( | Cell_View | : not null access Gtk_Cell_View_Record'Class); |
function Gtk_Cell_View_New return Gtk_Cell_View;
procedure Gtk_New_With_Context
( | Cell_View | : out Gtk_Cell_View; |
Area | : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class; | |
Context | : not null access Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record'Class); |
procedure Initialize_With_Context
( | Cell_View | : not null access Gtk_Cell_View_Record'Class; |
Area | : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class; | |
Context | : not null access Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record'Class); |
function Gtk_Cell_View_New_With_Context
( | Area | : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class; |
Context | : not null access Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record'Class) return Gtk_Cell_View; |
procedure Gtk_New_With_Markup
( | Cell_View | : out Gtk_Cell_View; |
Markup | : UTF8_String); |
procedure Initialize_With_Markup
( | Cell_View | : not null access Gtk_Cell_View_Record'Class; |
Markup | : UTF8_String); |
function Gtk_Cell_View_New_With_Markup
( | Markup | : UTF8_String) return Gtk_Cell_View; |
procedure Gtk_New_With_Pixbuf
( | Cell_View | : out Gtk_Cell_View; |
Pixbuf | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class); |
procedure Initialize_With_Pixbuf
( | Cell_View | : not null access Gtk_Cell_View_Record'Class; |
Pixbuf | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class); |
function Gtk_Cell_View_New_With_Pixbuf
( | Pixbuf | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class) return Gtk_Cell_View; |
procedure Gtk_New_With_Text
( | Cell_View | : out Gtk_Cell_View; |
Text | : UTF8_String); |
procedure Initialize_With_Text
( | Cell_View | : not null access Gtk_Cell_View_Record'Class; |
Text | : UTF8_String); |
function Gtk_Cell_View_New_With_Text
( | Text | : UTF8_String) return Gtk_Cell_View; |
function Get_Type return Glib.GType;
function Get_Displayed_Row
( | Cell_View | : not null access Gtk_Cell_View_Record) return Gtk.Tree_Model.Gtk_Tree_Path; |
procedure Set_Displayed_Row
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Path | : Gtk.Tree_Model.Gtk_Tree_Path); |
function Get_Draw_Sensitive
( | Cell_View | : not null access Gtk_Cell_View_Record) return Boolean; |
procedure Set_Draw_Sensitive
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Draw_Sensitive | : Boolean); |
function Get_Fit_Model
( | Cell_View | : not null access Gtk_Cell_View_Record) return Boolean; |
procedure Set_Fit_Model
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Fit_Model | : Boolean); |
function Get_Model
( | Cell_View | : not null access Gtk_Cell_View_Record) return Gtk.Tree_Model.Gtk_Tree_Model; |
procedure Set_Model
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Model | : Gtk.Tree_Model.Gtk_Tree_Model); |
function Get_Size_Of_Row
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Path | : Gtk.Tree_Model.Gtk_Tree_Path; | |
Requisition | : access Gtk.Widget.Gtk_Requisition) return Boolean; |
procedure Set_Background_Color
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Color | : Gdk.Color.Gdk_Color); |
procedure Set_Background_Rgba
( | Cell_View | : not null access Gtk_Cell_View_Record; |
Rgba | : Gdk.RGBA.Gdk_RGBA); |
procedure Set_Cell_Data_Func
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; | |
Func | : Gtk_Cell_Layout_Data_Func); |
procedure Add_Attribute
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; | |
Attribute | : UTF8_String; | |
Column | : Gint); |
procedure Clear
( | Cell_Layout | : not null access Gtk_Cell_View_Record); |
procedure Clear_Attributes
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class); |
function Get_Cells
( | Cell_Layout | : not null access Gtk_Cell_View_Record) return Glib.Object.Object_Simple_List.Glist; |
procedure Pack_End
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; | |
Expand | : Boolean); |
procedure Pack_Start
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; | |
Expand | : Boolean); |
procedure Reorder
( | Cell_Layout | : not null access Gtk_Cell_View_Record; |
Cell | : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class; | |
Position | : Gint); |
function Get_Orientation
( | Self | : not null access Gtk_Cell_View_Record) return Gtk.Enums.Gtk_Orientation; |
procedure Set_Orientation
( | Self | : not null access Gtk_Cell_View_Record; |
Orientation | : Gtk.Enums.Gtk_Orientation); |
function "+"
( | Widget | : access Gtk_Cell_View_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Cell_View renames Implements_Gtk_Buildable.To_Object; |
function "+"
( | Widget | : access Gtk_Cell_View_Record'Class) return Gtk.Cell_Layout.Gtk_Cell_Layout renames Implements_Gtk_Cell_Layout.To_Interface; |
function "-"
( | Interf | : Gtk.Cell_Layout.Gtk_Cell_Layout) return Gtk_Cell_View renames Implements_Gtk_Cell_Layout.To_Object; |
function "+"
( | Widget | : access Gtk_Cell_View_Record'Class) return Gtk.Orientable.Gtk_Orientable renames Implements_Gtk_Orientable.To_Interface; |
function "-"
( | Interf | : Gtk.Orientable.Gtk_Orientable) return Gtk_Cell_View renames Implements_Gtk_Orientable.To_Object; |
A Gtk.Cell_View.Gtk_Cell_View displays a single row of a Gtk.Tree_Model.Gtk_Tree_Model using a Gtk.Cell_Area.Gtk_Cell_Area and Gtk.Cell_Area_Context.Gtk_Cell_Area_Context. A Gtk.Cell_Area_Context.Gtk_Cell_Area_Context can be provided to the Gtk.Cell_View.Gtk_Cell_View at construction time in order to keep the cellview in context of a group of cell views, this ensures that the renderers displayed will be properly aligned with eachother (like the aligned cells in the menus of Gtk.Combo_Box.Gtk_Combo_Box).
Gtk.Cell_View.Gtk_Cell_View is Gtk.Orientable.Gtk_Orientable in order to decide in which orientation the underlying Gtk.Cell_Area_Context.Gtk_Cell_Area_Context should be allocated. Taking the Gtk.Combo_Box.Gtk_Combo_Box menu as an example, cellviews should be oriented horizontally if the menus are listed top-to-bottom and thus all share the same width but may have separate individual heights (left-to-right menus should be allocated vertically since they all share the same height but may have variable widths).