/usr/share/ada/adainclude/gtkada/gtk-button.ads is in libgtkada16.1.0-dev 17.0.2017-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet --
-- Copyright (C) 2000-2017, AdaCore --
-- --
-- This library is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the Free --
-- Software Foundation; either version 3, or (at your option) any later --
-- version. This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- --
-- --
-- --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- <description>
-- The Gtk.Button.Gtk_Button widget is generally used to trigger a callback
-- function that is called when the button is pressed. The various signals and
-- how to use them are outlined below.
--
-- The Gtk.Button.Gtk_Button widget can hold any valid child widget. That is,
-- it can hold almost any other standard Gtk.Widget.Gtk_Widget. The most
-- commonly used child is the Gtk.Label.Gtk_Label.
--
-- </description>
-- <screenshot>gtk-button</screenshot>
-- <group>Buttons and Toggles</group>
-- <testgtk>create_buttons.adb</testgtk>
pragma Ada_2005;
pragma Warnings (Off, "*is already use-visible*");
with Gdk; use Gdk;
with Glib; use Glib;
with Glib.Object; use Glib.Object;
with Glib.Properties; use Glib.Properties;
with Glib.Types; use Glib.Types;
with Glib.Variant; use Glib.Variant;
with Gtk.Action; use Gtk.Action;
with Gtk.Actionable; use Gtk.Actionable;
with Gtk.Activatable; use Gtk.Activatable;
with Gtk.Bin; use Gtk.Bin;
with Gtk.Buildable; use Gtk.Buildable;
with Gtk.Enums; use Gtk.Enums;
with Gtk.Widget; use Gtk.Widget;
package Gtk.Button is
type Gtk_Button_Record is new Gtk_Bin_Record with null record;
type Gtk_Button is access all Gtk_Button_Record'Class;
------------------
-- Constructors --
------------------
procedure Gtk_New_From_Icon_Name
(Button : out Gtk_Button;
Icon_Name : UTF8_String;
Size : Gtk.Enums.Gtk_Icon_Size);
procedure Initialize_From_Icon_Name
(Button : not null access Gtk_Button_Record'Class;
Icon_Name : UTF8_String;
Size : Gtk.Enums.Gtk_Icon_Size);
-- Creates a new button containing an icon from the current icon theme.
-- If the icon name isn't known, a "broken image" icon will be displayed
-- instead. If the current icon theme is changed, the icon will be updated
-- appropriately.
-- This function is a convenience wrapper around gtk_button_new and
-- Gtk.Button.Set_Image.
-- Since: gtk+ 3.10
-- Initialize_From_Icon_Name does nothing if the object was already
-- created with another call to Initialize* or G_New.
-- "icon_name": an icon name
-- "size": an icon size
function Gtk_Button_New_From_Icon_Name
(Icon_Name : UTF8_String;
Size : Gtk.Enums.Gtk_Icon_Size) return Gtk_Button;
-- Creates a new button containing an icon from the current icon theme.
-- If the icon name isn't known, a "broken image" icon will be displayed
-- instead. If the current icon theme is changed, the icon will be updated
-- appropriately.
-- This function is a convenience wrapper around gtk_button_new and
-- Gtk.Button.Set_Image.
-- Since: gtk+ 3.10
-- "icon_name": an icon name
-- "size": an icon size
procedure Gtk_New_From_Stock
(Button : out Gtk_Button;
Stock_Id : UTF8_String);
procedure Initialize_From_Stock
(Button : not null access Gtk_Button_Record'Class;
Stock_Id : UTF8_String);
-- Creates a new Gtk.Button.Gtk_Button containing the image and text from
-- a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK
-- and GTK_STOCK_APPLY.
-- If Stock_Id is unknown, then it will be treated as a mnemonic label (as
-- for Gtk.Button.Gtk_New_With_Mnemonic).
-- Initialize_From_Stock does nothing if the object was already created
-- with another call to Initialize* or G_New.
-- "stock_id": the name of the stock item
function Gtk_Button_New_From_Stock
(Stock_Id : UTF8_String) return Gtk_Button;
-- Creates a new Gtk.Button.Gtk_Button containing the image and text from
-- a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK
-- and GTK_STOCK_APPLY.
-- If Stock_Id is unknown, then it will be treated as a mnemonic label (as
-- for Gtk.Button.Gtk_New_With_Mnemonic).
-- "stock_id": the name of the stock item
procedure Gtk_New (Button : out Gtk_Button; Label : UTF8_String := "");
procedure Initialize
(Button : not null access Gtk_Button_Record'Class;
Label : UTF8_String := "");
-- Creates a Gtk.Button.Gtk_Button widget with a Gtk.Label.Gtk_Label child
-- containing the given text.
-- Initialize does nothing if the object was already created with another
-- call to Initialize* or G_New.
-- "label": The text you want the Gtk.Label.Gtk_Label to hold.
function Gtk_Button_New_With_Label
(Label : UTF8_String := "") return Gtk_Button;
-- Creates a Gtk.Button.Gtk_Button widget with a Gtk.Label.Gtk_Label child
-- containing the given text.
-- "label": The text you want the Gtk.Label.Gtk_Label to hold.
procedure Gtk_New_With_Mnemonic
(Button : out Gtk_Button;
Label : UTF8_String);
procedure Initialize_With_Mnemonic
(Button : not null access Gtk_Button_Record'Class;
Label : UTF8_String);
-- Creates a new Gtk.Button.Gtk_Button containing a label. If characters
-- in Label are preceded by an underscore, they are underlined. If you need
-- a literal underscore character in a label, use "__" (two underscores).
-- The first underlined character represents a keyboard accelerator called
-- a mnemonic. Pressing Alt and that key activates the button.
-- Initialize_With_Mnemonic does nothing if the object was already created
-- with another call to Initialize* or G_New.
-- "label": The text of the button, with an underscore in front of the
-- mnemonic character
function Gtk_Button_New_With_Mnemonic
(Label : UTF8_String) return Gtk_Button;
-- Creates a new Gtk.Button.Gtk_Button containing a label. If characters
-- in Label are preceded by an underscore, they are underlined. If you need
-- a literal underscore character in a label, use "__" (two underscores).
-- The first underlined character represents a keyboard accelerator called
-- a mnemonic. Pressing Alt and that key activates the button.
-- "label": The text of the button, with an underscore in front of the
-- mnemonic character
function Get_Type return Glib.GType;
pragma Import (C, Get_Type, "gtk_button_get_type");
-------------
-- Methods --
-------------
procedure Clicked (Button : not null access Gtk_Button_Record);
-- Emits a Gtk.Button.Gtk_Button::clicked signal to the given
-- Gtk.Button.Gtk_Button.
procedure Enter (Button : not null access Gtk_Button_Record);
pragma Obsolescent (Enter);
-- Emits a Gtk.Button.Gtk_Button::enter signal to the given
-- Gtk.Button.Gtk_Button.
-- Deprecated since 2.20, 1
procedure Get_Alignment
(Button : not null access Gtk_Button_Record;
Xalign : out Gfloat;
Yalign : out Gfloat);
pragma Obsolescent (Get_Alignment);
-- Gets the alignment of the child in the button.
-- Since: gtk+ 2.4
-- Deprecated since 3.14, 1
-- "xalign": return location for horizontal alignment
-- "yalign": return location for vertical alignment
procedure Set_Alignment
(Button : not null access Gtk_Button_Record;
Xalign : Gfloat;
Yalign : Gfloat);
pragma Obsolescent (Set_Alignment);
-- Sets the alignment of the child. This property has no effect unless the
-- child is a Gtk.Misc.Gtk_Misc or a Gtk.Alignment.Gtk_Alignment.
-- Since: gtk+ 2.4
-- Deprecated since 3.14, 1
-- "xalign": the horizontal position of the child, 0.0 is left aligned,
-- 1.0 is right aligned
-- "yalign": the vertical position of the child, 0.0 is top aligned, 1.0
-- is bottom aligned
function Get_Always_Show_Image
(Button : not null access Gtk_Button_Record) return Boolean;
-- Returns whether the button will ignore the
-- Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the
-- image, if available.
-- Since: gtk+ 3.6
procedure Set_Always_Show_Image
(Button : not null access Gtk_Button_Record;
Always_Show : Boolean);
-- If True, the button will ignore the
-- Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the
-- image, if available.
-- Use this property if the button would be useless or hard to use without
-- the image.
-- Since: gtk+ 3.6
-- "always_show": True if the menuitem should always show the image
function Get_Event_Window
(Button : not null access Gtk_Button_Record) return Gdk.Gdk_Window;
-- Returns the button's event window if it is realized, null otherwise.
-- This function should be rarely needed.
-- Since: gtk+ 2.22
function Get_Focus_On_Click
(Button : not null access Gtk_Button_Record) return Boolean;
-- Returns whether the button grabs focus when it is clicked with the
-- mouse. See Gtk.Button.Set_Focus_On_Click.
-- Since: gtk+ 2.4
procedure Set_Focus_On_Click
(Button : not null access Gtk_Button_Record;
Focus_On_Click : Boolean);
-- Sets whether the button will grab focus when it is clicked with the
-- mouse. Making mouse clicks not grab focus is useful in places like
-- toolbars where you don't want the keyboard focus removed from the main
-- area of the application.
-- Since: gtk+ 2.4
-- "focus_on_click": whether the button grabs focus when clicked with the
-- mouse
function Get_Image
(Button : not null access Gtk_Button_Record)
return Gtk.Widget.Gtk_Widget;
-- Gets the widget that is currenty set as the image of Button. This may
-- have been explicitly set by Gtk.Button.Set_Image or constructed by
-- Gtk.Button.Gtk_New_From_Stock.
-- Since: gtk+ 2.6
procedure Set_Image
(Button : not null access Gtk_Button_Record;
Image : not null access Gtk.Widget.Gtk_Widget_Record'Class);
-- Set the image of Button to the given widget. The image will be
-- displayed if the label text is null or if
-- Gtk.Button.Gtk_Button:always-show-image is True. You don't have to call
-- Gtk.Widget.Show on Image yourself.
-- Since: gtk+ 2.6
-- "image": a widget to set as the image for the button
function Get_Image_Position
(Button : not null access Gtk_Button_Record)
return Gtk.Enums.Gtk_Position_Type;
-- Gets the position of the image relative to the text inside the button.
-- Since: gtk+ 2.10
procedure Set_Image_Position
(Button : not null access Gtk_Button_Record;
Position : Gtk.Enums.Gtk_Position_Type);
-- Sets the position of the image relative to the text inside the button.
-- Since: gtk+ 2.10
-- "position": the position
function Get_Label
(Button : not null access Gtk_Button_Record) return UTF8_String;
-- Fetches the text from the label of the button, as set by
-- Gtk.Button.Set_Label. If the label text has not been set the return
-- value will be null. This will be the case if you create an empty button
-- with gtk_button_new to use as a container.
procedure Set_Label
(Button : not null access Gtk_Button_Record;
Label : UTF8_String);
-- Sets the text of the label of the button to Str. This text is also used
-- to select the stock item if Gtk.Button.Set_Use_Stock is used.
-- This will also clear any previously set labels.
-- "label": a string
function Get_Relief
(Button : not null access Gtk_Button_Record)
return Gtk.Enums.Gtk_Relief_Style;
-- Returns the current relief style of the given Gtk.Button.Gtk_Button.
procedure Set_Relief
(Button : not null access Gtk_Button_Record;
Relief : Gtk.Enums.Gtk_Relief_Style);
-- Sets the relief style of the edges of the given Gtk.Button.Gtk_Button
-- widget. Two styles exist, Gtk.Enums.Relief_Normal and
-- Gtk.Enums.Relief_None. The default style is, as one can guess,
-- Gtk.Enums.Relief_Normal. The deprecated value Gtk.Enums.Relief_Half
-- behaves the same as Gtk.Enums.Relief_Normal.
-- "relief": The GtkReliefStyle as described above
function Get_Use_Stock
(Button : not null access Gtk_Button_Record) return Boolean;
pragma Obsolescent (Get_Use_Stock);
-- Returns whether the button label is a stock item.
-- Deprecated since 3.10, 1
procedure Set_Use_Stock
(Button : not null access Gtk_Button_Record;
Use_Stock : Boolean);
pragma Obsolescent (Set_Use_Stock);
-- If True, the label set on the button is used as a stock id to select
-- the stock item for the button.
-- Deprecated since 3.10, 1
-- "use_stock": True if the button should use a stock item
function Get_Use_Underline
(Button : not null access Gtk_Button_Record) return Boolean;
-- Returns whether an embedded underline in the button label indicates a
-- mnemonic. See gtk_button_set_use_underline ().
procedure Set_Use_Underline
(Button : not null access Gtk_Button_Record;
Use_Underline : Boolean);
-- If true, an underline in the text of the button label indicates the
-- next character should be used for the mnemonic accelerator key.
-- "use_underline": True if underlines in the text indicate mnemonics
procedure Leave (Button : not null access Gtk_Button_Record);
pragma Obsolescent (Leave);
-- Emits a Gtk.Button.Gtk_Button::leave signal to the given
-- Gtk.Button.Gtk_Button.
-- Deprecated since 2.20, 1
procedure Pressed (Button : not null access Gtk_Button_Record);
pragma Obsolescent (Pressed);
-- Emits a Gtk.Button.Gtk_Button::pressed signal to the given
-- Gtk.Button.Gtk_Button.
-- Deprecated since 2.20, 1
procedure Released (Button : not null access Gtk_Button_Record);
pragma Obsolescent (Released);
-- Emits a Gtk.Button.Gtk_Button::released signal to the given
-- Gtk.Button.Gtk_Button.
-- Deprecated since 2.20, 1
---------------------------------------------
-- Inherited subprograms (from interfaces) --
---------------------------------------------
-- Methods inherited from the Buildable interface are not duplicated here
-- since they are meant to be used by tools, mostly. If you need to call
-- them, use an explicit cast through the "-" operator below.
function Get_Action_Name
(Self : not null access Gtk_Button_Record) return UTF8_String;
procedure Set_Action_Name
(Self : not null access Gtk_Button_Record;
Action_Name : UTF8_String);
function Get_Action_Target_Value
(Self : not null access Gtk_Button_Record)
return Glib.Variant.Gvariant;
procedure Set_Action_Target_Value
(Self : not null access Gtk_Button_Record;
Target_Value : Glib.Variant.Gvariant);
procedure Set_Detailed_Action_Name
(Self : not null access Gtk_Button_Record;
Detailed_Action_Name : UTF8_String);
procedure Do_Set_Related_Action
(Self : not null access Gtk_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
pragma Obsolescent (Do_Set_Related_Action);
function Get_Related_Action
(Self : not null access Gtk_Button_Record)
return Gtk.Action.Gtk_Action;
pragma Obsolescent (Get_Related_Action);
procedure Set_Related_Action
(Self : not null access Gtk_Button_Record;
Action : not null access Gtk.Action.Gtk_Action_Record'Class);
pragma Obsolescent (Set_Related_Action);
function Get_Use_Action_Appearance
(Self : not null access Gtk_Button_Record) return Boolean;
pragma Obsolescent (Get_Use_Action_Appearance);
procedure Set_Use_Action_Appearance
(Self : not null access Gtk_Button_Record;
Use_Appearance : Boolean);
pragma Obsolescent (Set_Use_Action_Appearance);
procedure Sync_Action_Properties
(Self : not null access Gtk_Button_Record;
Action : access Gtk.Action.Gtk_Action_Record'Class);
pragma Obsolescent (Sync_Action_Properties);
----------------
-- Properties --
----------------
-- The following properties are defined for this widget. See
-- Glib.Properties for more information on properties)
Always_Show_Image_Property : constant Glib.Properties.Property_Boolean;
-- If True, the button will ignore the
-- Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the
-- image, if available.
--
-- Use this property if the button would be useless or hard to use without
-- the image.
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean;
Image_Property : constant Glib.Properties.Property_Object;
-- Type: Gtk.Widget.Gtk_Widget
-- The child widget to appear next to the button text.
Image_Position_Property : constant Gtk.Enums.Property_Gtk_Position_Type;
-- The position of the image relative to the text inside the button.
Label_Property : constant Glib.Properties.Property_String;
Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;
Use_Stock_Property : constant Glib.Properties.Property_Boolean;
Use_Underline_Property : constant Glib.Properties.Property_Boolean;
Xalign_Property : constant Glib.Properties.Property_Float;
-- If the child of the button is a Gtk.Misc.Gtk_Misc or
-- Gtk.Alignment.Gtk_Alignment, this property can be used to control its
-- horizontal alignment. 0.0 is left aligned, 1.0 is right aligned.
Yalign_Property : constant Glib.Properties.Property_Float;
-- If the child of the button is a Gtk.Misc.Gtk_Misc or
-- Gtk.Alignment.Gtk_Alignment, this property can be used to control its
-- vertical alignment. 0.0 is top aligned, 1.0 is bottom aligned.
-------------
-- Signals --
-------------
type Cb_Gtk_Button_Void is not null access procedure (Self : access Gtk_Button_Record'Class);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
Signal_Activate : constant Glib.Signal_Name := "activate";
procedure On_Activate
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Activate
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- The ::activate signal on GtkButton is an action signal and emitting it
-- causes the button to animate press then release. Applications should
-- never connect to this signal, but use the Gtk.Button.Gtk_Button::clicked
-- signal.
Signal_Clicked : constant Glib.Signal_Name := "clicked";
procedure On_Clicked
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Clicked
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- Emitted when the button has been activated (pressed and released).
Signal_Enter : constant Glib.Signal_Name := "enter";
procedure On_Enter
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Enter
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- Emitted when the pointer enters the button.
Signal_Leave : constant Glib.Signal_Name := "leave";
procedure On_Leave
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Leave
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- Emitted when the pointer leaves the button.
Signal_Pressed : constant Glib.Signal_Name := "pressed";
procedure On_Pressed
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Pressed
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- Emitted when the button is pressed.
Signal_Released : constant Glib.Signal_Name := "released";
procedure On_Released
(Self : not null access Gtk_Button_Record;
Call : Cb_Gtk_Button_Void;
After : Boolean := False);
procedure On_Released
(Self : not null access Gtk_Button_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False);
-- Emitted when the button is released.
----------------
-- Interfaces --
----------------
-- This class implements several interfaces. See Glib.Types
--
-- - "Actionable"
--
-- - "Activatable"
--
-- - "Buildable"
package Implements_Gtk_Actionable is new Glib.Types.Implements
(Gtk.Actionable.Gtk_Actionable, Gtk_Button_Record, Gtk_Button);
function "+"
(Widget : access Gtk_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
renames Implements_Gtk_Actionable.To_Interface;
function "-"
(Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Button
renames Implements_Gtk_Actionable.To_Object;
package Implements_Gtk_Activatable is new Glib.Types.Implements
(Gtk.Activatable.Gtk_Activatable, Gtk_Button_Record, Gtk_Button);
function "+"
(Widget : access Gtk_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
renames Implements_Gtk_Activatable.To_Interface;
function "-"
(Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Button
renames Implements_Gtk_Activatable.To_Object;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Button_Record, Gtk_Button);
function "+"
(Widget : access Gtk_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
renames Implements_Gtk_Buildable.To_Interface;
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Button
renames Implements_Gtk_Buildable.To_Object;
private
Yalign_Property : constant Glib.Properties.Property_Float :=
Glib.Properties.Build ("yalign");
Xalign_Property : constant Glib.Properties.Property_Float :=
Glib.Properties.Build ("xalign");
Use_Underline_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("use-underline");
Use_Stock_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("use-stock");
Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style :=
Gtk.Enums.Build ("relief");
Label_Property : constant Glib.Properties.Property_String :=
Glib.Properties.Build ("label");
Image_Position_Property : constant Gtk.Enums.Property_Gtk_Position_Type :=
Gtk.Enums.Build ("image-position");
Image_Property : constant Glib.Properties.Property_Object :=
Glib.Properties.Build ("image");
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("focus-on-click");
Always_Show_Image_Property : constant Glib.Properties.Property_Boolean :=
Glib.Properties.Build ("always-show-image");
end Gtk.Button;
|