#include <ndk++.h>
Inheritance diagram for NDK_XX::NDKMenuBar:
Public Methods | |
NDKMenuBar (int rows, int cols, int y, int x,ListOfItems &items,const char *ttitle="", const char *btitle="",const char *title_pos="cc",char orient='h', bool framed=false) | |
~NDKMenuBar () | |
void | setTitle () |
char | get_orientation () const |
we are wide-oriented or tall-oriented? | |
Protected Methods | |
void | show_text (const string &t, char where) |
A simple helper. | |
Protected Attributes | |
char | orientation |
string | title |
string | bTitle |
string | titlePos |
ListOfItems & | itemList |
|
Definition at line 125 of file ndk++.cc. References NDK_XX::NDKMenu::InitMenu(), NDK_XX::NDKMenu::link_items(), NDK_XX::ListOfItems, orientation, setTitle(), and titlePos.
00130 : NDKMenu(rows, cols, y, x,framed) 00131 ,orientation(orient) 00132 ,title(ttitle),bTitle(btitle),titlePos(title_pos) 00133 ,itemList(items) 00134 { 00135 00136 short count = items.size()-1; 00137 00138 if(orientation=='v') set_format(count,1); 00139 else set_format(1,count); 00140 00141 InitMenu(items); 00142 00143 link_items(items); 00144 00145 if(framed) 00146 frame(); 00147 00148 //by default it's 2, but user may be clever enough to pass in "" ... 00149 while(titlePos.size()< 2) 00150 titlePos+='c'; 00151 00152 setTitle(); 00153 } |
|
Definition at line 178 of file ndk++.h.
00178 { } |
|
we are wide-oriented or tall-oriented?
Definition at line 187 of file ndk++.h. References orientation. Referenced by NDK_XX::NDKPopUpMenu::submenux(), and NDK_XX::NDKPopUpMenu::submenuy().
00187 {return orientation;} |
|
Definition at line 181 of file ndk++.h. References bTitle, show_text(), title, and titlePos. Referenced by NDKMenuBar().
|
|
A simple helper.
Definition at line 112 of file ndk++.cc. References NDK_XX::NDKMenu::lefttext(), and NDK_XX::NDKMenu::righttext(). Referenced by setTitle().
|
|
Definition at line 164 of file ndk++.h. Referenced by setTitle(). |
|
|
|
Definition at line 162 of file ndk++.h. Referenced by get_orientation(), and NDKMenuBar(). |
|
Definition at line 163 of file ndk++.h. Referenced by setTitle(). |
|
Definition at line 165 of file ndk++.h. Referenced by NDKMenuBar(), and setTitle(). |