gwenhywfar  4.6.0beta
w_vline.mm
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Auf 10 2010
3  copyright : (C) 2010 by Samuel Strupp
4 
5  ***************************************************************************
6  * Please see toplevel file COPYING for license details *
7  ***************************************************************************/
8 
9 
10 #import "CocoaVLineView.h"
11 
12 
13 static GWENHYWFAR_CB
16  int index,
17  int value,
18  int doSignal) {
19  CocoaVLineView *vLineView;
20 
22  assert(vLineView);
23 
24  switch(prop) {
26  //gtk_widget_set_sensitive(GTK_WIDGET(g), (value==0)?FALSE:TRUE);
27  return 0;
28 
30  //gtk_widget_grab_focus(GTK_WIDGET(g));
31  return 0;
32 
33  default:
34  break;
35  }
36 
38  "Function is not appropriate for this type of widget (%s)",
40  return GWEN_ERROR_INVALID;
41 
42 }
43 
44 
45 
46 
47 static GWENHYWFAR_CB
50  int index,
51  int defaultValue) {
52  CocoaVLineView *vLineView;
53 
55  assert(vLineView);
56 
57 
58  switch(prop) {
60  //return (gtk_widget_get_sensitive(GTK_WIDGET(g))==TRUE)?1:0;
61  return 0;
62 
64  //return (gtk_widget_has_focus(GTK_WIDGET(g))==TRUE)?1:0;
65  return 0;
66 
67  default:
68  break;
69  }
70 
71 
73  "Function is not appropriate for this type of widget (%s)",
75  return defaultValue;
76 }
77 
78 
79 
81  CocoaVLineView *vLineView;
82  uint32_t flags;
83  GWEN_WIDGET *wParent;
84 
85  flags=GWEN_Widget_GetFlags(w);
86  wParent=GWEN_Widget_Tree_GetParent(w);
87 
88  vLineView = [[[CocoaVLineView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 100.0, 5.0)] autorelease];
89  if (flags & GWEN_WIDGET_FLAGS_FILLX) vLineView.fillX = YES;
90  if (flags & GWEN_WIDGET_FLAGS_FILLY) vLineView.fillY = YES;
91 
92 
95 
98 
99  if (wParent)
100  GWEN_Widget_AddChildGuiWidget(wParent, w);
101 
102  return 0;
103 }
104 
105