Debian Codegraph @

hiro/cocoa/widget/tab-frame-item.cpp

raw
1 #if defined(Hiro_TabFrame)
2
3 namespace hiro {
4
5 auto pTabFrameItem::construct() -> void {
6 }
7
8 auto pTabFrameItem::destruct() -> void {
9 }
10
11 auto pTabFrameItem::append(sSizable sizable) -> void {
12 }
13
14 auto pTabFrameItem::remove(sSizable sizable) -> void {
15 }
16
17 auto pTabFrameItem::setClosable(bool closable) -> void {
18 }
19
20 auto pTabFrameItem::setIcon(const image& icon) -> void {
21 }
22
23 auto pTabFrameItem::setMovable(bool movable) -> void {
24 }
25
26 auto pTabFrameItem::setSelected() -> void {
27 if(auto parent = _parent()) {
28 [(CocoaTabFrame*)(parent->cocoaView) selectTabViewItem:cocoaTabFrameItem];
29 }
30 }
31
32 auto pTabFrameItem::setText(const string& text) -> void {
33 [cocoaTabFrameItem setLabel:[NSString stringWithUTF8String:state().text]];
34 }
35
36 auto pTabFrameItem::_parent() -> maybe<pTabFrame&> {
37 if(auto parent = self().parentTabFrame()) {
38 if(auto self = parent->self()) return *self;
39 }
40 return nothing;
41 }
42
43 }
44
45 #endif