25 #ifndef TBX_RES_RESTREEVIEW_H
26 #define TBX_RES_RESTREEVIEW_H
28 #include "tbx/res/resgadget.h"
41 enum {TYPE_ID = 0x402c };
101 vertical_spacing(12);
102 horizontal_spacing(256);
107 bool allow_vscroll()
const {
return flag(0, 1);}
108 void allow_vscroll(
bool value) {
flag(0, 1, value);}
109 bool allow_hscroll()
const {
return flag(0, 2);}
110 void allow_hscroll(
bool value) {
flag(0, 2, value);}
111 bool auto_update()
const {
return flag(0, 4);}
112 void auto_update(
bool value) {
flag(0, 4, value);}
113 bool show_current_node()
const {
return flag(0, 8);}
114 void show_current_node(
bool value) {
flag(0, 8, value);}
115 bool plot_lines()
const {
return flag(0, 16);}
116 void plot_lines(
bool value) {
flag(0, 16, value);}
117 bool allow_selection()
const {
return flag(0, 32);}
118 void allow_selection(
bool value) {
flag(0, 32,value);}
119 bool notify_selection()
const {
return flag(0, 64);}
120 void notify_selection(
bool value) {
flag(0, 64, value);}
121 bool select_children()
const {
return flag(0, 1u<<7);}
122 void select_children(
bool value) {
flag(0, 1u<<7, value);}
123 bool allow_expand()
const {
return flag(0, 1u<<8);}
124 void allow_expand(
bool value) {
flag(0, 1u<<8, value);}
125 bool notify_expansion()
const {
return flag(0, 1u<<9);}
126 void notify_expansion(
bool value) {
flag(0, 1u<<9, value);}
127 bool expand_by_default()
const {
return flag(0, 1u<<10);}
128 void expand_by_default(
bool value) {
flag(0, 1u<<10, value);}
129 bool allow_rename()
const {
return flag(0, 1u<<11);}
130 void allow_rename(
bool value) {
flag(0, 1u<<11, value);}
131 bool notify_rename()
const {
return flag(0, 1u<<12);}
132 void notify_rename(
bool value) {
flag(0, 1u<<12, value);}
133 bool allow_drags()
const {
return flag(0, 1u<<13);}
134 void allow_drags(
bool value) {
flag(0, 1u<<13, value);}
135 bool notify_drag_end()
const {
return flag(0, 1u<<14);}
136 void notify_drag_end(
bool value) {
flag(0, 1u<<14, value);}
137 bool all_events()
const {
return flag(0, 1u<<15);}
138 void all_events(
bool value) {
flag(0, 1u<<15,value);}
139 bool double_click_expands()
const {
return flag(0, 1u<<16);}
140 void double_click_expands(
bool value) {
flag(0, 1u<<16,value);}
141 bool flat_mode()
const {
return flag(0, 1u<<17);}
142 void flat_mode(
bool value) {
flag(0, 1u<<17,value);}
143 bool text_below_sprite()
const {
return flag(0, 1u<<18);}
144 void text_below_sprite(
bool value) {
flag(0, 1u<<18,value);}
145 bool sort_display()
const {
return flag(0, 1u<<19);}
146 void sort_display(
bool value) {
flag(0, 1u<<19,value);}
147 bool sort_reversed()
const {
return flag(0, 1u<<20);}
148 void sort_reversed(
bool value) {
flag(0, 1u<<20,value);}
149 bool sort_by_sprite()
const {
return flag(0, 1u<<21);}
150 void sort_by_sprite(
bool value) {
flag(0, 1u<<21,value);}
200 unsigned int vertical_spacing()
const {
return uint_value(40);}
201 void vertical_spacing(
unsigned int value) {
return uint_value(40,value);}
202 unsigned int horizontal_spacing()
const {
return uint_value(44);}
203 void horizontal_spacing(
unsigned int value) {
return uint_value(44,value);}
210 #endif // TBX_RES_RESTREEVIEW_H
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
ResTreeView(const ResTreeView &other)
Construct a tree view gadget resource.
Definition: restreeview.h:59
int version() const
Get tree view version.
Definition: restreeview.h:192
void background(int value)
Set background colour for the Tabs.
Definition: restreeview.h:174
int background() const
Get background colour for the Tabs.
Definition: restreeview.h:168
Base class for gadget memory resources.
Definition: resgadget.h:43
unsigned char byte_value(int offset) const
Get a byte value.
Definition: resbase.h:333
Class for Tabs gadget template.
Definition: restreeview.h:38
int foreground() const
Get foreground/text colour for the Tabs.
Definition: restreeview.h:156
unsigned int flags() const
Get all flags as a word raw access.
Definition: resgadget.h:102
ResTreeView & operator=(const tbx::res::ResGadget &other)
Assign from a ResGadget.
Definition: restreeview.h:71
void version(int value)
Set tree view version.
Definition: restreeview.h:198
ResGadget(const ResGadget &other)
Construct a resource gadget as a copy of another.
Definition: resgadget.h:59
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
void foreground(int value)
Set foreground/text colour for the Tabs.
Definition: restreeview.h:162
int linecolour() const
Get linecolour colour for the Tabs.
Definition: restreeview.h:180
ResTreeView()
Construct a tree view gadget resource.
Definition: restreeview.h:94
ResTreeView & operator=(const ResTreeView &other)
Assign from another tree view gadget resource.
Definition: restreeview.h:83
ResTreeView(const tbx::res::ResGadget &other)
Construct a tree view gadget resource.
Definition: restreeview.h:49
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
void linecolour(int value)
Set linecolour colour for the Tabs.
Definition: restreeview.h:186