gwenhywfar  4.6.0beta
w_vspacer.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 
14 static GWENHYWFAR_CB
17  int index,
18  int value,
19  int doSignal) {
20  CocoaSpacer *vSpacer;
21 
23  assert(vSpacer);
24 
25  switch(prop) {
27  return 0;
28 
30  return 0;
31 
32  default:
33  break;
34  }
35 
37  "Function is not appropriate for this type of widget (%s)",
39  return GWEN_ERROR_INVALID;
40 }
41 
42 
43 
44 
45 static GWENHYWFAR_CB
48  int index,
49  int defaultValue) {
50  CocoaSpacer *vSpacer;
51 
53  assert(vSpacer);
54 
55  switch(prop) {
57  return 1;
58 
60  return 0;
61 
62  default:
63  break;
64  }
65 
67  "Function is not appropriate for this type of widget (%s)",
69  return defaultValue;
70 }
71 
72 
73 
75  CocoaSpacer *vSpacer;
76  uint32_t flags;
77  GWEN_WIDGET *wParent;
78 
79  flags=GWEN_Widget_GetFlags(w);
80  wParent=GWEN_Widget_Tree_GetParent(w);
81 
82  vSpacer = [[[CocoaSpacer alloc] initWithFrame:NSMakeRect(0.0, 0.0, 10.0, 10.0)] autorelease];
84  vSpacer.fillY = YES;
85  if (flags & GWEN_WIDGET_FLAGS_FILLX) vSpacer.fillX = YES;
86 
87 
90 
93 
94  if (wParent)
96 
97  return 0;
98 }
99 
100