1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module glib.TrashStack; 26 27 private import glib.MemorySlice; 28 private import glib.c.functions; 29 public import glib.c.types; 30 public import gtkc.glibtypes; 31 private import gtkd.Loader; 32 33 34 /** 35 * Each piece of memory that is pushed onto the stack 36 * is cast to a GTrashStack*. 37 * 38 * Deprecated: #GTrashStack is deprecated without replacement 39 */ 40 public struct TrashStack 41 { 42 43 /** 44 * Returns the height of a #GTrashStack. 45 * 46 * Note that execution of this function is of O(N) complexity 47 * where N denotes the number of items on the stack. 48 * 49 * Deprecated: #GTrashStack is deprecated without replacement 50 * 51 * Params: 52 * stackP = a #GTrashStack 53 * 54 * Returns: the height of the stack 55 */ 56 public static uint height(GTrashStack** stackP) 57 { 58 return g_trash_stack_height(stackP); 59 } 60 61 /** 62 * Returns the element at the top of a #GTrashStack 63 * which may be %NULL. 64 * 65 * Deprecated: #GTrashStack is deprecated without replacement 66 * 67 * Params: 68 * stackP = a #GTrashStack 69 * 70 * Returns: the element at the top of the stack 71 */ 72 public static void* peek(GTrashStack** stackP) 73 { 74 return g_trash_stack_peek(stackP); 75 } 76 77 /** 78 * Pops a piece of memory off a #GTrashStack. 79 * 80 * Deprecated: #GTrashStack is deprecated without replacement 81 * 82 * Params: 83 * stackP = a #GTrashStack 84 * 85 * Returns: the element at the top of the stack 86 */ 87 public static void* pop(GTrashStack** stackP) 88 { 89 return g_trash_stack_pop(stackP); 90 } 91 92 /** 93 * Pushes a piece of memory onto a #GTrashStack. 94 * 95 * Deprecated: #GTrashStack is deprecated without replacement 96 * 97 * Params: 98 * stackP = a #GTrashStack 99 * dataP = the piece of memory to push on the stack 100 */ 101 public static void push(GTrashStack** stackP, void* dataP) 102 { 103 g_trash_stack_push(stackP, dataP); 104 } 105 }