gwenhywfar  4.7.0beta
w_hspacer.mm
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Aug 17 2010
3  copyright : (C) 2010 by Samuel Strupp
4 
5  ***************************************************************************
6  * Please see toplevel file COPYING for license details *
7  ***************************************************************************/
8 
9 
10 #import "CocoaSpacer.h"
11 
12 
13 static GWENHYWFAR_CB
16  int index,
17  int value,
18  int doSignal) {
19  CocoaSpacer *hSpacer;
20 
22  assert(hSpacer);
23 
24  switch(prop) {
26  return 0;
27 
29  return 0;
30 
31  default:
32  break;
33  }
34 
36  "Function is not appropriate for this type of widget (%s)",
38  return GWEN_ERROR_INVALID;
39 }
40 
41 
42 
43 
44 static GWENHYWFAR_CB
47  int index,
48  int defaultValue) {
49  CocoaSpacer *hSpacer;
50 
52  assert(hSpacer);
53 
54  switch(prop) {
56  return 1;
57 
59  return 0;
60 
61  default:
62  break;
63  }
64 
66  "Function is not appropriate for this type of widget (%s)",
68  return defaultValue;
69 }
70 
71 
72 
74  CocoaSpacer *hSpacer;
75  uint32_t flags;
76  GWEN_WIDGET *wParent;
77 
78  flags=GWEN_Widget_GetFlags(w);
79  wParent=GWEN_Widget_Tree_GetParent(w);
80 
81  hSpacer = [[[CocoaSpacer alloc] initWithFrame:NSMakeRect(0.0, 0.0, 10.0, 10.0)] autorelease];
83  hSpacer.fillX = YES;
84  if (flags & GWEN_WIDGET_FLAGS_FILLY) hSpacer.fillY = YES;
85 
88 
91 
92  if (wParent)
94 
95  return 0;
96 }
97 
98